Former developers can see alert status using TODO
A developer who created a TODO for an alert could still see the alert's status in their TODO dashboard after being removed from the private project or demoted to a lower role. This allowed former developers to monitor alert status changes they should no longer have access to.
GitLab
Originally disclosed on GitLab
- Fixed in 15 months
- Disclosed after 15 months
HackerOne report #985341 by ashish_r_padelkar on 2020-09-18, assigned to @cmaxim:
Report | How To Reproduce
Report
Summary
Hello,
Developer users can see alerts at https://gitlab.com/group_new_1/project2/-/alert_management and they can create TODO for these alerts. When such developers create TODOs for for these alerts, their status can be monitored even if developers are removed from the project or demoted to guest role at https://gitlab.com/dashboard/todos
Steps to reproduce
- Login as developer role in private project and Go to
https://gitlab.com/group_new_1/project2/-/alert_management. - Create a TODO
- Admin removes developer from the private project (Or demote it to guest/reporter as they shouldn't see alerts).
- Developer can still go to
https://gitlab.com/dashboard/todosand they can still see the TODO created for alert. - Admin marks the alert as RESOLVED.
Developers can see the status change in TODO dashboard!
What is the current bug behavior?
Former developer users can see alert status from TODOs
What is the expected correct behavior?
When users are demoted or removed from private project, TODO shouldnt appear in TODO dashboard!
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Former Developer users can see alert status using TODOs
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.
How it worked
Root cause
Likely the TODO dashboard did not re-check the user's current project membership or role before displaying alert-related TODOs.
Impact
Former developers could see the status of alerts in a private project after losing access, which may reveal operational information.
What the attacker needed
Developer role in a private project; ability to create a TODO for an alert; admin removes or demotes the developer
How it was found
- Log in as a developer in a private project and go to the alert management page.
- Create a TODO for an alert.
- Have an admin remove the developer from the project or demote them to guest or reporter.
- As the developer, go to the TODO dashboard and observe the TODO for the alert is still visible.
- Have an admin mark the alert as resolved.
- Observe the status change in the TODO dashboard.
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.
In GitLab, a TODO is a personal to-do item linked to something like an alert. When someone loses access to a project, their old TODOs should also stop showing project information. Here, the TODO kept showing the alert's status even after the person was removed, so they could still learn whether the alert was resolved.
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.