Files
PaperClipAI/packages
Priya RamanandPaperclip c6dea6b3f9 fix(adapter-utils): validate SSH env-lab fixture state before signals
Any local process running as the same user can write a fixture state
file. A forged pid or an empty sshdConfigPath weakened the identity
check that gates SIGTERM/SIGKILL: an empty string is a substring of
every command line, so it matched any running process.

readSshEnvLabFixtureState now rejects a state file unless the pid is
a positive safe integer, every path field is absolute and rooted at
the fixture directory the state was read from, and sshdConfigPath is
non-empty and equals rootDir/sshd_config exactly. Rejection happens
before any identity check or signal.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-08-26 19:21:24 +00:00
..