Skip to content
Access control Disclosed report Beginner

Acronis True Image Local Privilege Escalation via insecure folder permissions

The Acronis True Image launch daemons run executables and scripts located inside the application folder, which an admin user can modify because the app was installed by drag and drop. An attacker with admin rights could replace those files and have them executed as root, escalating privileges.

Csaba Fitzl Follow

Originally disclosed on HackerOne

Bounty$300incl. $100 bonus Medium 6.7 View original
  • Triaged in 5 days
  • Fixed in 5 months
  • Paid in 12 days
  • Disclosed after 8 months

Note: This has been submitted via service desk earlier, and I got a call from Acronis customer service that it's up on H1 and I should submit it there as well.

All of the Acronis LaunchDaemons (except the price helper) which can be found here: /Library/LaunchDaemons/com.acronis.* start an app / script inside the /Applications/Acronis True Image.app/ folder. As the installation happened with drag and drop, an admin user can replace any of the executables and achieve trivial privilege escalation to root.

Please note that on macOS admin to root is a valid privilege escalation scenario, as even if we don't know the user's password, we can get root.

Here are all the insecure LauncDaemon files.

% cat /Library/LaunchDaemons/com.acronis.*
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<false/>
	<key>Label</key>
	<string>com.acronis.acep</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/prl_stat</string>
		<string>for_scheduler</string>
	</array>
	<key>StartInterval</key>
	<integer>1209600</integer>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mms_mini</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/mms_mini/mms_mini.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mobile_backup_server</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS//mobile_backup_server/mobile_backup_server.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mobile_backup_status_server</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS//mobile_backup_status_server/mobile_backup_status_server.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.scheduler</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/schedul2</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>WorkingDirectory</key>
	<string>/Applications/Acronis True Image.app/Contents/MacOS/</string>
</dict>
</plist>

Fix: Install the application with a pkg installer to ensure that the folder permissions are set to root:wheel and users can't modify files.

Impact

Local privilege escalation

The original report as published on HackerOne, by theevilbit. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

Acronis True Image, now sold as Acronis Cyber Protect Home Office, is a macOS backup application. On macOS, privileged background work is normally done by launch daemons: property list files in /Library/LaunchDaemons that the system loads at boot and runs as root. The application ships several such daemons, all named com.acronis.*, and each one starts a binary or script that lives inside the application bundle at /Applications/Acronis True Image.app/.

The report concerns the permissions on that bundle. Because the application was installed by dragging it into /Applications, an admin user can replace the executables inside it. Any daemon that executes a file the user can rewrite therefore hands that user root.

Setup

  • Target: Acronis True Image on macOS, installed by drag and drop into /Applications.
  • Attacker position: a local admin user on the machine.
  • No other tooling, version numbers or configuration details are given in the report.

The researcher notes that this was first submitted through the Acronis service desk, and that Acronis customer service called to say it was on HackerOne and should be submitted there as well.

Finding it

The researcher enumerated the launch daemons matching /Library/LaunchDaemons/com.acronis.* and read them. Every one of them, except the price helper, starts an app or script inside /Applications/Acronis True Image.app/. Since the installation was a drag and drop, an admin user can replace any of those executables and get code run as root.

The researcher is explicit about why this matters even though the starting point is an admin account: on macOS, admin to root is a valid privilege escalation scenario, because root can be obtained without knowing the user's password.

Exploitation

Step 1: Read the daemon definitions

The researcher dumped all of the insecure launch daemon files in one go:

Bash
% cat /Library/LaunchDaemons/com.acronis.*

The output contains five property lists. Each one is a standard plist with a Label and a ProgramArguments array, and each ProgramArguments entry points into the application bundle.

com.acronis.acep runs prl_stat with the argument for_scheduler, and is scheduled with StartInterval set to 1209600:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<false/>
	<key>Label</key>
	<string>com.acronis.acep</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/prl_stat</string>
		<string>for_scheduler</string>
	</array>
	<key>StartInterval</key>
	<integer>1209600</integer>
</dict>
</plist>

com.acronis.mms_mini runs a shell script, is kept alive on unsuccessful exit, and runs at load:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mms_mini</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/mms_mini/mms_mini.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

