Repository navigation
Backlog
Labels
Milestone
Description
Goal
The SSH module spec describes the algorithm offer as it actually works, so readers do not assume outdated algorithms are only sent as a fallback.
Context
docs/specs/0005-ssh-module.md§9 ("Sicherheitszusagen") says: "Veraltete Algorithmen werden nur angeboten, wenn die aktuellen nicht reichen, und jede Aushandlung eines veralteten wird dem Nutzer gezeigt."- The code always offers them:
preferred()(crates/ssh-transport/src/algorithms.rs:36-56, wired in atcrates/ssh-transport/src/connect.rs:284) appends the outdated key exchange, cipher and MAC algorithms after the current ones for every connection and every hop;ssh-rsastays last among host key algorithms (algorithms.rs:41-44). - Because the client's order decides, a server that supports a current algorithm never negotiates an outdated one (§7b, lines 265-267). Both KEXINIT lists are covered by the exchange hash, so an active attacker cannot strip the current algorithms without breaking host key verification.
- Missing strict key exchange produces a warning, not a refusal (
crates/ssh-transport/src/handler.rs:160-173,algorithms.rs:89-90). - The behaviour itself was decided in ssh: connect to servers with outdated algorithms and show a warning instead of failing #1173 (warning, never refusal) and stays.
Requirements
- Decided by maintainer: behaviour unchanged; only the spec text is corrected.
- Rewrite the §9 bullet: outdated algorithms are always offered, strictly after all current ones, so they are only negotiated when the server offers nothing current; every negotiated outdated algorithm and a missing strict key exchange are shown to the user as a warning.
- §7b and §9 do not contradict each other afterwards.
- No code changes.
Acceptance Criteria
- Spec 0005 §9 states the always-offered, ranked-last rule and the warning, including missing strict key exchange
- §7b and §9 are consistent
- No file outside
docs/specs/0005-ssh-module.mdchanges
Technical Notes
- Documentation only; no changelog fragment (pure documentation change).
Files: docs/specs/0005-ssh-module.md
Spec impact: update 0005
Open questions
None.
Related Work
- ssh: connect to servers with outdated algorithms and show a warning instead of failing #1173
- SSH transport: refused or forced shell and exec requests fail fast instead of hanging #1665, SSH transport: reject channels the server opens on its own (X11, agent, forwarded ports) #1721 (also edit Spec 0005)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
P2 - Normal
Activity