How I Found a Race Condition in an Email Verification Feature
The email verification resend endpoint enforced a 60-second cooldown only in the browser, not on the server. An attacker could fire many parallel requests and trigger multiple verification emails at once.
.الله� انفعنا ب� ا علَّ� تنا، وعلِّ� نا � ا ينفعنا، وزِدنا عل� ًا وفقهًا وفه� ًا يا رب العال� ين
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server did not enforce the resend cooldown, relying only on the disabled button in the browser.
Impact
The issue does not expose sensitive data, but it could increase email delivery costs, add load on email systems, and damage the sender's reputation, potentially causing legitimate emails to be marked as spam.
What the attacker needed
A user account; ability to intercept requests
The fix
The server should enforce the resend cooldown independently of the browser, for example by rate-limiting or tracking the last send time per account.
How it was found
- Review the account onboarding process and notice the resend verification email button.
- Observe that the button is disabled for 60 seconds after clicking.
- Intercept the resend request with Burp Suite and send it to Turbo Intruder.
- Configure 12 parallel requests and launch them at the same time.
- Receive multiple verification emails, showing the server processed all requests.
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 write-up has not been written yet. The Original tab links to the source.
A website showed a button that was greyed out for a minute after you clicked it, so you could not ask for another verification email straight away. But that block lived only in the page you see; the server behind it did not check anything. By sending many requests at the same moment, the tester got many emails sent, which wastes resources and can hurt the sender's reputation.
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.