Todos are not redacted when membership changes - Access to Design Comments
When a user's membership in a project is downgraded, their existing to-do items for design comments are not redacted, unlike those for merge requests and issues. An attacker with a downgraded account could continue to view confidential design comments through the to-do description.
GitLab
Originally disclosed on GitLab
- Fixed in 23 months
- Disclosed after 23 months
HackerOne report #1109559 by maruthi12 on 2021-02-23, assigned to GitLab Team:
Report | How To Reproduce
Report
Summary
The issue #880863 covers Todos being redacted for MRs and Issues. However, this issue still exists for the DesignManagement Feature.
Steps to reproduce
- Consider an project with two members
MaintainerandDeveloper. - Now, from
Maintainer's login , create a confidential issue. - Now, add a design to this issue.
- Go to the design and create a comment,
[@]Developer implement this design. - Now, a To Do will be created for the developer.
- Downgrade the
DevelopertoGuest. - Wait for 1 hour for
TodosRemoverAsync job to kick in. - The Todo is not redacted. Any change in comment will change the Todo's description.
Kindly let me know if you need anything else to reproduce this.
Also, my duplicate reports decrease my Trial reports count. I have previously submitted 2 valid issues to Gitlab. Kindly dont decrease duplicate reports to my trial count
Impact
Using this vulnerability, an unauthorized user can view the confidential issue's design comments.
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 TodosRemover background job does not handle to-dos associated with DesignManagement comments, only those for merge requests and issues.
Impact
An unauthorised user could view confidential design comments after their access is downgraded.
What the attacker needed
Project with at least two members; confidential issue with a design; comment mentioning the other user; downgrade the mentioned user's role
How it was found
- Create a project with a Maintainer and a Developer.
- As the Maintainer, create a confidential issue.
- Add a design to the issue.
- On the design, create a comment mentioning the Developer.
- Downgrade the Developer to Guest.
- Wait for the TodosRemover job to run; the to-do remains and updates with comment changes.
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, when you are mentioned in a comment, a to-do item is created for you. If you later lose access to the project, those to-dos should be removed or hidden so you cannot see the comment anymore. This report shows that for comments on designs (part of issues), the to-dos were not removed, so a user who lost access could still read the comment.
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.