Skip to content
Business logic Disclosed report Beginner

User is allowed to set an email as Notification email even without verifying the new email

GitLab allowed users to set an unconfirmed email address as their notification email, bypassing the verification step. An attacker could use this to send bulk emails to many users without confirming the email address.

GitLab

Originally disclosed on GitLab

  • Fixed in 17 months
  • Disclosed after 17 months

HackerOne report #471907 by rgupt on 2018-12-25:

Summary: When a user signs up with a new email address, before allowing the user to login with that email address on Gitlab, the user is asked to Confirm the email address. However, when a user tries to add a new email address from the User Settings page, user is allowed to select that email for all the Notifications even when the user has not confirmed their new email address.

Steps To Reproduce:

  1. Go to Gitlab.com & signup with a new email account.
  2. User will be asked to confirm their email address before allowing the user to login.
  3. Now confirm the email address and login to your account.
  4. Navigate to User Settings -> Emails Page.

https://gitlab.com/profile/emails 5. Add a new email address. Do not confirm that email address yet.

Email_1.PNG
Email_1.PNG From the original on GitLab
  1. Now navigate to User Settings -> Notifications page.

https://gitlab.com/profile/notifications 7. Select the newly added unconfirmed email as the Notification email. 8. User is allowed to select the unconfirmed email as the Notification email without any restriction.

Email_2.PNG
Email_2.PNG From the original on GitLab

Impact

Hacker can use this vulnerability to promote their own project or other projects and send 1000s of emails to 1000s of users, without requiring the user to confirm the newly added email account.

Proposal

Users should only be able to set confirmed email addresses as their notification email address in /profile/notifications.

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

Impact

An attacker could use this to send thousands of emails to many users without confirming the email address, potentially for spam or promotion.

What the attacker needed

A GitLab account; ability to add an email address

The fix

The application should only allow confirmed email addresses to be set as the notification email.

How it was found

  1. Sign up for GitLab with a new email and confirm it.
  2. Go to the Emails page in user settings.
  3. Add a new email address but do not confirm it.
  4. Go to the Notifications page in user settings.
  5. Select the newly added unconfirmed email as the notification 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 add a new email to your account, GitLab normally asks you to confirm it before you can use it. This report found that you could still choose that unconfirmed email to receive notifications. That means someone could use a fake email to send lots of notifications without proving they own it.

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.