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.
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
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.