mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-02 10:44:52 +01:00
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>