You Can Still Join Private Group Using SAML Authentication after Admin Disabled SAML
After a group admin disabled SAML SSO, a user could still authenticate via SAML and join the private group as a member. This allowed unauthorised access to a private group despite the admin's intent to disable SAML.
GitLab
Originally disclosed on GitLab
- Fixed in 26 days
- Disclosed after 26 days
HackerOne report #482429 by ngalog on 2019-01-19, assigned to estrike:
Summary:
Group Admin could disable or enable SAML SSO after configuring it.
I found that after proper configuration of SAML SSO, even the owner of the group disabled the SAML like in this screenshot, user could still use SAMLSSO to join as member in this group
Steps To Reproduce:
-
Login gitlab.com and visit https://gitlab.com/groups/serverless-group/-/saml/sso
-
Click authorize
-
Use [email protected]:<redacted> to login
-
You are now member of my private group
-
But my private group https://gitlab.com/serverless-group/ has disabled SAML authentication like in the screenshot -- you can view as admin to double check my claim
Impact
You Can Still Join Private Group Using SAML Authentication after Admin Disabled SAML
Attachments
Warning: Attachments received through HackerOne, please exercise caution! *
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 SAML authentication check did not verify whether SAML was still enabled for the group before allowing a user to join.
What the attacker needed
SAML SSO previously configured for the group; SAML later disabled by group admin; Attacker has valid SAML credentials
How it was found
- Log in to gitlab.com and visit the SAML SSO settings page for the group.
- Click the authorize button.
- Log in using the test account credentials.
- The user is now a member of the private group, even though SAML was disabled.
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 is a way for companies to let employees log in to other services using their company account. The group owner turned off this login method, but the system still accepted it, so someone could join a private group without permission.
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.