Skip to content
Access control Disclosed report Beginner

View the name of a private project, through notification settings

A user who subscribed to notifications for a public project could still see the project's name and receive notifications after the project was made private. This allowed an attacker to monitor changes to a private project they no longer had access to.

GitLab

Originally disclosed on GitLab

  • Fixed in 6 months
  • Disclosed after 6 months

HackerOne report #637230 by iframe on 2019-07-07, assigned to estrike:

Hello, I found something interesting, we can look at the name of a private project (and it is even possible to receive notifications about all its changes) in a specific case.

1 . And for starters, I created a public project on account ==A==

2 . Next, from account ==B==, I recognized the project identifier

Project ID: 13105788

3 . Next account ==B== subscribed to project notifications

gitlab1.png
gitlab1.png From the original on GitLab

4 . Account ==A== made the project private

gitlab1.png
gitlab1.png From the original on GitLab

5 . Next we go to account ==B== and see if the notification settings remain.

Yes, they stayed, and it's damn cool)

gitlab1.png
gitlab1.png From the original on GitLab

6 . And now, to make sure that this is not visual, I will change the name of the project from account ==A==

7 . Now let's see from account ==B== if the name of the project has changed.

gitlab1.png
gitlab1.png From the original on GitLab

Oh yeah)
===

Impact:

Thus, if the project was opened and we managed to subscribe to its notifications, even after closing we can follow it.

Impact

Thus, if the project was opened and we managed to subscribe to its notifications, even after closing we can follow it.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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 notification subscription was not revoked when the project's visibility changed to private, and access controls did not re-check permissions for existing subscribers.

What the attacker needed

Attacker has an account; Victim has a public project; Attacker knows project ID; Attacker subscribes before project becomes private

How it was found

  1. Create a public project on account A.
  2. From account B, obtain the project identifier.
  3. From account B, subscribe to project notifications.
  4. On account A, change the project to private.
  5. On account B, check that notification settings remain.
  6. On account A, change the project name and observe the update on account B.

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 a project is public, anyone can subscribe to get updates about it. If the project later becomes private, the system should stop sending updates to people who are not members. Here, it did not, so someone could keep watching a private project.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.