Skip to content
DoS Disclosed report Beginner CVE-2020-8295

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.

makerlab Follow

Originally disclosed on HackerOne

High 7.5 View original
  • 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

The original report as published on HackerOne, by makerlab. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. On the login screen, click the 'Forgot password?' button and enter any text.
  2. Open developer tools and go to the network tab.
  3. Hold the enter key after pressing the reset password button to send many requests.
  4. 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.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.