Denial of Service by requesting to reset a password
The brute-force protection makes each password reset request take 30 seconds, exhausting PHP workers. Many requests could make the server unresponsive for a long time.
- Triaged in 44 hours
- Fixed in 10 months
- Paid in 10 months
- Disclosed after 11 months
Description:
I believe that this is posible due to the brute force protection that makes all request last for 30 seconds which in this case is using all the PHP workers avalible in the pool, so the only way to defend yourself is setting up a limit or having a lot of resources.
How to reproduce:
- In the Nextcloud login screen click the "Forgot password?" button and then type something in the textbox (can be anything)
- Then open the developers tools and go to the network tab
- Hold the "enter" key after pressing the reset password button and in the network tab you will see a lot of request being made
- With just 1000 request I managed to make the demo server "https://demo2.nextcloud.com/" not respond for 1 hour
Impact
The attacker could make an entire nextcloud installation or even the entire server where it is hosted not respond for a very long time Also, this attack can be made by almost anyone
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 brute-force protection delays each password reset request for 30 seconds, tying up PHP workers.
Impact
The attacker could make an entire Nextcloud installation or even the entire server unresponsive for a very long time, and almost anyone can do it.
What the attacker needed
Access to the login page; ability to send many requests
The fix
Defence suggested is setting a limit or having a lot of resources.
How it was found
- On the login screen, click the 'Forgot password?' button and enter any text.
- Open developer tools and go to the network tab.
- Hold the enter key after pressing the reset password button to send many requests.
- Observe that 1000 requests made the demo server unresponsive for an hour.
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 website uses a pool of worker processes to handle requests. If each request is made to wait for 30 seconds, a flood of requests can use up all workers, so normal users cannot get through. This is a denial-of-service attack.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.