Demoted user (Developer or above demoted to Guest) can view new activity in MRs created by them via RSS feed
GitLab
Originally disclosed on GitLab
- Fixed in 8 months
- Disclosed after 8 months
HackerOne report #1130777 by jimeno on 2021-03-19, assigned to @dcouture:
Report | Attachments | How To Reproduce
Report
Summary
Demoted user (Developer or above demoted to Guest) can view new activity in MRs created by them via RSS feed. This is very similar to #962604.
Steps to reproduce
-
As victim, create a private project with at least one file.

create_private_project.png From the original on GitLab -
Invite attacker user with Developer role.

invited_developer.png From the original on GitLab -
As attacker, create a MR.

random_change_by_attacker.png From the original on GitLab 
test_mr_by_attacker.png -
As victim, demote the attacker user to Guest role.

demoted_to_guest.png From the original on GitLab -
As victim, add a random activity to the MR. For simplicity, just post a comment and then approve the MR.

admin_comments_and_approves_after_demoting.png From the original on GitLab -
As attacker, browse to the RSS feed of the project (
https://gitlab.com/victimuser/projectname.atom). -
Verify you can see the MR is approved and the comment contents.

guest_can_see_activity_via_rss_feed.png From the original on GitLab -
Verify you can't browse to the MR.

guest_cannot_see_their_mr.png From the original on GitLab
Impact
Demoted user (Developer or above to Guest) can view new activity in MRs created by them via RSS feed.
Examples
Please, find the attached exported project. 2021-03-19_16-10-667_naaytesting2_h1demoterssproof_export.tar.gz
What is the current bug behavior?
New MR activity is shown to the demoted user via RSS feed.
What is the expected correct behavior?
No new MR activity (or no MR activity at all) is shown to the demoted user via RSS feed.
Relevant logs and/or screenshots
N/A
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
N/A
Impact
Demoted user (Developer or above to Guest) can view new activity in MRs created by them via RSS feed.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
- 2021-03-19_16-10-667_naaytesting2_h1demoterssproof_export.tar.gz
- admin_comments_and_approves_after_demoting.png
- guest_can_see_activity_via_rss_feed.png
- guest_cannot_see_their_mr.png
- demoted_to_guest.png
- test_mr_by_attacker.png
- random_change_by_attacker.png
- invited_developer.png
- create_private_project.png
How To Reproduce
Please add reproducibility information to this section:
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity access control bug in gitlab.com. GitLab made it public on 6 December 2021. Fixed in version 14.5.
About 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.