In the Nextcloud Server Photos app, filter-based smart albums build their file listing from the photosSourceFolders search configuration of the user viewing the album, rather than the album owner's configuration. When the owner shares the smart album with another user, the viewer's folder configuration becomes the effective search scope for the owner's files. The viewer can then discover file names, file IDs, and other metadata from folders that the owner did not intend to include in the shared album.
The supported high-level flow is:
- The owner creates a filter-based smart album.
- The owner shares that album with another user.
- When the recipient views the album, the recipient's
photosSourceFolders determines which of the owner's files are searched.
- The results can include metadata for files outside the scope the owner intended to share.
The supplied weakness classification is CWE-284, Improper Access Control. The record describes network reachability and low required privileges, but it does not identify a specific endpoint, code location, or request format.