Skip to content
Race condition Write-up Advanced

0x0 Summary

Three logic flaws in Adobe Acrobat Reader's privileged updater helper allowed a local attacker to bypass client authentication, symlink a temporary directory, and win a race condition to execute a malicious binary as root without user awareness.

rekken.github.io

Published on rekken.github.io

2020-05-14

The author, on rekken.github.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the updater helper trusted a forgeable bundle identifier, failed to resolve symlinks in a temporary directory, and validated a binary path that could be swapped before launch.

What the attacker needed

Adobe Acrobat Reader DC installed; local user access; ability to run code

The fix

The vulnerability was fixed by adding a new function that checks whether the path is a symlink before validation and launch.

How it was found

  1. Copy Adobe's original updater bundle and place a custom XPC client inside it to pass the bundle ID check.
  2. Create a symlink in the download directory pointing to a target path before triggering the helper.
  3. Trigger the XPC interface so the download directory is moved to a root-owned temporary location, preserving the symlink.
  4. Obtain a valid ARMDCHammer binary by downloading it from the update URL found in Acrobat Update Helper.app.
  5. Run three threads: one repeatedly replaces the target file, one prepares the download directory and symlink, and one triggers the DoWorkAndLaunchHammer interface.
  6. The race condition allows the malicious file to be launched as root after validation.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes how a normal user on a Mac could trick a background program that runs with the highest permissions (root) into running the attacker's own program. The attacker first fakes being a trusted Adobe component, then uses a shortcut file (symlink) to point to their own file, and finally races the program to swap in malicious code after a security check.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.