mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3824] [Issue]: Restrict native folder actions to the host device #2061
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#2061
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 @Xelvanis on GitHub (Jul 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3824
Summary
The native folder-opening endpoints for fonts and game assets can launch host GUI processes for authenticated non-loopback clients because the routes do not require loopback-only privileged access.
Expected behavior
Only a browser running on the Marinara host device should be able to trigger Explorer, Finder, or
xdg-open. Remote clients should receive the existing privileged-access denial without learning an absolute host path.Actual behavior
POST /api/fonts/open-folderandPOST /api/game-assets/open-folderlaunch the native file manager and return an absolute host path without passing through the loopback-only privileged gate. Global authentication and CSRF reduce exposure; this is not command injection or general remote-code execution.Steps to reproduce
/api/fonts/open-folderor/api/game-assets/open-folder.Environment
Logs, screenshots, or video
No additional logs. The affected route handlers directly invoke the platform file-manager command.
Additional context
The adjacent folder-picking route already uses loopback-only privileged access. The client should also guard these actions so remote users receive a clear host-device message without a redundant generic error.
Template check