mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8915] [Issue]: /game-assets/local-music-file serves any audio file on the device, not only the chosen music folders #8553
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8553
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-fileserves 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 behindrequirePrivilegedAccess. 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.
@SpicyMarinara commented on GitHub (Nov 7, 2026):
Fixed in #8936 (merged into staging).