HexBrain

IRCCloud · Report #906907

IDOR with Geolocation data not stripped from images

Validstatus
highseverity
$200bounty
66upvotes
26 Jul 2020disclosed

How it was found

Vulnerable URL :- ████

Vulnerability Discription: When an image is taken using a smartphone or camera certain metadata fields are often attached to it. These fields could include the model of the camera, the time it was taken, whether the flash was used, the shutter speed, focal length, light value and even the location. In Inturn, while uploading the image as a profile picture, the exif data is not stripped from images. The exif data in images contains sensitive data like Geoloacation, latitude, longitude, etc. Also it contains the camera information and other details.

And your website vulnerable to image IDOR which allows attacker to see other users images and retrive data using tool.

Tools Used: exiftool.

Steps TO reproduce:

Use 2 accounts in two browser

Download images from here

https://github.com/ianare/exif-samples/tree/master/jpg/gps

1)In 1st account in network user can upload files just upload the image their and open image link in new tab.

new tab that image url like

██████████

2)In second account do same things and that url like down

█████

  1. Change 1st account Url parameter value to 2nd acoount Url parameter(see poc for it).

  2. now image will shows up copy that url again and paste it to image data retrival website

http://exif.regex.info/exif.cgi

  1. and see sensitive data exposed.

Impact

  1. By this the attacker tracks your location and use it for personal things.
  2. Sensitive data exposed.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original