[GH-ISSUE #8787] keep item drags out of their folder and trust only the real host global #8497

Closed
opened 2026-11-07 16:43:21 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Found by the 2026-11-03 release-prep bug sweep of Marinara Engine. Each finding was confirmed by two independent verifiers.

Two problems found in the release-prep audit. (1) #8456 narrowed the folder-drag guard. Since then, pressing a Connection card (Group by folder) or an agent card inside an expanded folder also starts a drag of the folder around it. You see two drag previews, and on drop the folder order changes and Connections switches to Custom sort, which the user never asked for. (2) ensureMarinaraHost accepted any truthy globalThis.MARINARA_HOST. Chat and card HTML keep element ids, and the browser exposes an element's id as a named property of window. So a crafted <div id=\"__MARINARA_HOST__\"> on screen when the first package client loads gets cached as the host, and package clients fail until reload. No linked issue exists yet; one should be opened before the PR is submitted.

🤖 Generated with Claude Code

Originally created by @SpicyMarinara on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8787 Originally assigned to: @SpicyMarinara on GitHub. Found by the 2026-11-03 release-prep bug sweep of Marinara Engine. Each finding was confirmed by two independent verifiers. Two problems found in the release-prep audit. (1) #8456 narrowed the folder-drag guard. Since then, pressing a Connection card (Group by folder) or an agent card inside an expanded folder also starts a drag of the folder around it. You see two drag previews, and on drop the folder order changes and Connections switches to Custom sort, which the user never asked for. (2) ensureMarinaraHost accepted any truthy globalThis.__MARINARA_HOST__. Chat and card HTML keep element ids, and the browser exposes an element's id as a named property of window. So a crafted `<div id=\"__MARINARA_HOST__\">` on screen when the first package client loads gets cached as the host, and package clients fail until reload. No linked issue exists yet; one should be opened before the PR is submitted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-07 16:43:21 +07:00
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#8497
No description provided.