com.acronis.mobile_backup_server runs mobile_backup_server.sh, also kept alive on unsuccessful exit and run at load:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mobile_backup_server</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS//mobile_backup_server/mobile_backup_server.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

com.acronis.mobile_backup_status_server runs mobile_backup_status_server.sh with the same keep-alive and run-at-load settings:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mobile_backup_status_server</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS//mobile_backup_status_server/mobile_backup_status_server.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

com.acronis.scheduler runs schedul2, with a WorkingDirectory inside the same bundle directory:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.scheduler</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/schedul2</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>WorkingDirectory</key>
	<string>/Applications/Acronis True Image.app/Contents/MacOS/</string>
</dict>
</plist>

The relevant parts are the ProgramArguments paths. Each one is an absolute path into /Applications/Acronis True Image.app/Contents/MacOS/, so the daemon executes whatever file sits at that path when it starts. RunAtLoad and KeepAlive mean several of them start at boot and restart after a failed exit, so a replaced file is picked up without waiting for a schedule.

Step 2: Replace an executable

Because the bundle was installed by drag and drop, its files are writable by the installing admin user. The researcher's conclusion is that replacing any of the executables named above achieves privilege escalation to root. The report does not include the replacement commands or a demonstration of the resulting root shell; it states the step and the outcome.

Root cause

The launch daemons run as root but execute files from a location that a non-root user can modify. The trust boundary is broken: the privileged component takes its code from a user-writable directory. The drag and drop installation is what leaves the executables replaceable by an admin user, so the daemons' root context and the bundle's permissions do not match.

Impact

Local privilege escalation. An admin user on the machine can go from admin to root without knowing the user's password, by replacing one of the executables that a root launch daemon starts. The report scopes this to local attackers with an admin account and does not describe remote exploitation.

Fix

The report's recommendation is to install the application with a pkg installer, so that the folder permissions are set to root:wheel and users cannot modify the files. The report does not say whether this was implemented.

Variants to test

  • Other macOS applications installed by drag and drop that ship launch daemons or launch agents pointing into their own bundle. A positive result is a plist in /Library/LaunchDaemons whose ProgramArguments path is writable by a non-root user.
  • Daemons that run shell scripts from the bundle, as mms_mini.sh, mobile_backup_server.sh and mobile_backup_status_server.sh do here. A positive result is a script path you can overwrite and a RunAtLoad or KeepAlive setting that makes it execute soon after boot or after a failed exit.
  • Daemons with a WorkingDirectory inside a user-writable bundle, as with schedul2. A positive result is a relative file reference or library load that resolves inside that directory.
  • Scheduled daemons with a long StartInterval, such as the 1209600 seconds on com.acronis.acep. A positive result is a writable target that will still be executed at the next interval, or a way to trigger the daemon sooner.

Hunting notes

This class of bug hides in the gap between how an installer places files and how privileged services consume them. On macOS, list /Library/LaunchDaemons and /Library/LaunchAgents, read every plist, and check the ownership and permissions of each ProgramArguments path and WorkingDirectory. Anything under /Applications that is not owned by root:wheel is a candidate. The signal during recon is an application whose documentation or packaging encourages drag and drop installation while it also registers root daemons.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

Acronis True Image (now sold as Acronis Cyber Protect Home Office) is a backup program for macOS, Apple's operating system for Mac computers. Like many programs, it does some of its work in the background, even when nobody is logged in and using it. On macOS, that kind of background work is usually done by small helper programs called launch daemons.

A launch daemon is a set of instructions that macOS reads when the computer starts. It tells the system: "run this program, in the background, with the highest level of permission." That highest level is called root, and a program running as root can do anything on the machine: read every file, change every setting, install or remove software. Ordinary users, even ones marked as admin (allowed to make system changes), are not root.

The problem in this report is a mismatch. The instructions tell macOS to run certain files as root, but those files sit in a folder that an ordinary admin user is allowed to change. So an admin user can swap one of those files for their own program, wait for the system to run it as root, and thereby become root themselves. That jump from admin to root is called local privilege escalation: "local" because you need to be sitting at the machine (or already have an account on it), and "privilege escalation" because you gain more power than you were given.

