Bypass hide download Nextcloud Share
A shared folder in Nextcloud had its download option disabled, but the previously generated download link kept working and still served the files. Anyone holding that link could download documents the owner had intended to make view-only.
- Disclosed after 5 months
Summary
Hello everyone, accidentally browsing through nextcloud, I have found a small vulnerability on nextcloud server. This vulnerability allow download the file when the download function has been hidden Here is the error details. If anything is wrong please respond to me. Thanks you.
Description
I sharing folder for another ( download not hide)


Of course, the download function is still enabled, I will have the download request as below

I then disabled download on the entire file folder


But the download link created on the server does not change or change the permissions, I can completely download the file to continue



Platform(s) Affected:
Nextcloud Server
Impact
Sensitive documents after sharing that do not allow downloading will be reloaded even if disabled, for anyone
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 permission is only checked when a link is first created, and existing links are not re-validated against the current share settings.
Impact
Sensitive documents in a share with downloading disabled could still be retrieved by anyone who kept the earlier link.
What the attacker needed
A shared folder link; download disabled after sharing
How it was found
- Share a folder with download enabled and note the download request.
- Disable download on the whole shared folder.
- Reuse the earlier download link, which still returns the file.
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 you share a file, the server gives it a web address (a link) that points to the file. The owner can later switch off downloading, expecting the file to become view-only. Here the old link was never invalidated, so it kept handing out the file as if nothing had changed.
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.