How I Earned $200 From a Simple EXIF Bug (Step by Step Guide, Yo
A feedback form allowed image uploads and returned the images with EXIF metadata intact, including GPS coordinates, device model and timestamp. An attacker could learn where a user lives or works from a downloaded image.
Published on infosecwriteups.com
I came across a feedback form that had a profile image upload feature. I uploaded a random photo from my phone and later downloaded it back from the platform.
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 application stored and served uploaded images without stripping EXIF metadata.
Impact
Anyone who downloads an uploaded image could pinpoint a user's home or office and track their movements, which may enable physical or social engineering attacks.
What the attacker needed
A form that accepts image uploads; upload a photo with GPS metadata; ability to download the uploaded image
The fix
The application should strip EXIF metadata from uploaded images before storing or serving them.
How it was found
- Find a form or profile page that accepts image uploads.
- Upload a photo taken with GPS and location enabled.
- Download the same image back from the site.
- Check the downloaded image with an EXIF viewer to see if GPS or device data remains.
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.
Photos taken on phones often store hidden extra information called EXIF, such as where the photo was taken and which phone was used. If a website keeps that hidden information when it stores or shares the photo, anyone who downloads the photo can read it. Here the site did not remove it, so the uploader's location could be exposed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.