Skip to content
Info disclosure Disclosed report Intermediate CVE-2022-31118

Brute force protections don't work

Many functions annotated with @BruteForceProtection do not call throttle() on the response, so negative login attempts are not logged and brute force protection does not throttle requests. An attacker could make unlimited authentication attempts without being slowed or blocked.

nickvergessen Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 3 days
  • Disclosed after 3 months

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-2vwh-5v93-3vcq

The report

Summary:

Most of the brute force protections don't actually throttle() the response and so they are not logging negative attempts

Search for functions with the @BruteForceProtection annotation and check that they call throttle() on the response at least conditionally.

Impact

Brute force protection is not throttling any requests: https://github.com/nextcloud/server/blob/b70c6a128fe5d0053b7971881696eafce4cb7c26/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php#L78-L82

The original report as published on HackerOne, by nickvergessen. 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 @BruteForceProtection annotation was applied to functions without ensuring they call throttle() on the response, so the middleware did not enforce throttling.

Impact

Brute force protection is not throttling any requests, allowing unlimited attempts.

What the attacker needed

None

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.

Brute force protection is a security feature that slows down or blocks repeated failed login attempts. In this case, many parts of the application were supposed to use it but didn't actually apply the throttling, so attackers could keep trying passwords without being stopped.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by nickvergessen

View all

10 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.