Skip to content
Info disclosure Write-up Beginner

Tricky & Simple EXIF protection Bypass

Profile images were served through a URL containing a JWT whose header held a second, direct image URL. The application's EXIF protection only stripped location data from the first URL, so anyone who decoded the token could fetch the original image and read its EXIF metadata, including location.

medium.com

Published on medium.com

It’s been a year and a half since my last write-up, so I thought lets share something simple yet interesting. I recently came across an intriguing vulnerability and thought I’d share it with you all.

Saurabh sanmane, 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 image proxy embedded the original image URL inside the JWT header and served that original directly, so stripping EXIF on the proxy URL did not protect the underlying file.

Impact

Anyone who could see a user's profile picture URL could decode the token and recover the original image's EXIF data, potentially exposing the user's location.

What the attacker needed

A user account with a profile picture; access to the profile picture URL

How it was found

  1. Upload an image as a profile picture and trigger the login flow to see the profile picture
  2. Open the image in a new tab and note the URL contains a JWT
  3. Decode the JWT and find a different URL in the header section
  4. Load that URL in an EXIF viewer to retrieve the location data

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 details called EXIF, which can include the GPS location where the picture was taken. The site tried to hide this by serving a cleaned copy, but the link it gave out contained a token that pointed to the untouched original. Decoding that token revealed the original link, so the hidden location could still be read.

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.