Skip to content
Access control Disclosed report Intermediate

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
  1. Consider an project with two members Maintainer and Developer.
  2. Now, from Maintainer's login , create a confidential issue.
  3. Now, add a design to this issue.
  4. Go to the design and create a comment, [@]Developer implement this design.
  5. Now, a To Do will be created for the developer.
  6. Downgrade the Developer to Guest.
  7. Wait for 1 hour for TodosRemover Async job to kick in.
  8. 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:

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 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

  1. Create a project with a Maintainer and a Developer.
  2. As the Maintainer, create a confidential issue.
  3. Add a design to the issue.
  4. On the design, create a comment mentioning the Developer.
  5. Downgrade the Developer to Guest.
  6. 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.

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.