The researcher points out something important: on macOS, going from admin to root still counts as a real security problem, because you can reach root without ever knowing the user's password. The report was first sent through Acronis's own support channel (the service desk), and Acronis customer service phoned the researcher to say the issue was on HackerOne, a public bug bounty platform, and should be submitted there as well.

Context

To follow the rest, you need three ideas.

  1. The application bundle. On macOS, a program like Acronis True Image is not a single file. It is a folder with a .app ending that looks like one icon in Finder but contains many files inside. That folder is called a bundle. Inside it there is a standard subfolder, Contents/MacOS/, where the actual runnable programs live. Think of the bundle as a toolbox: one handle on the outside, many tools inside.
  2. Launch daemons. These are configuration files, written in a format called a property list (or plist), stored in the folder /Library/LaunchDaemons. macOS reads them at boot. A plist says which program to run, with which arguments, and when. Because they live in a system folder, the programs they start run as root.
  3. File ownership and permissions. Every file on macOS has an owner and a set of rules about who may change it. Normally, system-wide software is owned by a special account called root and a group called wheel, and ordinary users cannot modify it. If a file is instead owned by the person who installed it, that person can replace it.

Acronis True Image ships several launch daemons, all named starting with com.acronis., and each one starts a program or script that lives inside the application bundle at /Applications/Acronis True Image.app/.

The report is about the permissions on that bundle. The application was installed by drag and drop: the user downloaded it and dragged the icon into the /Applications folder, which is how many Mac programs are installed. When you install that way, an admin user can replace the files inside the bundle. So any daemon that runs a file from inside that bundle is running a file the user is allowed to rewrite. That is the whole bug in one sentence.

Setup

The researcher describes the situation like this:

  • Target: Acronis True Image on macOS, installed by drag and drop into /Applications.
  • Attacker position: a local admin user on the machine. In other words, the attacker already has an account on the computer and that account is allowed to make some system changes, but is not root.
  • The report gives no other tools, no version numbers and no further configuration details.

Why does the starting point matter? Because a bug report is only convincing if the attacker's starting position is realistic. An admin account is a normal thing to have on a Mac, and the report's claim is that such an account is enough to reach root.

Finding it

The researcher looked at the launch daemons whose names match the pattern /Library/LaunchDaemons/com.acronis.* and read each one. The * is a wildcard: it means "anything", so the pattern covers every file in that folder whose name begins with com.acronis.. Every one of them, except a helper related to pricing, starts a program or script inside /Applications/Acronis True Image.app/.

Because the installation was drag and drop, an admin user can replace any of those programs and achieve privilege escalation to root.

The researcher is explicit about why this is a real escalation even though the attacker starts as an admin: on macOS, admin to root is a valid privilege escalation scenario, because root can be obtained without knowing the user's password.

Exploitation

Step 1: Read the daemon definitions

The researcher printed all of the insecure launch daemon files in one command:

Bash
% cat /Library/LaunchDaemons/com.acronis.*

Line by line:

  • % is the shell prompt, the symbol the terminal shows when it is ready for you to type. It is not part of the command.
  • cat is a small program that prints the contents of files to the screen. The name comes from "concatenate", because it can join several files together.
  • /Library/LaunchDaemons/com.acronis.* is the list of files to print. The folder /Library/LaunchDaemons is where macOS keeps its system-wide background service definitions, and com.acronis.* selects every file there whose name starts with com.acronis..

Why do this? Because the plist files are the instructions the system follows. Reading them tells you exactly which program each daemon runs, from which path, and when. That is the map of the attack.

