Description
LibrePhotos before 1.0.0 contains a broken object level authorization vulnerability in the SetPhotosShared endpoint that allows authenticated users to grant themselves access to other users' private photos by bypassing ownership validation. Attackers can manipulate shared_to relations without proper owner checks to read arbitrary private photos belonging to other users.
Problem types
Authorization Bypass Through User-Controlled Key
Product status
Any version before 1.0.0
Credits
George Chen
References
github.com/LibrePhotos/librephotos/issues/1860
github.com/LibrePhotos/librephotos/releases/tag/1.0.0 (Release Notes)
github.com/LibrePhotos/librephotos/issues/1860 (Researcher Disclosure)
github.com/LibrePhotos/librephotos/pull/1866 (Pull Request)
github.com/...ommit/325bd1f5fda71c6d56737aa09cfce0cb8106675a (Patch Commit)
www.vulncheck.com/...t-reference-in-setphotosshared-endpoint