Skip to content
Account takeover Disclosed report Intermediate CVE-2019-5486

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.

ngalog Follow

Originally disclosed on HackerOne

  • 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

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

Screen_Shot_2019-06-18_at_7.50.41_PM.png
Screen_Shot_2019-06-18_at_7.50.41_PM.png From the original on HackerOne

Impact

described above

The original report as published on HackerOne, by ngalog. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Visit the Salesforce test login page.
  2. Enter the credentials for the target email address.
  3. Click Salesforce to log in to Salesforce.
  4. Open a new tab and go to GitLab's sign-in page.
  5. Click login with Salesforce.
  6. 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.

More by ngalog

View all

21 more disclosed reports, best first.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.