Skip to content
Info disclosure Disclosed report Beginner

Exif metadata not stripped when creating new Issue and Merge Requests with Image Attachments via Email

Images attached to issues or merge requests created via email retain their Exif metadata, including geolocation and device details, whereas images uploaded through the web interface have this metadata stripped. An attacker could send an email with an image attachment to disclose the sender's sensitive location and device information.

GitLab

Originally disclosed on GitLab

  • Fixed in 18 months
  • Disclosed after 18 months

HackerOne report #952786 by muthu199503 on 2020-08-06, assigned to @jbroullon:

Report | Attachments | How To Reproduce

Report

Summary

Gitlab provides an option where Issue and Merge Requests can be created via Email. When doing so if any uploaded attachment image in email contains Exif Geo-location metadata, it is not stripped from the image. Exif metadata will contain sensitive information like users geolocation data and device details. This leads to information disclosure.

Steps to reproduce
  1. Go to gitlab.com -> Project -> issues -> create a new issue and upload an image with Exif metadata on it. Once the image is created, download and verify the exif data is removed from the image

  2. Now move to the issues page and copy the Email address that used to create issues via Email

  3. Send a mail with the above copied email address with an image which contains Exif metadata as an attachment. (Have added a sample image in POC )

  4. Once the issue is created, Navigate to the issue page and download the image and you can see that Exif data is not removed from the image. To verify the image contains Exif data I used the following Web app : http://exif.regex.info/exif.cgi

  5. Merge Requests can also be created via Email and it is also vulnerable to the above bug. You can reproduce it by creating a merge request from Email feature with an image file as an attachment which has Exif metadata in it.

Impact

Exif metadata contains sensitive information like users geolocation data, device details which leads to information disclosure.

What is the current bug behavior?

For Issues which are created via Email if it contains image attachments it should be validated for any Exif metadata and should be removed

What is the expected correct behavior?

For Issues which are created via Email if it contains image attachments the Exif metadata is not removed leading Users sensitive information disclosure

Output of checks

This bug happens on GitLab.com

Impact

Exif metadata contains sensitive information like users geolocation data, device details which leads to information disclosure.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the email ingestion pipeline for creating issues and merge requests does not apply the same Exif metadata stripping that is applied to web uploads.

Impact

Exif metadata containing geolocation and device details could be disclosed to anyone who can view the issue or merge request.

What the attacker needed

Ability to send email to the project's issue email address; Image attachment with Exif metadata

How it was found

  1. Create a new issue via the web interface and upload an image with Exif metadata, then download it and verify the Exif data is removed.
  2. Copy the email address used to create issues via email from the issues page.
  3. Send an email to that address with an image containing Exif metadata as an attachment.
  4. After the issue is created, download the image from the issue page and verify that Exif data is still present.
  5. Repeat the process for merge requests created via email to confirm the same behaviour.

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 report has not been written yet. The Original tab links to the source.

When you upload a photo through a website, the site often removes hidden data called Exif that can include where the photo was taken and what device was used. This report found that when you create an issue or merge request by sending an email with an image attached, that hidden data is not removed, so anyone who downloads the image can see it.

What is Info disclosure?

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

More from GitLab

View all

The newest disclosed reports for this program.

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.