Skip to content
Info disclosure Write-up Beginner

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!!!

Firdaus Muhammad Ismail, on medium.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 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

  1. Prepare a photo that contains GPS location metadata.
  2. Check the photo with exiftool to confirm the metadata is present.
  3. Upload the photo as a profile picture.
  4. Download the uploaded profile picture.
  5. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.