Extract — Load — Upload | A $20000 File Read Bug POC Methodology
The API handling uploaded archive files failed to sanitise symbolic links during extraction, allowing an attacker to create a malicious archive with symlinks pointing to sensitive system files. The application would then import the targeted file and upload its content to a new group, making it available through a public URL.
Visual & Practical Breakdown of one of the highest paid arbitrary file read vulnerability POC
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 archive extraction process did not resolve or block symbolic links, allowing them to point outside the intended extraction directory.
What the attacker needed
Ability to upload or provide a URL to an archive; import feature that extracts archives
How it was found
- Look for import features in settings, group creation, user profiles, or API documentation.
- Craft a malicious archive by adding symlinks to sensitive files and repacking it.
- Deliver the payload via direct upload or a remote URL.
- After import, find the uploads section and access the copied file via its public URL.
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 like a shortcut that points to another file. If a program unpacks an archive without checking these shortcuts, an attacker can include a shortcut to a sensitive file like a password file. When the program later reads the shortcut, it actually reads the sensitive file and may expose its contents.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.