Skip to content
Access control Disclosed report Intermediate

Todos are not redacted when membership changes - Access to (confidential) issues and merge requests

When a user's project access level was reduced from Repository to Guest, their existing to-do items for confidential issues and merge requests were not redacted, allowing the user to continue accessing those items via the API. The vulnerability only occurred when permissions changed from higher to lower; removal from the project did redact to-dos.

vaib25vicky Follow

Originally disclosed on HackerOne

  • Triaged in 7 days
  • Fixed in 4 months
  • Paid in 7 days
  • Disclosed after 5 months

Summary

This vulnerability was fixed in https://gitlab.com/gitlab-org/gitlab-foss/-/issues/54349 , but it reappears maybe due to some new changes and one is able to reproduce the vulnerability to access confidential issues and MRs.

All issues and MRs used to get redacted after one hour grace period but it is not happening anymore.

The vulnerability only affects when user permissions changes from higher to lower. If user is removed from the project then the to-dos are getting redacted.

Steps to reproduce

  • Owner of the project added a user with Repository access level.
  • User adds issues and MRs to his to-dos list
  • Owner changes user access level to Guest
  • Guest then use the api and get access to all new changes to the issues and MRs.

curl --header "PRIVATE-TOKEN: <User A Token>" https://mygitlab.example.com/api/v4/todos

Impact

User still has access to (confidential) issues and merge requests after permission was removed.

What is the current bug behavior?

Bug still allows low access level user Guest to access confidential issues and MRs

What is the expected correct behavior?

Redact the confidential issues and MRs

###PoC

In the image below, you can see MRs and issues are not redacted even after 2 hours.

pocc.png
pocc.png From the original on HackerOne

Output of checks

This bug happens on GitLab.com

Impact

Todos are not redacted when membership changes - Access to (confidential) issues and merge requests

The original report as published on HackerOne, by vaib25vicky. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 to-do redaction logic did not trigger when a user's project membership was downgraded rather than removed.

Impact

A user with Guest access could still view confidential issues and merge requests through their to-do list after their permissions were reduced.

What the attacker needed

A GitLab account; membership in a project with Repository access; ability to add issues/MRs to to-dos; owner changes access to Guest

The fix

The to-do redaction logic should be updated to trigger on permission downgrades, not only on removal.

How it was found

  1. Create a private project (or a public one for confidential issues only).
  2. Add a user with Repository access level.
  3. As that user, add issues and merge requests to the to-do list.
  4. Change the user's access level to Guest.
  5. As the Guest user, call the API to retrieve to-dos and observe access to the issues and merge requests.

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 to-do list helps you track issues and merge requests you care about. Normally, when your access to a project is reduced, items you should no longer see are removed from your to-do list. Here, that removal did not happen, so a user with lower access could still see private items through the API.

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

View all

5 more disclosed reports, best first.

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.