The output contains five property lists. Each one is a standard plist with a Label (the daemon's name) and a ProgramArguments array (the program to run plus any arguments), and each ProgramArguments entry points into the application bundle.

com.acronis.acep runs prl_stat with the argument for_scheduler, and is scheduled with StartInterval set to 1209600:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<false/>
	<key>Label</key>
	<string>com.acronis.acep</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/prl_stat</string>
		<string>for_scheduler</string>
	</array>
	<key>StartInterval</key>
	<integer>1209600</integer>
</dict>
</plist>

What each part means:

  • The first two lines declare the file format: an XML document, and specifically a property list. XML is a way of writing structured data with tags in angle brackets, like <key> and <string>.
  • <dict> opens a dictionary, which is a list of named settings. Each setting is a pair: a <key> (the name) and a value.
  • KeepAlive is set to false, meaning the system should not restart this daemon automatically just because it stopped.
  • Label is com.acronis.acep, the daemon's identifier.
  • ProgramArguments is an array, an ordered list. The first entry is the program to run: /Applications/Acronis True Image.app/Contents/MacOS/prl_stat. The second entry, for_scheduler, is passed to that program as an argument, a piece of extra information the program reads when it starts.
  • StartInterval is 1209600, a number of seconds. That is how often the system runs the program. The report gives the number but does not convert it; the point is that it is a long wait between runs.

com.acronis.mms_mini runs a shell script, is kept alive on unsuccessful exit, and runs at load:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mms_mini</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/mms_mini/mms_mini.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

Here the differences from the first plist are what matter:

  • KeepAlive is now a dictionary rather than false. Inside it, SuccessfulExit is false, which means: restart this daemon if it exits unsuccessfully. A crash or a non-zero exit triggers a restart.
  • ProgramArguments has a single entry, a shell script: a text file of commands that the system runs. The file is mms_mini.sh, inside a subfolder of Contents/MacOS/.
  • RunAtLoad is true, so the program runs as soon as the daemon is loaded, which happens at boot.

com.acronis.mobile_backup_server runs mobile_backup_server.sh, also kept alive on unsuccessful exit and run at load:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mobile_backup_server</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS//mobile_backup_server/mobile_backup_server.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

This is the same shape as the previous one: KeepAlive with SuccessfulExit set to false, a single script in ProgramArguments, and RunAtLoad set to true. The path contains a double slash, MacOS//mobile_backup_server, which is harmless: the system treats repeated slashes as one.

com.acronis.mobile_backup_status_server runs mobile_backup_status_server.sh with the same keep-alive and run-at-load settings:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.mobile_backup_status_server</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS//mobile_backup_status_server/mobile_backup_status_server.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

Again: restart on unsuccessful exit, run at load, and a script path inside the bundle, with the same harmless double slash.

com.acronis.scheduler runs schedul2, with a WorkingDirectory inside the same bundle directory:

XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>com.acronis.scheduler</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Acronis True Image.app/Contents/MacOS/schedul2</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>WorkingDirectory</key>
	<string>/Applications/Acronis True Image.app/Contents/MacOS/</string>
</dict>
</plist>

This one adds WorkingDirectory, which sets the folder the program considers its current location when it runs. If the program later refers to a file by a short relative name, that name is looked up in this folder. Here the folder is inside the bundle, which is the same user-writable place.

The relevant parts are the ProgramArguments paths. Each one is an absolute path, meaning it starts from the top of the disk with /, into /Applications/Acronis True Image.app/Contents/MacOS/. So the daemon executes whatever file sits at that path when it starts. RunAtLoad and KeepAlive mean several of them start at boot and restart after a failed exit, so a replaced file is picked up without waiting for a schedule.

Step 2: Replace an executable

Because the bundle was installed by drag and drop, its files are writable by the installing admin user. The researcher's conclusion is that replacing any of the programs named above achieves privilege escalation to root. The report does not include the replacement commands or a demonstration of the resulting root shell; it states the step and the outcome.

Why is that enough? Because the daemon does not check who wrote the file. It simply runs the path it was told to run, with root's power. The attacker's file inherits that power.

Root cause

The launch daemons run as root but execute files from a location that a non-root user can modify. Security people describe this as a broken trust boundary: a line that is supposed to separate less-trusted from more-trusted things. The privileged component takes its code from a user-writable directory, so the line is not really there. The drag and drop installation is what leaves the executables replaceable, so the daemons' root context and the bundle's permissions do not match.

A simple comparison: a bank hires a security guard and tells them to follow the instructions in a letter left on the pavement outside. Anyone walking past can swap the letter. The guard is trustworthy; the place the instructions come from is not.

Impact

Local privilege escalation. An admin user on the machine can go from admin to root without knowing the user's password, by replacing one of the programs that a root launch daemon starts. The report scopes this to local attackers with an admin account and does not describe remote exploitation, that is, an attack from another machine over a network.

Fix

The report's recommendation is to install the application with a pkg installer, a package file that macOS installs for you and that can set ownership and permissions correctly, so that the folder permissions are set to root:wheel and users cannot modify the files. root:wheel means the owner is the root account and the group is wheel, the group used for system administration. The report does not say whether this was implemented.

Variants to test

If you want to look for the same kind of bug elsewhere, these are the angles the report suggests.

  1. Other drag-and-drop Mac apps with launch daemons. Look for applications installed by dragging into /Applications that also ship launch daemons or launch agents (the per-user equivalent of a launch daemon, stored in a different folder and run as the logged-in user) pointing into their own bundle. A positive result is a plist in /Library/LaunchDaemons whose ProgramArguments path is writable by a non-root user.
  2. Daemons that run shell scripts from the bundle, as mms_mini.sh, mobile_backup_server.sh and mobile_backup_status_server.sh do here. A positive result is a script path you can overwrite and a RunAtLoad or KeepAlive setting that makes it execute soon after boot or after a failed exit.
  3. Daemons with a WorkingDirectory inside a user-writable bundle, as with schedul2. A positive result is a relative file reference or library load that resolves inside that directory. A library is shared code that a program loads while running; if the program looks for it in a folder you control, you can supply your own.
  4. Scheduled daemons with a long StartInterval, such as the 1209600 seconds on com.acronis.acep. A positive result is a writable target that will still be executed at the next interval, or a way to trigger the daemon sooner.

Hunting notes

This class of bug hides in the gap between how an installer places files and how privileged services consume them. On macOS, list /Library/LaunchDaemons and /Library/LaunchAgents, read every plist, and check the ownership and permissions of each ProgramArguments path and WorkingDirectory. Anything under /Applications that is not owned by root:wheel is a candidate. The signal during recon (the early stage of looking around before attacking anything) is an application whose documentation or packaging encourages drag and drop installation while it also registers root daemons.

Glossary

  • Admin user: a macOS account allowed to make some system-wide changes, but not the same as root.
  • Application bundle: a folder ending in .app that macOS shows as a single application icon but which contains many files, including the runnable programs.
  • Argument: extra information passed to a program when it starts, telling it what to do.
  • Array: an ordered list of values in a property list.
  • cat: a command-line program that prints the contents of files.
  • Dictionary: a list of named settings in a property list, each a key and a value.
  • Drag and drop installation: installing a Mac application by dragging its icon into /Applications rather than running an installer package.
  • Key: the name of a setting in a property list.
  • Launch agent: a per-user background service definition, run as the logged-in user rather than as root.
  • Launch daemon: a system-wide background service definition that macOS loads at boot and runs as root.
  • Library: shared code that programs load while running, rather than containing it inside themselves.
  • Local privilege escalation: gaining more power on a machine you already have an account on, for example going from admin to root.
  • macOS: Apple's operating system for Mac computers.
  • pkg installer: a package file that macOS installs for you and that can set file ownership and permissions.
  • plist (property list): a structured configuration file format used by macOS, written in XML.
  • ProgramArguments: the plist setting that names the program to run and any arguments for it.
  • Recon: the early stage of security testing, where you look around and gather information before attacking.
  • Relative path: a file location written relative to the current folder, rather than from the top of the disk.
  • Root: the most powerful account on a Unix-like system, able to do anything on the machine.
  • root:wheel: ownership by the root account and the wheel group, the usual setting for system files that users must not modify.
  • RunAtLoad: a plist setting that runs the program as soon as the daemon is loaded, which happens at boot.
  • Shell script: a text file of commands that the system runs in order.
  • StartInterval: a plist setting giving how often, in seconds, the system runs the program.
  • Trust boundary: a line that is supposed to separate less-trusted from more-trusted parts of a system.
  • Wildcard: a symbol such as * that stands for any characters, used to match several file names at once.
  • WorkingDirectory: a plist setting that sets the folder the program treats as its current location when it runs.
  • XML: a way of writing structured data using tags in angle brackets.

More by Csaba Fitzl

View all

2 more disclosed reports, best first.

More from Acronis

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.