GitLab object reference (issue, MR, epic or any other object) is exposed in a markdown link title
A guest user in a private project could read the title of a confidential incident by viewing the diff of a wiki page that had been edited to include a link to that incident. The title was exposed in the markdown link title attribute in the diff view.
GitLab
Originally disclosed on GitLab
- Fixed in 56 days
- Disclosed after 56 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 #2774817 by mateuszek on 2024-10-10, assigned to @ngeorge1:
Report | Attachments | How To Reproduce
Report
1. Description:
I found a scenario where unauthorized actor has access to read confidential incidents in Gitlab Wiki by Wiki History Diff feature
2. Scenario:
2.1. Actors:
User A - private group A owner and private project A owner (project inside group A)
User B - private group A guest and private project A guest (project inside group A)
2.2. Steps:
- User A - in the PoC private project A create a confidential incident (
Plan->Issues) - User A - in the PoC private project A create a specific Wiki page (
Plan->Wiki->New page)
You need to use the plain text editor of the Content and in Content add Add a link and add the link to the confidential incident
It should look like on the [screenshot1.png]

Now, click Create page
3. User A - now, click Edit (edit that page), click Switch to rich text editing and add something e.g.: test below the url
[screenshot2.png]

[screenshot3.png]

Then click Save changes
- User B - go to PoC Wiki page and notice that you don't see the title of the linked confidential incident - expected behaviour
- User B - in the PoC Wiki page click three dots and then choose
Page historythen chooseDiffnext to versionv2
[screenshot4.png]

- User B - notice that in the Diff view there is visible for you the title of the PoC confidential incident - Privileges escalation to read confidential incidents by unauthorized actor in Gitlab Wiki by Wiki History Diff feature
[screenshot5.png]

3. Additional infomration:
I recorded the PoC video where I show everything step by step - video1.mp4
Best regards,
Mateusz
Impact
- Privileges escalation to read confidential incidents by unauthorized actor in Gitlab Wiki by Wiki History Diff 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 wiki diff view renders the markdown link title attribute without checking if the viewer has permission to see the linked object's title.
Impact
A guest user could read the title of a confidential incident, which they should not be able to see.
What the attacker needed
Private project with wiki enabled; attacker is a guest in the project; victim creates wiki page linking to confidential incident
How it was found
- As project owner, create a confidential incident in a private project.
- Create a wiki page using the plain text editor and add a link to the confidential incident.
- Edit the page, switch to rich text editing, add some text, and save changes.
- As a guest, view the wiki page and confirm the incident title is not shown.
- As the guest, open the page history and view the diff for the latest version.
- Observe that the confidential incident title is visible in the diff view.
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 wiki page can contain links to other items like issues. If a user without permission views the page history, they might see the linked item's title even if they cannot access it. This report shows a guest could see a confidential incident title through the wiki diff.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.