Skip to content
Access control Disclosed report Intermediate

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
  1. As victim, create a private project with at least one file.

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

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

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

    demoted_to_guest.png
    demoted_to_guest.png From the original on GitLab
  5. 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
    admin_comments_and_approves_after_demoting.png From the original on GitLab
  6. As attacker, browse to the RSS feed of the project (https://gitlab.com/victimuser/projectname.atom).

  7. Verify you can see the MR is approved and the comment contents.

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

    guest_cannot_see_their_mr.png
    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!

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.

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.

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.