Exploit database

Vulnerability

CVE-2019-8513

Vulnerability details

Score
7.8
Severity
high

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

This issue was addressed with improved checks. This issue is fixed in macOS Mojave 10.14.4. A local user may be able to execute arbitrary shell commands.

CVE Program

Exploit source choices

2 sources
Mac OS X TimeMachine (tmdiagnose) Command Injection Privilege Escalation
MSF-osx--local--timemachine_cmd_injectionMetasploitOSX,Python,Unix / remote

This module exploits a command injection in TimeMachine on macOS <= 10.14.3 in order to run a payload as root. The tmdiagnose binary on OSX <= 10.14.3 suffers from a command injection vulnerability that can be exploited by creating a specially crafted disk label. The tmdiagnose binary uses awk to list every mounted volume, and composes shell commands based on the volume labels. By creating a volume label with the backtick character, we can have our own binary executed with root priviledges.

2019-04-13timemachine_cmd_injection.rb