Skip to content
Access control Disclosed report Beginner CVE-2022-41970

Disabled download shares still allow download through preview images

A shared folder with the download permission disabled still allowed the recipient to fetch preview images of the files. This let the recipient obtain the full image or the first page of a document without the watermark that normal viewing would apply.

juliushaertl Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 35 days
  • Disclosed after 2 months

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-9mh6-cph8-772c

The report

Summary:

Steps To Reproduce:

  1. Share a folder and disable the "Allow download" permission
  2. Now as the recipient of the file you can still download the preview of the file

This is an issue for images but also for shared documents where viewing them in Collabora would present them watermarked but the preview would leak the first page without an watermark.

Impact

Images could be downloaded and previews of documents (first page) can be downloaded without being watermarked.

The original report as published on HackerOne, by juliushaertl. 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 preview endpoint did not check the share's download permission before serving the generated preview.

Impact

A recipient could download full images and the first page of documents without the watermark that normal viewing would apply.

What the attacker needed

A shared folder with download disabled; recipient access to the share

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 folder, you can turn off the ability for the other person to download the files. However, the preview picture that the app shows for each file was still available to that person. That meant they could save the preview and get the image, or the first page of a document, even though downloading was supposed to be blocked.

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.

More by juliushaertl

View all

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

Broken access control

The lesson behind this report.

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.