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
- 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
- Goto gold registration or navigate from here https://gitlab.com/-/trial_registrations/new

- Enter the required details for registration (Use Email: [email protected]) for ex: I have used [email protected]


-
Enter details for free Gitlab gold
-
Select a group

- Click on Start your free trial

- you will be logged in to Gitlab with the verified email from an arbitrary domain

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

For the conformation I have logged out the account then I resign into Gitlab
{
}
POC
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!
- Screenshot_2019-12-20_at_11.10.30_AM.png
- Screen_Recording_2019-12-20_at_11.00.27_AM.mp4
- Screenshot_2019-12-20_at_11.10.09_AM.png
- Screenshot_2019-12-20_at_11.09.55_AM.png
- Screenshot_2019-12-20_at_11.09.51_AM.png
- Screenshot_2019-12-20_at_11.09.38_AM.png
- Screenshot_2019-12-20_at_11.09.11_AM.png
- Screenshot_2019-12-20_at_11.09.02_AM.png
- Screen_Recording_2019-12-20_at_10.58.32_AM.mp4
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.
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
- Go to the GitLab Gold trial registration page.
- Enter registration details using an email address from any domain, such as one at gitlab.com.
- Enter details for the free GitLab Gold trial.
- Select a group.
- Click to start the free trial.
- 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.