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.
- 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:
- Create an album
- Upload a photo
- Note the direct image URL:
https://████████/remote.php/dav/photos/███████/albums/srk./10700342-1.jpeg - Delete that photo
- Save the URL for future reference
Account B:
- Copy the old image URL from Account A:
https://████/remote.php/dav/photos/████████/albums/srk./10700342-1.jpeg - Paste it in the browser
- 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
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
- As Account A, create an album and upload a photo.
- Note the direct image URL for that photo.
- Delete the photo and keep the URL.
- As Account B, paste the saved URL into the browser.
- 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.