Rate Limit too lenient for endpoint sending emails
The password reset endpoint lacked a strict rate limit, so an attacker could send many reset emails to a victim. This could flood the victim's inbox with password reset links.
Originally disclosed on HackerOne
- Fixed in 2 hours
- Disclosed after 13 months
Rate-limiting is a process that is used to define the rate at which consumers can access APIs. Also, it determines the speed at which a consumer can access APIs. Rate limit is calculated in real time.
How to reproduce?
- Sign-up for the account for WakaTime. Domain - www.wakatime.com
- After signing up login to the caviar account with login credentials
- Then,press forgot password and enter your email or temporary email address i.e https://temp-mail.org 4. Open burpsuite and intercept the request from browser ,if you get the intercepted request.
- Send the intercepted request to the intruder, In target section check the Host and Port section . In Positions section, clear all $signs and add $ sign to the anyone parameter In Payload section, add payload type to Numbers and set Numbers range.
- After all settings done press start attack, and the attack started till it reaches the Number range that we will set in the Payload sections.
- And you will get the mail regarding to the password reset links to your mail box.
HTTP Request-
POST /api/v1/users/reset_password HTTP/1.1 Host: wakatime.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0 Accept: / Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://wakatime.com/ Content-Type: application/json X-CSRFToken: ad5d275dc3197936cc18040ae1882e89b04b6cf5b6d891d0dc337b38792f61b4 X-Requested-With: XMLHttpRequest Content-Length: 34 Connection: close
Impact
The user will get continuous email ragarding to password reset links till the attack stop.
Attachments

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
What the attacker needed
A free account; victim's email address; Burp Suite
How it was found
- Sign up and log in to WakaTime.
- Use the forgot password feature and enter an email address.
- Intercept the password reset request with Burp Suite.
- Send the request to Intruder and set a payload position on a parameter.
- Configure a number payload range and start the attack.
- Observe that many password reset emails are sent.
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.
A rate limit caps how often a feature can be used. Here the password reset feature allowed many requests, so someone could make the system send lots of reset emails to a person.
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.