Nextcloud · Report #3518758
IDOR on ██████ via direct photo URL leads to unauthorized access to deleted and other users' photos
N/Astatus
37upvotes
7 Apr 2026disclosed
How it was found
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