E-Mail Enumeration using Account Settings
The email change feature on GitLab's profile settings allowed an attacker to determine whether an email address was already registered by sending many requests and observing the server's response. After a certain number of requests, the server stopped blocking extra attempts, enabling enumeration of registered emails.
GitLab
Originally disclosed on GitLab
- Fixed in 17 months
- Disclosed after 17 months
HackerOne report #440638 by amateen57 on 2018-11-14:
Hi, It is possible to find all the Register emails which can be use for spam or other purposes
##POC:
- Go to https://gitlab.com/profile and in main setting edit e-mail and press save.
- capture request in burp suite
- send request in intruder and in payload add your emails payload (use first 310 email for junks)
- the server change email of account ( see pic 1) the email is attached but due to used email it cannot send any confirmation email to user.
- after 310, from 311 the server cannot block extra email and from 311 emails enumeration is started. see pic 3 and 2.
Note first 310 request does not give ant information after it you can make list of used emails
Thanks
Impact
hacker make list of used emails by brute forcing
Attachments
Warning: Attachments received through HackerOne, please exercise caution! [REDACTED]
Security Notes
This is similar behavior to the registration page, where if an email address is already used a message is displayed saying so.
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 did not rate-limit or consistently block repeated email change requests, and its response revealed whether an email was already in use.
Impact
An attacker could build a list of registered email addresses, which could be used for spam or other purposes.
What the attacker needed
A GitLab account; ability to send many requests
How it was found
- Go to the profile settings page and edit the email address.
- Capture the email change request using a proxy tool.
- Send the request to an automated tool and use a list of email addresses as payload.
- Observe that the server changes the email but does not send a confirmation for already-used addresses.
- After 310 requests, the server stops blocking extra attempts and enumeration begins.
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 try to change your email address on a website, the site checks if the new email is already used by someone else. If it tells you 'this email is already taken', an attacker can try many email addresses and learn which ones have accounts. This report shows that after many tries, the site stopped blocking the requests, making it easy to build a list of registered emails.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.