[GH-ISSUE #7003] [Issue]: Professor Mari can change Marinara's built files (dist) #3921

Closed
opened 2026-10-21 06:08:46 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Professor Mari can change Marinara's built app files (the dist folders the app runs from). A broken line written there stops the server from starting until a reinstall, which is what #6984 looks like.

Expected behavior

Mari can read build output but never create, edit, move or delete it. To change the app, she edits the source and rebuilds.

Actual behavior

On current staging:

  • Her file tools (on by default in the Auto permissions mode) treat packages/<pkg>/dist like any other workspace path, so write, edit, copy, move and remove all reach it.
  • Her shell sandbox lets any command write there. A sandboxed command can write if(, raw) { } into packages/server/dist/index.js, create a missing client dist, and move a package folder away and back.

Steps to reproduce

  1. On staging, open Professor Mari in a workspace that contains Marinara Engine.
  2. Ask her to append a line to packages/server/dist/index.js, or run a shell command that writes there.
  3. The file changes. If the line is invalid JavaScript, the next server start fails with a SyntaxError.

Environment

  • Marinara Engine version: 2.4.6 and current staging
  • Install type: any
  • OS + version: any
  • Browser or app shell: any

Logs, screenshots, or video

See #6984 for the reported SyntaxError in packages/server/dist/services/generation/conversation-command-runtime.js.

Additional context

Found while tracing #6984. The only in-app writer that can reach packages/server/dist is Professor Mari's workspace tools. #6994 makes the launchers repair a damaged build; this issue is about not damaging it in the first place.

Tracing her shell also showed that a very long one-line command from Mari can freeze Marinara for a minute or more: the check that looks for writes to sensitive files slows down sharply on long commands, and it runs on the server's main thread.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7003 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Professor Mari can change Marinara's built app files (the `dist` folders the app runs from). A broken line written there stops the server from starting until a reinstall, which is what #6984 looks like. ## Expected behavior Mari can read build output but never create, edit, move or delete it. To change the app, she edits the source and rebuilds. ## Actual behavior On current staging: - Her file tools (on by default in the Auto permissions mode) treat `packages/<pkg>/dist` like any other workspace path, so write, edit, copy, move and remove all reach it. - Her shell sandbox lets any command write there. A sandboxed command can write `if(, raw) { }` into `packages/server/dist/index.js`, create a missing client `dist`, and move a package folder away and back. ## Steps to reproduce 1. On staging, open Professor Mari in a workspace that contains Marinara Engine. 2. Ask her to append a line to `packages/server/dist/index.js`, or run a shell command that writes there. 3. The file changes. If the line is invalid JavaScript, the next server start fails with a `SyntaxError`. ## Environment - Marinara Engine version: 2.4.6 and current staging - Install type: any - OS + version: any - Browser or app shell: any ## Logs, screenshots, or video See #6984 for the reported `SyntaxError` in `packages/server/dist/services/generation/conversation-command-runtime.js`. ## Additional context Found while tracing #6984. The only in-app writer that can reach `packages/server/dist` is Professor Mari's workspace tools. #6994 makes the launchers repair a damaged build; this issue is about not damaging it in the first place. Tracing her shell also showed that a very long one-line command from Mari can freeze Marinara for a minute or more: the check that looks for writes to sensitive files slows down sharply on long commands, and it runs on the server's main thread. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:08:46 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 3, 2026):

Fixed in staging by #7005, and it ships in the next release. Professor Mari can still read the built dist folders but can no longer create, edit, move or delete anything in them, and a very long shell command from her no longer freezes Marinara. #7004 tracks the translated guide.

<!-- gh-comment-id:5967971070 --> @SpicyMarinara commented on GitHub (Oct 3, 2026): Fixed in staging by #7005, and it ships in the next release. Professor Mari can still read the built `dist` folders but can no longer create, edit, move or delete anything in them, and a very long shell command from her no longer freezes Marinara. #7004 tracks the translated guide.
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#3921
No description provided.