Skip to content
Business logic Disclosed report Intermediate CVE-2021-32741

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.

rtod Follow

Originally disclosed on HackerOne

Bounty$100 Low View original
  • 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.

The original report as published on HackerOne, by rtod. 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 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.

More by rtod

View all

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

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.