Skip to content

Protect abbreviated login commands in local echo and history - #129

Merged
HarryCordewener merged 1 commit into
SharpMUSH:mainfrom
nickrobnett:fix/abbreviated-login-credentials
Nov 11, 2026
Merged

HarryCordewener merged 1 commit into
SharpMUSH:mainfrom
nickrobnett:fix/abbreviated-login-credentials

Conversation

@nickrobnett

@nickrobnett nickrobnett commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Abbreviated login commands such as con name password and c name password bypass the credential detector, allowing passwords into local echo, transcripts and command history.

Recognize every nonempty prefix of connect, matching PennMUSH's login parser. Username-only forms such as con guest remain ordinary input. The existing shared detector applies this protection to direct input and accepted or refused command stacks.

Follow-up to #125 and #128... Found this when I was looking at the command stacking thing, just a gap from my original fix. Includes regression coverage for detection, local echo, transcripts, history recall and search, plus a changelog entry.

Validation: all 1,772 core tests and 3,043 terminal-client tests passed on Windows. I also tested abbreviated login commands in the earlier Windows build.

Treat nonempty prefixes of connect as login commands when a name and
password are supplied. Reuse the merged credential filtering for local
echo, transcripts and command history, including command stacks.
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: baf51ae7-ae9f-47f8-aa14-62c52460d0b9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener

Copy link
Copy Markdown
Member

Many thanks @nickrobnett!
v0.3.4 will have this change.

@HarryCordewener
HarryCordewener merged commit ba9bd0a into SharpMUSH:main Nov 11, 2026
4 checks passed
@nickrobnett

Copy link
Copy Markdown
Contributor Author

Happy to contribute. I really love the very simple idea of a prose window for playing a MUSH/MUX and have been enjoying using it and finding more and more cool features. Thanks for building it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants