Skip to content
IDOR Disclosed report Beginner

IDOR on ██████ via direct photo URL leads to unauthorized access to deleted and other users' photos

The application did not check whether the logged-in user was allowed to view a photo when it was requested through its direct URL. Any authenticated user could open another user's photo, including one that had already been deleted, by pasting the URL into a browser.

shiva2550 Follow

Originally disclosed on HackerOne

  • Disclosed after 3 months

Summary:

An Insecure Direct Object Reference (IDOR) vulnerability exists in the application that allows unauthorized access to photos belonging to other users. The application does not properly validate whether the logged-in user is authorized to access a photo when accessing it via direct URL. This allows any authenticated user to view photos from other users' albums, including photos that have been deleted.

Steps To Reproduce:

Account A:

  1. Create an album
  2. Upload a photo
  3. Note the direct image URL: https://████████/remote.php/dav/photos/███████/albums/srk./10700342-1.jpeg
  4. Delete that photo
  5. Save the URL for future reference

Account B:

  1. Copy the old image URL from Account A: https://████/remote.php/dav/photos/████████/albums/srk./10700342-1.jpeg
  2. Paste it in the browser
  3. The image loads successfully, even though Account B is a different user and the photo was deleted

Supporting Material/References:

  • Vulnerable URL pattern: https://████████/remote.php/dav/photos/[user_email]/albums/[album_name]/[photo_id]
  • The photo was accessible despite being deleted and belonging to another account

Attachments

IDOR.mp4 From the original on HackerOne

The original report as published on HackerOne, by shiva2550. 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 photo endpoint identified the file purely from the user and album path in the URL and never verified that the requesting session owned that album or photo.

Impact

Any authenticated user could view other users' photos, including deleted ones, if they knew or obtained the direct URL.

What the attacker needed

An authenticated account; knowledge of the target photo URL

The fix

The endpoint should verify the requesting user owns the album or photo before serving it, and refuse deleted items.

How it was found

  1. As Account A, create an album and upload a photo.
  2. Note the direct image URL for that photo.
  3. Delete the photo and keep the URL.
  4. As Account B, paste the saved URL into the browser.
  5. The image loads for Account B even though it belongs to another user and was deleted.

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 log in to a website, it should check that each item you ask for really belongs to you. Here it only looked at the address of the photo, not at who was asking, so anyone with an account could open someone else's picture just by having its link. This kind of flaw is called an IDOR, short for Insecure Direct Object Reference: the site trusts an identifier in the URL instead of checking permission.

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