Privileges escalation to read private epics titles by Compare with previous version feature
A public issue's description could be edited to include a link to a private epic, and then when a guest viewed the 'Compare with previous version' feature, the private epic's title was disclosed. An attacker with guest access could read private epic titles.
GitLab
Originally disclosed on GitLab
- Fixed in 43 days
- Disclosed after 43 days
⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.
HackerOne report #2785409 by mateuszek on 2024-10-16, assigned to @ottilia_westerlund:
Report | Attachments | How To Reproduce
Report
1. Description:
As I noticed in my other reports e.g.:
https://hackerone.com/reports/2774817
https://hackerone.com/reports/2774474
Gitlab team treat each resource as different vulnerability.
In relation to my report related to the PoC scenario where I reported all vulnerable resources in one report:
https://hackerone.com/reports/2777676
I decided to split the report 2777676 and create the different reports for each resource.
In general when we for example change the description of the public epic or public issue then there is a feature Compare with previous version
I found a scenario where this feature disclosure private epics titles for unauthorized actor by the system vulnerability.
2. Scenario:
2.1. Actors
User A - private group A owner and private project A_PROJ owner (project inside group A)
User B - private group A guest and private project A_PROJ guest (project inside group A)
2.2. Steps:
- User A - create a public issue
PUBLIC_ISSUE_MATEUSZEKin the PoC project A_PROJ - User A - create a private epic
PRIVATE_EPIC_MATEUSZEKin the PoC group A - User A - now, edit the description of the public issue
PUBLIC_ISSUE_MATEUSZEKin the specific way:
You need to be in plain text editing mode and you need to click Add a link then you need to add the link to the PoC private epic PRIVATE_EPIC_MATEUSZEK then save changes.
- User A - now, edit the description of the public issue
PUBLIC_ISSUE_MATEUSZEKin the specific way:
You need to be in the rich text editing mode and you need to add something below the url like test then save changes - You didn't disclosure the private epic name anywhere
- User B - now, go to the PoC public issue
PUBLIC_ISSUE_MATEUSZEKand notice that you don't see the private epic title anywhere in the description - expected behaviour - User B - now, in the public issue
PUBLIC_ISSUE_MATEUSZEKclickCompare with previous versionAND NOTICE THAT THERE THE SYSTEM ADDED THE PRIVATE EPIC TITLE TO THE NEW VERSION BY THE VULNERABILITY / ACCIDENT - the system should show the link
I recorded the PoC video where I show everything step by step - video1.mp4
Best regards,
Mateusz
Impact
- Privileges escalation to read private epics titles by Compare with previous version feature
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
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 'Compare with previous version' feature renders the link text from the private epic without checking the viewer's permissions.
What the attacker needed
Attacker has guest access to the group; a public issue and a private epic exist in the group; the issue description is edited to link to the private epic
How it was found
- User A creates a public issue in a project.
- User A creates a private epic in the group.
- User A edits the public issue description in plain text mode, adds a link to the private epic, and saves.
- User A edits the public issue description again in rich text mode, adds text below the link, and saves.
- User B (guest) views the public issue and does not see the private epic title.
- User B clicks 'Compare with previous version' and sees the private epic title.
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 private epic is a confidential work item in GitLab. A guest user normally cannot see its title. By adding a link to the private epic in a public issue and then editing the issue again, the comparison view accidentally showed the private epic's title to the guest.
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.