Leak of confidential issues
GitLab's UI indicated that a confidential issue was moved to another project, but in reality the issue was copied and then closed, leaving the original issue accessible in the source project. An attacker with a promoted role could view confidential issues that the owner believed had been moved away.
GitLab
Originally disclosed on GitLab
- Fixed in under an hour
- Disclosed after under an hour
HackerOne report #742791 by ajriverav on 2019-11-20, assigned to @jeremymatos:
NOTE! Thanks for submitting a report! Please replace all the (parenthesized) sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to triage and respond quickly, so be sure to take your time filling out the report!
Summary
Gitlab's UI incorrectly reports that a confidential issue is MOVED, where in reality it is COPIED and then CLOSED, giving unauthorized users access to the confidential issue.
Steps to reproduce
- Owner creates Repo Operations, and adds two members, Guest and Reporter #1.
- Reporter #1 creates a confidential issue in Repo Operations, which only Reporter #1 and Owner can see.
- Reporter #1 creates a 2nd confidential issue in Repo Operations, which only Reporter #1 and Owner can see.
- Owner creates Repo OperationsConfidential and adds Reporter #1.
- Reporter #1 closes confidential issue #1.
- Reporter #1 moves the closed confidential issue #1 to Repo OperationsConfidential.
- Reporter #1 moves confidential issue #2 to Repo OperationsConfidential.
- For the Repo Operations, Owner promotes Guest to Reporter #2 (a second one since we already had Reporter #1).
- Now, in Repo Operations, Reporter #2 can see confidential issue #1 and #2 (because they WERE NEVER MOVED, as Gitlab's UI indicated. To me, this is wrong. Owner is unknowingly leaking confidential info to Reporter #2 although Gitlab makes one think Reporter #2 will not be able to see them because the issues were MOVED.
Impact
Leakage of confidential issues.
Examples
I noticed this bug when I needed to promote a Guest-level user to Reporter because I wanted the user to be able to change tags. In doing so, I realized I inadvertently exposed confidential issues that HAD SUPPOSEDLY BEEN "MOVED" to another repo.
What is the current bug behavior?
Not needed.
What is the expected correct behavior?
To actually MOVE the issue.
Relevant logs and/or screenshots
Not needed.
Output of checks
Not needed.
Results of GitLab environment info
Not needed.
Impact
In this example, the owner who promoted the guest-level user to reporter-level user will leak confidential issues.
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 move operation for confidential issues is implemented as a copy followed by closing the original, and the UI does not reflect that the original remains accessible.
Impact
Confidential issues that were believed to be moved remain visible to users who are later promoted to a role that can see them, leading to a leak of confidential information.
What the attacker needed
A GitLab project with at least one confidential issue; ability to move issues between projects; ability to change a user's role
The fix
The move operation should actually move the issue, or the UI should clearly indicate that the original remains and is still accessible.
How it was found
- Owner creates a project and adds a Guest and a Reporter.
- Reporter creates two confidential issues in the project.
- Owner creates a second project and adds the Reporter.
- Reporter closes the first confidential issue and moves it to the second project.
- Reporter moves the second confidential issue to the second project.
- Owner promotes the Guest to Reporter in the first project, and the new Reporter can see both confidential issues.
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 confidential issue is one that only certain people can see. The report says that when someone 'moves' such an issue to another project, GitLab actually makes a copy and closes the original, but the original stays in the first project. So if a user is later given a higher role in that first project, they can see the confidential issue even though it looked like it had been moved away.
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.