Group private wiki titles are being leaked through the source code of the pages where these private wikis are embedded
Private group wiki titles were leaked in the HTML meta tags of pages where they were embedded, such as epic descriptions. An unauthenticated attacker could view the page source to obtain the confidential wiki titles.
GitLab
Originally disclosed on GitLab
- Fixed in 7 months
- Disclosed after 7 months
⚠️ 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 #2481768 by albatraoz on 2024-04-28, assigned to @kmorrison1:
Report | Attachments | How To Reproduce
Report
Summary
Gitlab provides an option to turn the visibility of group wikis to private which does restricts the access to the wikis for the people who are not a member in the group. These wikis can be embedded in places like description of Epics. When embedded, the wiki titles are redacted for the the unauthenticated/non-members.
It was observed that the private wiki titles of the group are being leaked through source code via meta tags of the pages where these private wikis are embedded(e.g Epic descriptions)
Steps to reproduce
- Create an ultimate group using the free trial link below:
https://gitlab.com/-/trials/new?glm_content=free-trial&glm_source=about.gitlab.com&step=trial
2. Go to the newly created group > Settings > Permissions and group features & set the Wiki to private & change the visibility of the group to Public.
3. Go to the Plan > Wiki and create a new wiki with title as "confidential".
4. Go to Epics > New Epic and create a new epic with any name but description as the content below to embed the wiki:
This is a new wiki
[[confidential]]
- Now open the newly created Epic URL in incognito mode and you will see that it redacts the embedded wiki.
- Now view source of this page and check the meta tags to extract the leaking titles of the embedded wiki.
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 application included the private wiki title in meta tags without checking the viewer's access to the wiki.
Impact
An unauthenticated attacker could obtain the titles of private group wikis, which may reveal sensitive information.
What the attacker needed
A free trial account; group wiki set to private; group visibility set to public; victim (or attacker) views page source
How it was found
- Create a group with a free trial and set its wiki to private while making the group public.
- Create a wiki page with a confidential title.
- Create an epic whose description embeds that wiki.
- Open the epic page in incognito mode; the embedded wiki is redacted.
- View the page source and inspect the meta tags to find the leaked wiki 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 wiki is supposed to be hidden from people outside the group. When a wiki is linked in a public page, the link text is hidden, but the page's hidden metadata still contained the wiki's title. Anyone could read that metadata by viewing the page source.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.