The existence of a group protected by SAML SSO is disclosed through Group Explorer
A group protected by SAML SSO could be discovered through the Group Explorer search, even though its direct page and API returned no information. An attacker could confirm the existence of such a private group.
GitLab
Originally disclosed on GitLab
- Fixed in 5 months
- Disclosed after 5 months
HackerOne report #1622892 by tnir on 2022-07-02, assigned to GitLab Team:
Report | How To Reproduce
Preliminary questions
Hi team, we've received a couple reports in the past (like report 1128814) concerning the ability to view private group members, and/or confirm private group existence. For non-impactful reports we've written them as informational as they these typically do not appear to have a negative security impact. While this report doesn't appear to be ~security related, I have the following questions:
- Is this behavior inconsistent on purpose? ex: SAML-disabled groups yield confirmation of private group existence while SAML enabled groups yield a 404.
- If not, can we make the behavior consistent? ex: 404 for all?
- If the behavior is consistent with our auth schema, can we update our docs to indicate so?
Report
Summary
The existence of a group protected by SAML SSO (including SCIM provisioning) is disclosed through Group Explorer.
Steps to reproduce
- Set up User A (admin) and User B (actor) on GitLab.com.
- Create a top-level group on GitLab.com in User A (suppose the name is
https://gitlab.com/example-group-protected-by-saml-sso) - Setup SAML SSO for GitLab.com groups in User A
- Make sure if either
https://gitlab.com/example-group-protected-by-saml-ssoorhttps://gitlab.com/groups/example-group-protected-by-saml-sso/-/group_membersis not accessible by User B or anonymous user. - Make sure if
https://gitlab.com/api/v4/groups?search=example-group-protected-by-saml-sso&top_level_only=truedoes not include any information about the group namedexample-group-protected-by-saml-sso. - User B will see the group User A created via access to https://gitlab.com/explore/groups?filter=example-group-protected-by-saml-sso.
Impact
User B can unveil the existence of example-group-protected-by-saml-sso group while User A does not expect.
Examples
Any top-level group with SAML SSO (including SCIM provisioning) for GitLab.com groups can be affected.
What is the current bug behavior?
https://gitlab.com/explore/groups?filter=example-group-protected-by-saml-sso shows the information of https://gitlab.com/example-group-protected-by-saml-sso
What is the expected correct behavior?
https://gitlab.com/explore/groups?filter=example-group-protected-by-saml-sso should not include any information of https://gitlab.com/example-group-protected-by-saml-sso
Relevant logs and/or screenshots
Omitted due to information about GitLab.com (paid) customers.
Output of checks
This bug happens on GitLab.com.
Impact
User B (attacker) can unveil the existence of example-group-protected-by-saml-sso group with SAML SSO or SCIM provisioning enabled while User A (group owner/admin on GitLab.com) does not expect.
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 Group Explorer search does not apply the same visibility restrictions as the group's own page and API, so SAML-protected groups remain listed.
Impact
An attacker could confirm the existence of a SAML-protected group, which the owner did not expect to be disclosed.
What the attacker needed
A GitLab.com account (free); target group uses SAML SSO or SCIM
How it was found
- Set up an admin user and an actor user on GitLab.com.
- Create a top-level group as the admin.
- Enable SAML SSO for that group.
- Confirm the group page and members page are not accessible to the actor or anonymous users.
- Confirm the groups API search returns no information about the group.
- As the actor, search for the group name in the Group Explorer and see the group listed.
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.
SAML SSO is a way to log in via a separate identity provider, often used to restrict access to a group. The Group Explorer is a directory of groups. The bug meant that even if a group was locked down with SAML, a user could still see it listed there and learn it exists.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.