Skip to content
Business logic Disclosed report Beginner

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.

lawsoul Follow

Originally disclosed on HackerOne

High 7.1 View original
  • 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)

Screenshot_2020-05-04_21-01-36.png
Screenshot_2020-05-04_21-01-36.png From the original on HackerOne
Screenshot_2020-05-04_21-02-09.png
Screenshot_2020-05-04_21-02-09.png

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

Screenshot_2020-05-04_21-04-17.png
Screenshot_2020-05-04_21-04-17.png From the original on HackerOne

I then disabled download on the entire file folder

Screenshot_2020-05-04_21-07-08.png
Screenshot_2020-05-04_21-07-08.png From the original on HackerOne
Screenshot_2020-05-04_21-06-59.png
Screenshot_2020-05-04_21-06-59.png

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

Screenshot_2020-05-04_21-05-03.png
Screenshot_2020-05-04_21-05-03.png From the original on HackerOne
Screenshot_2020-05-04_21-04-17.png
Screenshot_2020-05-04_21-04-17.png
Screenshot_2020-05-04_21-10-40.png
Screenshot_2020-05-04_21-10-40.png

Platform(s) Affected:

Nextcloud Server

Impact

Sensitive documents after sharing that do not allow downloading will be reloaded even if disabled, for anyone

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

  1. Share a folder with download enabled and note the download request.
  2. Disable download on the whole shared folder.
  3. 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.

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.