No Rate Limit On Reset Password
The password reset endpoint lacked rate limiting, allowing an attacker to send many reset emails to a victim in a short time. This could be used for email bombing, causing trouble to users.
- Fixed in 5 days
- Disclosed after 3 months
Summary:
A rate limiting algorithm is used to check if the user session (or IP address) has to be limited based on the information in the session cache. In case a client made too many requests within a given time frame, HTTP servers can respond with status code 429: Too Many Requests. (wikipedia) I just realize that on the reset password page, the request has no rate limit which then can be used to loop through one request.
Steps To Reproduce:
- Go to https://staging.every.org/resetPassword , enter the email then click reset password
- Intercept this request in burp suite
POST /dbconnections/change_password HTTP/1.1 Host: login.every.org User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0 Accept: / Accept-Language: id,en-US;q=0.7,en;q=0.§3§ Accept-Encoding: gzip, deflate Content-Type: application/json Auth0-Client: eyJuYW1lIjoiYXV0aDAuanMiLCJ2ZXJzaW9uIjoiOS4xMS4xIn0= Content-Length: 130 Origin: https://every.org Connection: close Referer: https://every.org/resetPassword
{"client_id":"1bT892TGga38o0GFw5EusmGnV9b3kjCq","email":"[email protected]","connection":"Username-Password-Authentication"}
- Send it to the intruder and repeat it by 50 times
- You will get 200 OK status
- I already attached the PoC video too if you don't understand my explanation
Supporting Material/References:
[list any additional material (e.g. screenshots, logs, etc.)] https://hackerone.com/reports/751604 https://hackerone.com/reports/441161 https://hackerone.com/reports/280534
Suggested fix
Use CAPTCHA verification if many request sent.
Impact
Trouble to the users on the website because huge email bombing can be done by the attackers within seconds.
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
Root cause
Likely the password reset endpoint did not implement any rate limiting or CAPTCHA, allowing unlimited requests.
Impact
Attackers could perform email bombing, causing trouble to users.
What the attacker needed
Access to the reset password page; ability to intercept and repeat requests
The fix
The report suggests using CAPTCHA verification if many requests are sent; it does not state that a fix was applied.
How it was found
- Go to the reset password page and enter an email address.
- Intercept the password reset request.
- Send the request to an intruder tool and repeat it 50 times.
- Observe that all requests return 200 OK.
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 password reset page lets you ask the site to send a reset link to an email address. Normally, the site should limit how many times you can do this to prevent abuse. Here, there was no limit, so someone could flood a victim's inbox with reset emails.
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.