Mentioning Anyone in Comments at Private User Group Epic
A private user group's epic comment feature allowed mentioning users who were not members of the group, and the mention auto-popup revealed the mentioned user's real name. An attacker with a known GitLab username could expose the real name of any user.
GitLab
Originally disclosed on GitLab
- Fixed in 19 months
- Disclosed after 19 months
HackerOne report #494726 by mehmet on 2019-02-12, assigned to estrike:
1 - Create a regular user. Let's say it's @pentest01
2 - Go to http://your-gitlab-istance/dashboard/groups and create private user group. Don't add anyone.
3 - Go to that user group and add one epic.
4 - At the bottom of the page there is a comment area where you can also mention only user in your group.
5 - Create one comment and in that comment mention yourself.
6 - Intercept the request.
POST /groups/xxxx/-/epics/1/notes HTTP/1.1
Host: 12.0.0.236
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
X-CSRF-Token: [REDACTED]=
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://12.0.0.236/groups/xxxx/-/epics/1
Content-Length: 112
Cookie:[REDACTED]e
Connection: close
note%5Bnoteable_type%5D=epic¬e%5Bnoteable_id%5D=1¬e%5Bnote%5D=%40root&merge_request_diff_head_sha=undefined
7 - At the note[note] parameter you must see %40pentest01. Change it with %40root which means that
we are mentioning a default user who is NOT member of our private user group.
8 - Go back to your story and validate that you are seeing @root user successfully mention in your comment.
9 - Move your mouser over that mention, auto-popup will show name of that user as well.
Impact
With a known gitlab username, attackers can expose real name of users.
Attachments
Warning: Attachments received through HackerOne, please exercise caution! [REDACTED]
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 server did not verify that mentioned users were members of the private group before resolving and displaying their profile information.
Impact
An attacker who knows a GitLab username could expose that user's real name, even from a private group context.
What the attacker needed
A GitLab account; ability to create a private group; knowledge of a target username
How it was found
- Create a regular user account.
- Create a private user group without adding anyone.
- Add an epic to that group.
- Write a comment mentioning yourself.
- Intercept the request and change the mention to another username.
- Observe that the other user is mentioned and their real name is shown.
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 private group is meant to be visible only to its members. The comment box on an epic was supposed to let you mention only people in that group, but the server did not check this. By changing the mention in the request to any username, the page showed that person's real name, which is private information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.