Skip to content
Access control Disclosed report Beginner

Reading Wiki pages where it is forbidden by issue description "Compare with previous version" feature

A public issue's 'Compare with previous version' feature revealed the title of a wiki page that was restricted to project members only. An unauthenticated user could read the wiki page title by viewing the issue's version history.

GitLab

Originally disclosed on GitLab

  • Fixed in 20 hours
  • Disclosed after 20 hours

⚠️ 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 #2849174 by mateuszek on 2024-11-18, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

1. Description:
I found a scenario where unauthorized actor can read wiki pages where it is forbidden by issue description "Compare with previous version" feature - [screenshot1.png]

screenshot1.png
screenshot1.png From the original on GitLab

2. Scenario:

I use Gitlab Ultimate Trial in Gitlab Cloud

2.1. Actors:
User A - owner of the public group A and owner of the public project A_PROJ (project inside group A)
User B - for example just Internet user - even not registered Gitlab user

2.2. Steps:

  1. User A - in public project A_PROJ go to: Plan -> Wiki and create the Wiki Page
  2. User A - in public project A_PROJ go to: Plan -> Issues and create the public issue with title and description (e.g.: title: test, description: test)
  3. User A - in public project A_PROJ go to: Settings -> General -> Visibility, project features, permissions -> Wiki and set this option to Only Project Members
  4. User A - go to the PoC created issue and change the description of the issue - mention there the PoC created wiki page by [[<wiki_page_title>]]
  5. User B - go to the PoC public issue and notice that you see in the description of the issue [REDACTED] - expected behaviour - you don't have access to wiki pages of this project
  6. User B - in the PoC public issue click in the activity where User A changed the issue description Compare with previous version - notice that the system will show you the wiki page title without any problems - [screenshot1.png] - Reading Wiki pages where it is forbidden by issue description "Compare with previous version" feature
screenshot1.png
screenshot1.png From the original on GitLab

Best regards,
Mateusz

Impact

  • Reading Wiki pages where it is forbidden by issue description "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

What the attacker needed

Public project; wiki visibility set to members only; public issue with wiki link in description

How it was found

  1. Create a wiki page in a public project.
  2. Create a public issue with a title and description.
  3. Set the project's wiki visibility to 'Only Project Members'.
  4. Edit the issue description to mention the wiki page using double brackets.
  5. As an unauthenticated user, view the public issue and see the wiki link is redacted.
  6. Click 'Compare with previous version' on the issue activity to see the wiki page 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 wiki page was set to be visible only to project members, but a public issue's version history showed its title to anyone. This let outsiders learn the name of a supposedly private page.

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.