Skip to content
Path traversal Write-up Advanced

Before the Container Starts: Two Trust-Boundary Bugs in Apple’s Container Stack

Two host-side flaws were found in Apple's container tooling: an imported OCI image archive could contain a symbolic link that made the image service read a file outside the extracted layout, and registry-supplied authentication metadata could point the token request at an arbitrary destination, letting a malicious registry receive a token-shaped value from that destination. The first disclosed host files through image export; the second demonstrated server-side request forgery and credential forwarding.

MaanVader Follow

Published on medium.com

From an AWS Mac to two Apple security acknowledgements: tracing the files, URLs, and assumptions that crossed the host boundary.

MaanVader, on medium.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

Root cause

Likely the loader checked only that a path existed and then opened it, following archive-created symbolic links without verifying the resolved file stayed inside the extraction directory, and the token client parsed a registry-supplied realm URL without restricting its destination.

Impact

A malicious archive could make the image service read files the user can access, such as keys or cloud credentials, and those bytes could be recovered through image export, though access stays limited by the service's permissions and no container escape or root access is shown.

What the attacker needed

Ability to supply an untrusted image archive; victim imports the archive; image service permissions on target file

The fix

The text says the issues were reported and acknowledged but does not state that a fix shipped; the loader should verify the resolved destination stays within the layout and the token client should restrict which authentication destinations it will contact.

How it was found

  1. Create a harmless marker file outside the extraction directory.
  2. Build a probe archive containing a symbolic link to the marker and load it, observing the computed digest in the error.
  3. Build a second archive using that digest so verification passes, and load it.
  4. Export the loaded image and compare the recovered blob with the marker.

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.

When you import a container image, the tool unpacks a bundle of files and then reads some of them. Here the bundle could include a shortcut (a symbolic link) that points at a file elsewhere on your Mac, and the tool followed it, so a file it should never touch got read and could be saved back out inside the image. Separately, a server could tell the tool where to fetch a login token, and the tool obeyed without checking that the address was a legitimate one.

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.