Skip to content
Access control Disclosed report Beginner

Todos on designs are not removed after membership changes

Todos created on design notes were not removed when a user's group membership was revoked, even after the one-hour grace period. A removed user could still see the design todo, giving them access to design content they should no longer have.

GitLab

Originally disclosed on GitLab

  • Fixed in 4 months
  • Disclosed after 4 months

HackerOne report #682748 by xanbanx on 2019-08-27:

Hi GitLab security team,

Summary

GitLab has the feature of design management, where developers can share and iterate on designs, which is part of an issue. On a design, developers can create notes, and by referencing other people, todos for them are created. However, when a member, who has access is removed, and does not have access to the project anymore, the associated todos for designs persist and are not removed.

I know that GitLab implemented a 1 hour grace period before todos are removed. However, here the todos remain even after this period.

Steps to reproduce

This requires a project/group which supports the design management feature.

  1. Create a public group and inside a private project
  2. Add a second member to with developer rights to the group, for now on denoted as user_b
  3. In the private project create an issue and upload a design
  4. On the design, create a note and mention user_b --> creates a todo fo user user_b
  5. Remove user_b from the group
  6. Wait for the one hour grace period for removing todos when the membership changes
  7. As user_b, visit the todos and see that the todo for the design is still there and not yet removed

Impact

This gives users without access to the project still access to the designs todo.

What is the current bug behavior?

Todos on designs are note removed after the membership changes, even not after the grace period.

What is the expected correct behavior?

Todos on designs should be removed if the membership changes after the grace period.

Output of checks

This bug happens on GitLab.com

Best,
Xanbanx

Impact

See above.

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 todo cleanup logic on membership removal did not cover todos attached to design notes.

Impact

A user removed from a group could still access design content through a lingering todo, even after the grace period.

What the attacker needed

A group with design management; a private project in that group; a second user with developer rights; victim removed from the group

The fix

Todos on designs should be removed when membership changes, after the grace period.

How it was found

  1. Create a public group containing a private project.
  2. Add a second user as a developer to the group.
  3. Create an issue in the private project and upload a design.
  4. Add a note on the design mentioning the second user, creating a todo.
  5. Remove the second user from the group.
  6. Wait one hour, then check the second user's todos and see the design todo remains.

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.

A todo is a personal reminder that links to a note on a design. When someone is removed from a group, their todos should be cleaned up after a short delay. Here they were not, so the removed person could still open the design through the todo.

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.