Affected versions: confirmed on commit fa71c361a1824fd1aab32b1d75c441acb8613461 (after release 1.8.2), production mode, SQLite.
GET /MediaViewer/GalleryItem/{id} does not check the gallery's secret key. It takes a sequential integer item id and returns the item's upload path and the uploader's display name, so an anonymous caller can learn the path of any approved item in a key-protected gallery and download the file.
MediaViewerController is [AllowAnonymous] and the GalleryItem action has no [RequiresSecretKey] . That attribute reads key and id or identifier from the query string, which this endpoint never receives, and no middleware or filter checks a gallery key. GalleryController.Index , UploadImage and DownloadGallery do enforce the key. Uploads are served as static files under /uploads/ / with no check, so the identifier and file name are the only protection, and GalleryItem returns both. In my test the gallery page without the key was refused with a redirect to /Error?Reason=402 , and DownloadGallery with a wrong key returned "secret key was invalid". Requesting GalleryItem for items of those galleries with no key, cookie or login returned the upload path, and fetching it returned the guest's file, byte-identical to what was uploaded. A loop over ids 1 to 30 returned every approved item of both key-protected galleries. Items that were not yet approved returned a path that gave 404 until the item was approved. Only the uploader's display name was shown to an anonymous caller, not the email. Public issue #125 reported the gallery-page version of a secret-key bypass and was fixed, so the key is meant to be the access control. I did not test video items, MySQL or a reverse-proxy setup.
(available upon request)
Anyone who can reach the site can download the approved photos of any key-protected gallery without the key, by walking item ids. Wedding galleries often hold guests' private photos. The uploader's display name is exposed too. No write or admin access is gained. Checking the secret key (or the gallery's access state) for the item's gallery in GalleryItem , in the same way as GalleryController.Index , would close it.
Cirx08 closed this as completed on Nov 21, 2026
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
