How a $100 Profile Picture Glitch Turned Into a $9,000 Zero-Day Reward
An avatar upload feature passed unsanitised EXIF metadata into a background image processing command, allowing command injection inside an isolated container. The attacker then wrote a payload to a shared cache drive, which the main production cluster later executed, achieving remote code execution.
If you ask any experienced bug hunter where to find the biggest payouts, they’ll tell you the same thing: look for features that handle files.
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 execute commands inside an isolated container and then escalate to remote code execution on the main production cluster via a shared cache drive, potentially compromising the entire platform.
What the attacker needed
Ability to upload an avatar; image processing uses shell command; shared cache drive with main cluster
How it was found
- Upload a standard image file and intercept the request to observe the server's response.
- Notice that the uploaded .png file is saved as a .jpg, indicating automatic image processing.
- Craft an image with modified EXIF metadata containing a command payload and upload it.
- Observe an incoming request from the server to the attacker's interceptor, confirming command injection.
- Use the command injection to write a malicious payload into a shared cache drive.
- Wait for an administrator to log in, causing the main application to execute the payload from the cache.
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 upload a profile picture, the server often runs a separate program to resize or convert it. This report shows that if the server passes hidden file details (metadata) into that program without cleaning them, an attacker can sneak in system commands. The attacker could then run their own code on the server, and in this case, spread it to the main system.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.