Skip to content
Access control Disclosed report Beginner

Removed reporter can still completely modify confidential reports in a public project

A removed reporter could still access and modify confidential issues because they remained assigned to those issues. An attacker could assign themselves confidential issues and continue to view and comment on them after removal from the project.

GitLab

Originally disclosed on GitLab

  • Fixed in 21 hours
  • Disclosed after 21 hours

HackerOne report #1034986 by anshraj_srivastava on 2020-11-15, assigned to @cmaxim:

Report | Attachments | How To Reproduce

Report

Summary

Hi team,
I found this very weird logical flaw that a reporter in a public project ==can assign issues to himself including confidential ones, and if the reporter is removed, he can still access and modify confidential reports since he/she is the assignee==, although he/she has been removed. I am not sure if this is due to a grace period, but there shouldn't be any grace period when data can be modified.

Steps to reproduce

1.Create a public project and add a reporter member to it-

recording-1605444176853.webm From the original on GitLab

2.Now go to the reporter account and assign confidential issues to yourself-

recording-1605444281945.webm From the original on GitLab

3.Remove the reporter from the admin account-

recording-1605444317787.webm From the original on GitLab

4.Go to the reporter account and you see that all the confidential issues are still there-

  • To confirm we also add comments in one of them-
  • We can check from the maintainer account that the comment is indeed made-

==Public project link-== https://gitlab.com/photographyknavel/test-2

Impact

While the need for assignees is understandable, the fact that a reporter can do them and isn't even withdrawn ==when he himself is removed is a logical error.==

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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 system does not revoke issue assignments when a user is removed from a project, so the removed user retains access through the assignment.

Impact

A removed reporter could still view and comment on confidential issues they were assigned to.

What the attacker needed

A public project; reporter role; confidential issues exist

How it was found

  1. Create a public project and add a reporter member.
  2. As the reporter, assign confidential issues to yourself.
  3. Remove the reporter from the project using an admin account.
  4. Log in as the removed reporter and observe that confidential issues are still accessible.
  5. Add a comment to one of the confidential issues to confirm modification is possible.
  6. Verify from a maintainer account that the comment was posted.

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 a project management tool, a reporter is a user who can create issues. If that user is removed from the project, they should lose all access. Here, the user could still see and change private issues because they were assigned to them, and the system did not remove that assignment when the user was removed.

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.