Skip to content
Access control Disclosed report Beginner CVE-2024-22404

Can download files by zipping the folder

A view-only shared folder could still be compressed into a zip archive by a recipient, and that archive could then be downloaded and extracted locally. This let an attacker obtain files they were not granted download permission for.

nickvergessen Follow

Originally disclosed on HackerOne

Medium 4.1 View original
  • Triaged in under an hour
  • Fixed in 2 months
  • Disclosed after 3 months

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-vhj3-mch4-67fq

The report

  1. Create folder and share it as view-only
grafik.png
grafik.png From the original on HackerOne
  1. Access this folder with Testuser
grafik.png
grafik.png From the original on HackerOne
  1. Go one level up and compress the whole folder
grafik.png
grafik.png From the original on HackerOne
  1. The zip file can be downloaded and extracted locally
grafik.png
grafik.png From the original on HackerOne
grafik.png
grafik.png
  1. The folder itself can not be downloaded directly
grafik.png
grafik.png From the original on HackerOne

Impact

Can download files without download permissions

The original report as published on HackerOne, by nickvergessen. 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 archive/compress action did not enforce the same download-permission checks as a direct file download.

What the attacker needed

A view-only shared folder; a second user account with access

How it was found

  1. Create a folder and share it as view-only.
  2. Access the shared folder as a second test user.
  3. Go one level up and compress the whole folder.
  4. Download the resulting zip file and extract it locally.

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 folder with you as view-only, you should be able to look at the files but not save copies. Here, the sharing rules were not applied to the 'compress this folder' feature, so a user could turn the folder into a zip file and download that instead. A zip file is just a single archive containing many files, which can be unpacked on the user's own machine.

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 nickvergessen

View all

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