Bypass Email Verification -- Able to Access Internal Gitlab Services that use Login with Gitlab and Perform Check on email domain
The SCIM provisioning feature allowed a group owner to create a user with any email address, including one at a trusted domain, and that email was automatically marked as verified. An attacker could then log in as that user and access internal GitLab services that rely on GitLab.com for authentication and check for a verified email at a specific domain.
- Triaged in 13 days
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 4 months
Summary
Hi, I found the new SCIM provisioning function allows any group owner in gitlab to create any user with verified email address. i.e. I can create user with email address [email protected], and gitlab.com will think [email protected] is verified already.
This will bring problem to the client app that uses Gitlab as Identity Provider, and check if the user's email domain matches @gitlab.com, then using this email verification bypass, we can access the service now.
I used to have a list of internal services/sites of gitlab uses gitlab.com to sign in and check if the signed in user has @gitlab.com as their email domain. But I can't find them any more, I am sure gitlab security team know what are those services. And exposure of those services would bring a high security impact to gitlab infrastructure.
Steps to reproduce
- In gitlab.com, upgrade your Group plan to gold
- Visit
https://gitlab.com/groups/GROUP_PATH/-/samland setup the SAML SSO as documented - Same page, create SCIM token
- Use the same SCIM token to issue the request below
POST /api/scim/v2/groups/YOUR_GROUP_NAME/Users HTTP/1.1
Host: gitlab.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:66.0) Gecko/20100101 Firefox/66.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/scim+json
Authorization: Bearer YOUR_SCIM_TOKEN
Content-Length: 291
{"externalId":"REPLACE_ME","active":null,"userName":"anyusernamewilldo","emails":[{"primary":true,"type":"work","value":"[email protected]"}],"name":{"formatted":"Test User","familyName":"User","givenName":"Test3"},"schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],"meta":{"resourceType":"User"}}
- And open a new private window and use https://gitlab.com/groups/GROUP_NAME/-/saml/sso?token=xqz82m-b to login using the externalId specified in the POST JSON body
- Now you are logged in as the newly created user and bypassed the email verification process
Impact
I used to have a list of internal services/sites of gitlab uses gitlab.com to sign in and check if the signed in user has @gitlab.com as their email domain. But I can't find them any more, I am sure gitlab security team know what are those services. And exposure of those services would bring a high security impact to gitlab infrastructure.
Examples
Check the user username4 on gitlab.com, you will see his email address is [email protected] and verified.
What is the current bug behavior?
Email is verified without going through the verification process
What is the expected correct behavior?
Email should not be verified using this method
Relevant logs and/or screenshots

This bug happens on GitLab.com
Results of GitLab environment info
This bug happens on GitLab.com)
Impact
see above
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 SCIM user creation endpoint did not verify email ownership and automatically marked provided emails as verified.
Impact
An attacker could access internal GitLab services that use GitLab.com as an identity provider and check for a verified email at a specific domain, potentially exposing those services.
What the attacker needed
A GitLab.com group with a gold plan; ability to set up SAML SSO and create a SCIM token
How it was found
- Upgrade the group plan to gold.
- Set up SAML SSO for the group.
- Create a SCIM token on the same page.
- Use the SCIM token to send a POST request to the SCIM users endpoint, specifying an email at the target domain.
- Open a private window and log in via the SAML SSO link using the externalId from the request.
- Observe that the new user is logged in with a verified email at the target domain.
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.
SCIM is a standard way for companies to automatically create and manage user accounts across services. Here, GitLab's SCIM feature let a group owner create a new user with any email address they wanted, and GitLab treated that email as already confirmed. That meant someone could pretend to have an email at a trusted company domain and get into internal services that only check the email domain.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.