Email Verification Bypass via Race Condition
A race condition in the email change process allowed an attacker to send two simultaneous requests, one with the victim's email and one with their own, causing both to receive the same OTP. By then submitting that OTP with the victim's email, the attacker could verify the victim's email address and potentially take over the account.
Originally disclosed on HackerOne
- Disclosed after 5 months
An email verification bypass vulnerability was discovered in the my.malwarebytes.com.
##Steps to Reproduce
- Create an account using an attacker email: [email protected].
- Verify the account.
- Go to account settings and update the email address to [email protected].
- Capture the request using a tool like Burp Suite.
- Send the request to Repeater twice and forward the request.
- In Repeater, modify Request 1 by changing the email to the victim's email (e.g., [email protected]).
- In Request 2, use the attacker's email ([email protected]).
- Group both requests, select Send Group in Parallel, and send the requests.
- Observe the email inbox—both the victim's and attacker's email addresses will receive the same OTP.
- Go to confirmation page displayed, Enter the OTP (both OTP's are same),
- Capture the request, and replace the email with the victim’s email.
- Send the modified request and observe the response.
- The victim’s email address is now successfully verified.
##PoC
Impact
- This vulnerability allows an attacker to take control of an account associated with a victim's email by changing the registered email address.
- It presents a risk of data theft, unauthorized transactions, and further exploitation of linked accounts.
- Users' personal and sensitive data may be compromised.
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 a race condition where the server generates and associates a single OTP with multiple email change requests processed concurrently, without proper locking or per-request isolation.
Impact
An attacker could verify a victim's email address and potentially take control of the associated account, leading to data theft and unauthorised transactions.
What the attacker needed
A free account; ability to intercept and modify requests; victim's email address known
How it was found
- Create and verify an account with the attacker's email.
- In account settings, change the email to a second attacker-controlled address and capture the request.
- Send the captured request to Repeater twice.
- Modify one request to use the victim's email and the other to keep the attacker's email.
- Send both requests in parallel using the group send feature.
- Observe that both inboxes receive the same OTP, then submit that OTP with the victim's email to verify it.
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 change your email, the site sends a one-time code (OTP) to confirm you own the new address. Here, by sending two change requests at the exact same moment, the system got confused and sent the same code to two different email addresses. The attacker could then use that code to prove they control the victim's email, which is a step towards taking over the account.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.