[GH-ISSUE #8915] [Issue]: /game-assets/local-music-file serves any audio file on the device, not only the chosen music folders #8553

Closed
opened 2026-11-07 16:43:44 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8915

Originally assigned to: @SpicyMarinara on GitHub.

Summary

GET /game-assets/local-music-file serves any file with an audio extension anywhere on the server device. It isn't limited to the Music DJ folders the user chose.

Details

The route (packages/server/src/routes/game-assets.routes.ts, around lines 547–579) is behind requirePrivilegedAccess. It checks that the path has an audio extension and is a file, but not that the file is inside a configured Music DJ folder: the default, a character's or a chat's folder (#8901).

Expected behavior

The route serves a file only when it is inside one of the configured music folders.

Found while mapping #8901. That PR (#8914) doesn't change this route.

Originally created by @SpicyMarinara on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8915 Originally assigned to: @SpicyMarinara on GitHub. ## Summary `GET /game-assets/local-music-file` serves any file with an audio extension anywhere on the server device. It isn't limited to the Music DJ folders the user chose. ## Details The route (`packages/server/src/routes/game-assets.routes.ts`, around lines 547–579) is behind `requirePrivilegedAccess`. It checks that the path has an audio extension and is a file, but not that the file is inside a configured Music DJ folder: the default, a character's or a chat's folder (#8901). ## Expected behavior The route serves a file only when it is inside one of the configured music folders. Found while mapping #8901. That PR (#8914) doesn't change this route.
bsakaguchi 2026-11-07 21:49:32 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Nov 7, 2026):

Fixed in #8936 (merged into staging).

<!-- gh-comment-id:6707818783 --> @SpicyMarinara commented on GitHub (Nov 7, 2026): Fixed in #8936 (merged into staging).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8553
No description provided.