HexBrain

Nextcloud · Report #1987062

Password reset endpoint is not brute force protected

Validstatus
highseverity
$500bounty
46upvotes
21 Jul 2023disclosed

Summary

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-mjf5-p765-qmr6

How it was found

Oversight of https://github.com/nextcloud/security-advisories/security/advisories/GHSA-v243-x6jc-42mp (https://hackerone.com/reports/1841665, but I can't judge the content there as it is not yet public).

In any case. The whole lostpassword flow is now annotated with bruteforce protection. Except the endpoint that actually matters. https://github.com/nextcloud/server/blob/master/core/Controller/LostController.php#L226-L229

An attacker can still happily try to brute force the token. Without getting throttled.

Impact

The lostpassword flow is without actual bruteforce protection.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original