module

Mac OS X TimeMachine (tmdiagnose) Command Injection Privilege Escalation

Disclosed
2019-04-13
Created
2019-06-29

Description

This module exploits a command injection in TimeMachine on macOS order to run a payload as root. The tmdiagnose binary on OSX 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.

Authors

CodeColorist
timwr

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/osx/local/timemachine_cmd_injection
msf exploit(timemachine_cmd_injection) > show targets
...targets...
msf exploit(timemachine_cmd_injection) > set TARGET < target-id >
msf exploit(timemachine_cmd_injection) > show options
...show and set options...
msf exploit(timemachine_cmd_injection) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.