"Secure View" aka "Hide Download" can be bypassed easily
The 'Secure View' / 'Hide Download' option on public shares only hides the download button in the interface, but the file can still be downloaded by appending a download path segment to the share URL. An attacker with the share link could therefore obtain a copy of a file or folder that the sharer intended to be view-only.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 9 days
- Paid in 10 days
- Disclosed after 2 months
The mid-2019 announced feature "Secure view" (https://nextcloud.com/blog/secure-view-prevent-your-shared-files-from-getting-downloaded/) allows for hiding the Download button on public shares. Even though the announcement admits that there are always workarounds out there to get hands on the file anyway, the workaround for this one is way too simple: Just add /download to the URL (like you used to for every public share) and your browser starts downloading unhesitently.
For the sharee, the checkbox "Hide Download" is therefore very deceptive, since they very likely weigh themselves in false safety.
Impact
Download a copy of a file or folder that's not supposed to be downloaded whatsoever
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 download restriction is enforced only in the user interface by hiding the button, while the server still serves the file through the normal download route.
Impact
A person with the share link could download a copy of a file or folder that was not supposed to be downloadable at all.
What the attacker needed
Access to a public share link; share has 'Hide Download' enabled
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.
When someone shares a file, they can tick an option that is meant to stop other people from downloading it. This report shows that the option only hides the download button on the page; the file itself is still reachable. Anyone who knows the share link can simply change the address to trigger a download, so the protection is cosmetic rather than real.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.