Add to your nextcloud endpoint is not properly protected
The endpoint that mounts a federated public link only applies brute-force protection after it has found a password-protected share or a file-drop share, so an attacker can use it to guess share tokens without being throttled. The impact is described as low, but the issue should still be fixed.
- Triaged in 17 hours
- Fixed in 3 days
- Paid in 3 days
- Disclosed after 3 months
This is related to https://hackerone.com/reports/1173684
The endpoint you hit does have bruteforce protection https://github.com/nextcloud/server/blob/master/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php#L126
But this is only triggered by finding a share that is password protected https://github.com/nextcloud/server/blob/master/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php#L157
Or a file drop public share https://github.com/nextcloud/server/blob/master/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php#L166
In other words this endpoint can also be used to try to brute force share tokens.
Impact
Low just like on the other report. But should be fixed non the less.
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 is applied only after the endpoint has resolved the token to a password-protected or file-drop share, so guesses that do not match such a share are not counted.
Impact
An attacker could try to brute force share tokens through this endpoint without the usual throttling; the author rates the impact as low.
What the attacker needed
Access to the mount endpoint
The fix
The author says the issue should be fixed, without specifying how.
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 share token is the random-looking part of a public link that lets someone open a shared file. This report says one part of Nextcloud checks for wrong guesses only after it has already found a protected share, so someone could keep guessing tokens without being slowed down. The author rates the risk as low.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.