Skip to content
Path traversal Write-up Advanced

How a 30-Year-Old Path Traversal Earned $150K From Apple’s AI Cloud

Apple's Private Cloud Compute boot process used an archive extractor that did not sanitise file paths, allowing a crafted tar to write files as root to persistent locations. An attacker could redirect AI telemetry to their own server and bypass attestation checks.

infosecwriteups.com

Published on infosecwriteups.com

Most bug-bounty hunters focus on web bugs. But Apple’s PCC security program highlights three guarantees: statelessness, attestation, and sealed observability.

Abhishek meena, on infosecwriteups.com

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

Impact

An attacker could write files as root to persistent storage and redirect AI telemetry to their own server, bypassing attestation because it only checks installed software, not runtime configuration files.

What the attacker needed

Ability to supply a crafted tar to darwin-init; A valid Apple-signed cryptex bundle; Access to a PCC node or VRE

The fix

The text does not state a fix; it should be fixed by sanitising archive entry names and enabling secure extraction flags such as ARCHIVE_EXTRACT_SECURE_NODOTDOT.

How it was found

  1. Create a real cryptex using Apple's pccvre cryptex create tool.
  2. Add two extra files to the same tar: a file to write to /var/db/ and a config file for splunkloggingd pointing to the researcher's server.
  3. Pack everything together so the generic extractor writes the traversal files and extracts the valid cryptex.
  4. The node passes the fullyApplied check, reboots, and comes up normally.
  5. Verify the file exists after reboot and is owned by root.
  6. Observe the researcher's listener receiving telemetry POSTs.

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.

A path traversal bug lets someone trick a program into reading or writing files outside the folder it is supposed to use, by putting special characters like '../' in a file name. Here, the program that sets up Apple's AI cloud ran as the most powerful user (root) and did not check file names, so a malicious file could be placed anywhere. The attacker used this to change a logging setting and send sensitive data to their own computer.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.