Skip to content
Info disclosure Disclosed report Beginner

Attacker is able to access commit title and team member comments which are supposed to be private

A user could subscribe to another user's profile and receive email notifications containing private commit titles and comments from an internal project, even though the project's visibility was set to 'Only Team Members' and the subscriber was not a team member. This allowed an attacker to read information that should have been restricted.

yashrs Follow

Originally disclosed on HackerOne

  • Triaged in 44 hours
  • Fixed in 2 months
  • Paid in 2 months
  • Disclosed after 4 months

Summary: [add summary of the vulnerability]

Description: [add more details about this vulnerability]

Steps To Reproduce:

To reproduce this vulnerability, we need two accounts, lets say those accounts are: -> [email protected] -> [email protected]

settings.PNG
settings.PNG From the original on HackerOne

Note that the project visibility should be internal.

subscribe.PNG
subscribe.PNG From the original on HackerOne
  • From victim account, comment on any commit, and you should receive it's notification on [email protected], like this:
leaked.PNG
leaked.PNG From the original on HackerOne

As you can see, the message of the commit, team members who commented, what the comment was, everything is visible from the email received. This shouldn't be sent via email because the settings selected for repository is 'Only Team Members' whereas [email protected] is not a team member.

I have tried my best to have perfect steps to reproduce this, still do tell me if you need more info :)

Thanks, Yash :)

Impact

An attacker will be able to view any commit titles, and all comments which shouldn't be visible to him using this vulnerability

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

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 notification system did not check whether the subscriber had permission to view the project before sending commit and comment details.

What the attacker needed

Two accounts; victim creates internal project with 'Only Team Members'; attacker subscribes to victim's profile

How it was found

  1. Create an internal project from the victim account with permissions set to 'Only Team Members'.
  2. From the attacker account, go to the victim's profile and subscribe to all events.
  3. From the victim account, comment on any commit.
  4. The attacker receives an email notification containing the commit message, commenters, and comment content.

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.

A project can be set so only team members see its activity. But the system sent email alerts about new comments to anyone who subscribed to a user's profile, even if that person was not on the team. So an outsider could read private messages just by subscribing.

What is Info disclosure?

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

More by yashrs

View all

6 more disclosed reports, best first.

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.