Description
Swing Music is a self-hosted music player for local audio files. Prior to version 2.1.4, Swing Music's `list_folders()` function in the `/folder/dir-browser` endpoint is vulnerable to directory traversal attacks. Any authenticated user (including non-admin) can browse arbitrary directories on the server filesystem. Version 2.1.4 fixes the issue.
Problem types
CWE-25: Path Traversal: '/../filedir'
CWE-284: Improper Access Control
Product status
References
github.com/...gmusic/security/advisories/GHSA-pj88-9xww-gxmh
github.com/...ommit/9a915ca62af1502b9550722df82f5d432cb73de3