Exif Metadata Not Stripped Leak User Geolocation
The photo upload feature on a profile update page did not strip EXIF metadata from uploaded images. An attacker could upload a photo containing GPS coordinates, and anyone who downloaded the image could read the location data.
medium.com
Published on medium.com
hi everyone. in this article, i want to share my bug hunting experience on a program that i got through one of my connections and friends on linkedin. so, without further ado, let’s get straight into it!!!
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 server saved uploaded images without processing them to remove EXIF metadata.
Impact
Anyone who downloads the uploaded image could read the uploader's GPS location, and the impact could be more severe if combined with user enumeration.
What the attacker needed
Ability to upload a profile photo; victim downloads the image
How it was found
- Prepare a photo that contains GPS location metadata.
- Check the photo with exiftool to confirm the metadata is present.
- Upload the photo as a profile picture.
- Download the uploaded profile picture.
- Check the downloaded photo with exiftool to see if metadata was stripped.
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 take a photo with a phone, the image file often stores extra hidden information such as the time and the GPS location where it was taken. This is called EXIF metadata. The site let people upload profile pictures without removing that hidden data, so anyone who saved the picture could see where it was taken.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.