Skip to content
Path traversal Write-up Intermediate

research

A zip file containing symbolic links could be used to read arbitrary local files on an iOS device when opened in the Files app. An attacker could craft such a zip and share it with a victim, who then opens it and sends a file back, revealing sensitive system files.

Omar Espino Follow

Published on omespino.com

Disclaimer: Unfortunately, after 13 months of waiting and the bug patched, Apple didn’t consider this as security issue and it wasn’t rewarded.

Omar Espino (@omespino), on omespino.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 Files app did not properly validate or restrict symbolic links when extracting zip archives, allowing symlinks to point to arbitrary local files.

What the attacker needed

Victim opens a crafted zip file; victim shares a file back to attacker

The fix

The issue was addressed with the release of iOS 14.5.

How it was found

  1. Create a zip file containing symbolic links to sensitive system files.
  2. Share the zip file with the iOS device (e.g., via AirDrop).
  3. On the iPhone, open the Files app, go to Downloads, and tap the zip file.
  4. Navigate into the extracted symlinks folder.
  5. Choose any file and send it back to the Macbook (e.g., via AirDrop).
  6. On the Macbook, receive the file, append .txt to the filename, open it, and read the contents.

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 symbolic link (symlink) is a special file that points to another file. If a zip file contains symlinks, and an app extracts it without checking, the symlinks can point to sensitive files on the device. When the user later opens or shares those files, the attacker can read them.

What is Path traversal?

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

More by Omar Espino

View all

15 more disclosed reports, best first.

More from Apple

View all

The newest disclosed reports for this program.

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.