Skip to content
IDOR Disclosed report Beginner CVE-2023-48239

Delete external storage of any user

A standard user could delete another user's external storage by changing the storage identifier in a configuration request, because the endpoint did not check who owned that storage. An attacker could remove storage belonging to any account, including an administrator's, causing data loss and disruption.

cx75fa Follow

Originally disclosed on HackerOne

High 8.5 View original
  • Triaged in 5 hours
  • Fixed in 9 days
  • Paid in 14 days
  • Disclosed after 35 days

A security vulnerability was uncovered that allowed standard users to remove external storage resources from any user account in the application. This flaw was particularly concerning because it enabled unauthorized users to delete these resources based on a system-generated ID, which automatically incremented, without requiring any special privileges. This issue didn't grant access to the data but allowed for the indiscriminate removal of external storage associated with user accounts, potentially leading to data loss and disruption of service for affected users.

Reproduction Steps: 1.Begin by logging in with a standard user account and establish an external storage connection. 2. Afterward, update the storage configuration. Observe that the following request is generated:

PUT /apps/files_external/userstorages/<storage_id> HTTP/1.1
Host: 127.0.0.1:9090
[REDACTED]

{"mountPoint":"simpleuser","backend":"owncloud","authMechanism":"password::logincredentials","backendOptions":{"host":"cq6xxrdnw1941wu9jk4gcyfuglmfa4.oastify.com","root":"","secure":true},"testOnly":true,"id":<storage_id>,"mountOptions":{"enable_sharing":true,"encoding_compatibility":false,"encrypt":true,"filesystem_check_changes":1,"previews":true,"readonly":false}}

3.Next, log in to the application with an administrative user account or any other role and establish a storage connection. 4.Observe that each new storage created increments the ID automatically. For instance, it could become 28. 5. Using the standard user role, issue the request once more to modify the ID linked to the administrative storage. Observe that this action leads to the removal of the storage from the administrator's account.

VIDEO POC:

delete_storage.mp4 From the original on HackerOne

Impact

This finding has a huge impact on the application, including data loss, service disruption, unauthorized actions, data privacy concerns, security risks, and potential reputation damage.

The original report as published on HackerOne, by cx75fa. 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 storage update endpoint identified the target storage only by a sequential ID and never verified that the requesting user owned it.

Impact

A standard user could delete external storage belonging to any other account, including administrators, leading to data loss and service disruption; the text does not mention any defence that limited it.

What the attacker needed

A standard user account; a second account with storage configured

How it was found

  1. Log in as a standard user and create an external storage connection.
  2. Update the storage configuration and capture the resulting request.
  3. Log in as an administrator (or another role) and create a storage connection.
  4. Note that each new storage gets an automatically incremented ID.
  5. As the standard user, resend the request with the administrator's storage ID and observe the storage being removed.

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.

External storage is a setting that connects an account to files kept somewhere else. The app let any logged-in user change or remove such a connection just by guessing a simple number that identifies it, without checking that the connection belonged to them. So a normal user could wipe out another person's storage setup.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by cx75fa

View all

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

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.