Skip to content
Business logic Disclosed report Beginner

Bypass Email Verification using Gitlab Gold Trial Similar to #617896

The GitLab Gold trial registration allowed a user to sign up with an arbitrary email address, including one from the GitLab domain, without verifying ownership of that email. An attacker could therefore obtain a verified account with any email domain, bypassing email domain restrictions.

GitLab

Originally disclosed on GitLab

Critical View original
  • Fixed in 6 months
  • Disclosed after 6 months

HackerOne report #762123 by vulnh0lic on 2019-12-20, assigned to @estrike:

Hi Team,

Summary

The Gitlab gold registration allows an 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 Gitlab gold allows to create a user with arbitrary email, and I believe this is what Gitlab engineer forgot to consider while implementing gold registration trial

  • how I was able to create an account

Steps to reproduce

  1. Goto gold registration or navigate from here https://gitlab.com/-/trial_registrations/new
Screenshot_2019-12-20_at_11.09.02_AM.png
Screenshot_2019-12-20_at_11.09.02_AM.png From the original on GitLab
  1. Enter the required details for registration (Use Email: [email protected]) for ex: I have used [email protected]
Screenshot_2019-12-20_at_11.09.11_AM.png
Screenshot_2019-12-20_at_11.09.11_AM.png From the original on GitLab
Screenshot_2019-12-20_at_11.09.38_AM.png
Screenshot_2019-12-20_at_11.09.38_AM.png
  1. Enter details for free Gitlab gold

  2. Select a group

Screenshot_2019-12-20_at_11.09.51_AM.png
Screenshot_2019-12-20_at_11.09.51_AM.png From the original on GitLab
  1. Click on Start your free trial
Screenshot_2019-12-20_at_11.09.55_AM.png
Screenshot_2019-12-20_at_11.09.55_AM.png From the original on GitLab
  1. you will be logged in to Gitlab with the verified email from an arbitrary domain
Screenshot_2019-12-20_at_11.10.09_AM.png
Screenshot_2019-12-20_at_11.10.09_AM.png From the original on GitLab

More Info

https://about.gitlab.com/blog/2018/09/19/free-trial-gitlab-gold/

Impact

An attacker will be able to signup with an arbitrary email domain or Gitlab domain and get verified use tag.

What is the current bug behavior?

Able to signup with any email domain

What is the expected correct behavior?

should need email verification before allowing to sign in a user

Relevant logs and/or screenshots

Screenshot_2019-12-20_at_11.10.30_AM.png
Screenshot_2019-12-20_at_11.10.30_AM.png From the original on GitLab

For the conformation I have logged out the account then I resign into Gitlab

{

Screen_Recording_2019-12-20_at_11.00.27_AM.mp4 From the original on GitLab

}

POC

Screen_Recording_2019-12-20_at_10.58.32_AM.mp4 From the original on GitLab

Impact

An attacker will be able to signup with an arbitrary email domain or Gitlab domain and get verified use tag.

Best Regards
[@]vulnh0lic

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

Availability & Testing

<!-- This section needs to be retained and filled in during the workflow planning breakdown phase of this feature proposal, if not earlier. What risks does this change pose to our availability? How might it affect the quality of the product? What additional test coverage or changes to tests will be needed? Will it require cross-browser testing? Please list the test areas (unit, integration and end-to-end) that needs to be added or updated to ensure that this feature will work as intended. Please use the list below as guidance. * Unit test changes * Integration test changes * End-to-end test change See the test engineering planning process and reach out to your counterpart Software Engineer in Test for assistance: https://about.gitlab.com/handbook/engineering/quality/test-engineering/#test-planning -->

What risks does this change pose to our availability?

This is a low risk for GitLab.com availability as the fix should touch any code related to GitLab features related to availibility.

How might it affect the quality of the product?

This should improve the quality of the product by asking the user to verify their account on signing up for trial.

What additional test coverage or changes to tests will be needed?

Ensure that a new user signup via the trail flow requires the user to verify their account on .com.

Does not apply to self managed as there is no trial signup. However, we should double check that we have test coverage to ensure that the "Send confirmation email on sign-up" setting does not regress on self managed.

No end-to-end tests needed. Appropriate coverage should be added at unit and feature level tests.

Will it require cross-browser testing?

I believe the change would not be FE heavy, but a manual run through different browsers won't hurt.

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

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 trial registration flow did not require email confirmation before marking the account as verified.

Impact

An attacker could sign up with an arbitrary email domain, including the GitLab domain, and obtain a verified account, bypassing email domain restrictions.

What the attacker needed

Access to the GitLab Gold trial sign-up page

How it was found

  1. Go to the GitLab Gold trial registration page.
  2. Enter registration details using an email address from any domain, such as one at gitlab.com.
  3. Enter details for the free GitLab Gold trial.
  4. Select a group.
  5. Click to start the free trial.
  6. The user is logged in with the arbitrary email marked as verified.

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 create an account, most services send a confirmation link to your email to prove you own it. Here, the trial sign-up flow skipped that check, so someone could type any email address, even one they do not control, and still get a fully verified account.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.