Files
tailscale/ssh
James Tucker 338bcaffd2 ssh/tailssh: record the raw client command in session recordings
The CastHeader recorded a shell-parsed reconstruction of the session
command, but the command is passed to the user's shell verbatim, and the
shell lexer silently drops unbalanced quotes. A spoofed command could
therefore make the recording differ from what the shell actually ran.
Record ss.RawCommand() instead.

Updates tailscale/corp#50380

Signed-off-by: James Tucker <[email protected]>
(cherry picked from commit 6ce8b89912)
2026-10-27 20:12:07 +00:00
..