Skip to content
Info disclosure Disclosed report Beginner

Disclosure of personal email address by downloading email patches in merge requests

A merge request's .patch endpoint exposed the author's personal email address in the From header. An attacker could download the patch to obtain that private email.

GitLab

Originally disclosed on GitLab

  • Fixed in 13 days
  • Disclosed after 13 days

HackerOne report #1581532 by mega7 on 2022-05-26, assigned to @rshambhuni:

Report | How To Reproduce

Report

Hello Gents,
I would like to report an issue where attackers are able to find out the personal email address by downloading email patches in merge requests.

Steps to reproduce & Proof of concept:
  • Please open any merge request, then add .patch at the end.

For example:

https://gitlab.com/openflexure/openflexure-microscope/-/merge_requests/267.patch
https://gitlab.com/openflexure/openflexure-microscope/-/merge_requests/251.patch
From: public-username <[email protected]>

Impact

Disclosure of personal email address.

Thanks and have a nice day!

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 patch export included the commit author's raw email address instead of a privacy-preserving address.

Impact

The personal email address of the merge request author could be disclosed.

What the attacker needed

Access to a merge request

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 view a merge request (a request to merge code changes), adding .patch to the URL downloads the changes as an email file. That file included the author's real email address, which was meant to be private. Anyone who could see the merge request could get that email.

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.