Repository navigation
Keep passwords out of local echo and session transcripts - #125
nickrobnett wants to merge 1 commit into
Conversation
Honor Telnet ECHO negotiation so standalone password responses stay out of local scrollback, transcripts, and command history. Resume normal local echo when the server sends WONT ECHO. Reuse the existing credential detector to redact local echoes of commands such as connect <name> <password>.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
One remaining history gap at With command separator This is a pre-existing history limitation, not a regression introduced here. Since this PR adds stacked-credential regression coverage, please also cover history recall/search for both accepted and refused stacks, and apply credential detection to the relevant expanded commands before recording the original line. Source review only; I have not independently run the .NET tests. All example credentials above are synthetic. |
Problem
When a world prompts for a password on its own line, SharpMUTerm can echo the submitted password into scrollback and write it to the session transcript. Manually typed
connect <name> <password>commands can leak through the same local echo path.Changes
WILL ECHOandWONT ECHO. While the server is responsible for echo, skip local echo and command history. Resume the usual behavior when the server relinquishes echo.connect <name> <password>. Show(credential command hidden)in local output and transcripts while sending the original command to the server.Verification
lookechoed normally after login.WILL ECHOat the password prompt and disconnected before submitting a password.The change applies after submission. The input field can still show characters while typing.