Bypass Email Verification using Salesforce -- Reproducible in gitlab.com
The Salesforce login integration allowed an attacker to bypass email verification and sign up with any email domain, including domains that should be restricted. An attacker could create an account with an arbitrary email address, such as one belonging to the target organisation, without verifying ownership.
- Triaged in 3 days
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 6 months
Summary
The salesforce login integration allows attacker to bypass email verification -- user is able to signup with any email domain they want, effectively bypass all email domain whitelist/blacklist restriction or any other 3rd party using gitlab instance's email address.
It is possible because salesforce allow admin to create user with arbitrary email, and I believe this is what gitlab engineer forgot to consider while implementing salesforce integration.
Please follow along to see how I was able to create an account ███████ in gitlab.com
Steps to reproduce
- Visit https://bugcrowd-ngalog-3.oktapreview.com/
- Enter creds
██████████:██████████ - Click salesforce to login salesforce
- Open new tab and visit https://gitlab.com/users/sign_in
- Click login with salesforce
- you will be logged in as
████by visitinghttps://gitlab.com/profile/emails
Impact
Bypass email domain restriction and able to signup with arbitrary email domain
What is the current bug behavior?
Able to signup with any email domain
What is the expected correct behavior?
should need email verification
Relevant logs and/or screenshots

Impact
described 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 application trusted the email address provided by the Salesforce identity provider without requiring its own email verification step.
Impact
An attacker could bypass email domain restrictions and sign up with an arbitrary email domain.
What the attacker needed
Access to a Salesforce instance where you can set arbitrary…
The fix
The application should require email verification even when using Salesforce login, rather than trusting the email address from the identity provider.
How it was found
- Visit the Salesforce test login page.
- Enter the credentials for the target email address.
- Click Salesforce to log in to Salesforce.
- Open a new tab and go to GitLab's sign-in page.
- Click login with Salesforce.
- You are logged in as the target email address, as shown on the profile emails page.
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.
When you sign up for a website, it usually sends a verification email to prove you own that address. Here, the login system trusted an external service (Salesforce) to confirm the email, but that service let an admin set any email address without checking it. So an attacker could pretend to own an email address they do not control.
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.