Skip to content
Access control Disclosed report Intermediate

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:

  1. User A - create a public issue PUBLIC_ISSUE_MATEUSZEK in the PoC project A_PROJ
  2. User A - create a private epic PRIVATE_EPIC_MATEUSZEK in the PoC group A
  3. User A - now, edit the description of the public issue PUBLIC_ISSUE_MATEUSZEK in 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.

  1. User A - now, edit the description of the public issue PUBLIC_ISSUE_MATEUSZEK in 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

  1. User B - now, go to the PoC public issue PUBLIC_ISSUE_MATEUSZEK and notice that you don't see the private epic title anywhere in the description - expected behaviour
  2. User B - now, in the public issue PUBLIC_ISSUE_MATEUSZEK click Compare with previous version AND 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

video1.mp4 From the original on GitLab

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:

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 '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

  1. User A creates a public issue in a project.
  2. User A creates a private epic in the group.
  3. User A edits the public issue description in plain text mode, adds a link to the private epic, and saves.
  4. User A edits the public issue description again in rich text mode, adds text below the link, and saves.
  5. User B (guest) views the public issue and does not see the private epic title.
  6. 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.

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.