Skip to content

Only allow scripting terminal changes on the terminal's own disks (1.20) - #105

Merged
rubensworks merged 1 commit into
master-1.20-ltsfrom
claude/tender-heisenberg-1u9unz
Nov 14, 2026
Merged

rubensworks merged 1 commit into
master-1.20-ltsfrom
claude/tender-heisenberg-1u9unz

Conversation

@rubensworks

@rubensworks rubensworks commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Fixes GHSA-mpph-9cpc-3hfq for master-1.20-lts.

The scripting terminal packets (modify, delete and create script) carry a disk id from the client. The server applied them to that disk after only checking that the player has some scripting terminal open, so a player could change or delete scripts on disks of other networks.

ContainerTerminalScripting.setServerScript and createNewServerScript now ignore disks that are not in the terminal's available disks. Script paths were already validated by ScriptingData.isScriptPathSafe.

master-1.21-lts also has a rename packet that needs the same check. It is fixed in #106 against master-1.21-lts, because that code does not exist on this branch. When upmerging this PR into master-1.21-lts after #106 is merged, keep the 1.21 version of ContainerTerminalScripting.

Testing

  • ./gradlew build passes on master-1.20-lts, including the 60 existing unit tests. This branch has no game tests. The 1.21 PR adds a game test for the same check.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UeSuG5REz2JxHTZADcGhh2

The script modify, delete and create packets carry a disk id from the
client, and the server applied them to that disk without checking that
the disk is part of the terminal's network. The server now ignores disks
that are not in the terminal's available disks.

Fixes GHSA-mpph-9cpc-3hfq

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeSuG5REz2JxHTZADcGhh2
@rubensworks
rubensworks merged commit 7380725 into master-1.20-lts Nov 14, 2026
19 checks passed
@rubensworks
rubensworks deleted the claude/tender-heisenberg-1u9unz branch November 14, 2026 14:20
@cyclopsmc-release-bot cyclopsmc-release-bot Bot added the released Included in a published release label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Included in a published release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants