New private group name visible to users if request access is enabled
A user who had requested access to a public group received a denial email that included the group's new name after the owner made the group private and renamed it. This leaked the new private group name to a non-member.
GitLab
Originally disclosed on GitLab
- Fixed in 2.1 years
- Disclosed after 2.1 years
HackerOne report #712045 by ashish_r_padelkar on 2019-10-11, assigned to @jeremymatos:
Summary
Hello,
When public group has a setting enabled Allow users to request access , anyone can request access to such groups.
The problem happens when this public group becomes private, and then group changes the name. The new group name is sent to the users if their access is denied by the group owner.
Steps to reproduce
- As a public group owner, enable
Allow users to request accessat https://gitlab.com/groups/<GroupName>/-/edit#js-general-settings - Login as non member and request the access to above group
- As a group owner, change the group visibility to
Privateand also change the group name. - Now deny the request access which was done by non member in step2
- Email is sent to non member now with new group name which is private
Access to the <NewPrivateGroupName> group was denied
What is the current bug behavior?
New private group name is sent through email if owner deny the access request after visibility and group name changes.
What is the expected correct behavior?
New name of the group shouldnt be visible to non members in email
Output of checks
This bug happens on GitLab.com and might be omnibus installations too!
Impact
New group name disclosure when group becomes private.
Proposal
Once a group visibility changes to Private, any access requests that are denied after that change should have a text in the email such as, Your request to access a Private Group was denied., or something similar, without calling out the updated private name of the group.
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 denial email template used the group's current name at send time without checking whether the recipient was still allowed to see that group.
Impact
A non-member could learn the new name of a group that had been made private, a minor information disclosure.
What the attacker needed
A public group with access requests enabled; attacker requests access before group goes private; owner renames group and denies request
The fix
The denial email should use generic wording that does not include the private group name.
How it was found
- As a public group owner, enable the setting that lets users request access.
- As a non-member, request access to that group.
- As the owner, change the group to private and rename it.
- Deny the pending access request.
- The non-member receives an email containing the new private group name.
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 group on GitLab can be public or private. When someone asks to join a public group, the owner can later say no. If the owner first makes the group private and gives it a new name, the 'no' email still shows that new secret name to the person who was refused.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.