Skip to content
Account takeover Disclosed report Beginner

Verifying any emails including *@gitlab.com (This vulnerability is on gitlab.com main site)

The report claims that a user can register with an unverified email address, then change their email to a different one and set the original unverified address as their public email, which causes it to become verified. This would allow an attacker to verify any email address, including those on the gitlab.com domain.

GitLab

Originally disclosed on GitLab

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

HackerOne report #762568 by zapprising on 2019-12-20, assigned to @estrike:

NOTE! Thanks for submitting a report! Please replace all the (parenthesized) sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to triage and respond quickly, so be sure to take your time filling out the report!

Summary

(This vulnerability allow malicious user to verify any email including *[@]gitlab.com emails )

Steps to reproduce

  1. Go to -> https://gitlab.com/users/sign_in

  2. Click on register and create profile with email any email id [email protected]

  3. Gitlab will register without verifying email. Now go to -> https://gitlab.com/profile

  4. Change email there with your own email -> [email protected] and on public email set [email protected]

  5. Now go to your gmail id [email protected] confirm your link and go to -> https://gitlab.com/profile/emails (You will see both email [email protected] and [email protected] verified)

  6. Now go to -> https://gitlab.com/profile and set -> [email protected] as your primary email id

That's it

(1. any preconditions in the environment)
(2. complete HTTP or API request, or)
(3. user action, )
(4. etc.)

Impact

(This vulnerability allow users to verify any emails including gitlab.com emails)

Examples

(If the bug is project related, please create an example project and export it using the project export feature)

(If you are using an older version of GitLab, this will also help determine whether the bug has been fixed in a more recent version)

(If the bug can be reproduced on GitLab.com without violating the Rules of Engagement as outlined in the program policy, please provide the full path to the project.)

What is the current bug behavior?

(What actually happens, include relevant screenshots, API results, or complete HTTP requests)

What is the expected correct behavior?

(What you should see instead, include relevant screenshots, API results, or complete HTTP requests)

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Impact

The attacker can verify any email on gitlab.com including *[@]gitlab.com domain email also.

I am sending proof of concept video

Kindly have a look

Regards

Zahid

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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 application marks an email as verified when it is set as the public email, without requiring proof of ownership for that specific address.

Impact

An attacker could verify any email address on gitlab.com, including those on the gitlab.com domain.

What the attacker needed

A free account; ability to receive email at a personal address

How it was found

  1. Go to the GitLab sign-in page and start registering a new account.
  2. Register with an email address on the gitlab.com domain (e.g., [redacted]) without verifying it.
  3. Go to the profile page and change the email to a personal address (e.g., [redacted]).
  4. Set the public email to the original unverified gitlab.com address.
  5. Confirm the link sent to the personal email and visit the emails settings page.
  6. Observe that both addresses are shown as verified, then set the gitlab.com address as the primary email.

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 link to your email to prove you own it. This report says that on GitLab, you could skip that step for one email by adding a second email and then making the first one public, and the site would mark the first one as verified without ever sending a link to it. That means someone could claim to own an email address that isn't theirs.

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 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.