fix(security): enforce sk-* UP and UV flags once russh exposes the signature
I maintainer di solito rispondono entro 1 giorno
@inureyes ci sta già lavorando.
Dal 5/11/2026.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- authentication, security
Direzione di ricerca
Read docs/UPSTREAM_PR_RUSSH.md and inspect russh’s server/encrypted.rs and src/server/handler.rs to understand the signature handoff; the upstream API change and release are prerequisites. Then trace src/server/auth/publickey.rs and the security key signature code, starting with tests that encode signatures. Done means the real auth flow enforces UP and UV as specified, tests cover both key types and flag failures, and the two security docs are updated.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Depends on #338.
Problem
After #338, bssh-server accepts an [email protected] or [email protected] user key only when its authorized_keys line has no-touch-required and lacks verify-required, because bssh cannot read the signature's flags byte. OpenSSH accepts the other lines too, enforcing user presence (UP, flag 0x01) unless no-touch-required is set and user verification (UV, flag 0x04) when verify-required is set.
Current Behavior
- russh 0.64.1
server/encrypted.rs:1060-1074runsVerifier::verify, then callshandler.auth_publickey(user, key)with the key only, sosrc/server/handler.rs:349never sees the signature. - ssh-key's sk verifiers (
signature.rs:456-490) authenticateSHA256(app) || flags || counter || SHA256(msg)but do not test the flags. The flags byte is the 5th-to-last byte of the decoded signature (flags || u32 countertrailer).
Proposed Solution
- Propose an upstream russh change that passes the verified
Signature(or its sk flags) to the server handler, for example aHandlermethod called after verification with(user, key, signature)whose default delegates toauth_publickey. Record the proposal indocs/UPSTREAM_PR_RUSSH.md. - Once a russh release contains it, bump
russhinCargo.toml. - In
src/server/auth/publickey.rs, for sk keys requireflags & 0x01unless the matching line hasno-touch-required, andflags & 0x04when it hasverify-required. Replace #338's fail-closed rejection with this check.
Acceptance Criteria
- Upstream proposal filed and recorded in
docs/UPSTREAM_PR_RUSSH.md; russh bumped to a release containing it. - UP required by default and relaxed only by
no-touch-required. - UV required when
verify-requiredis set. - Enforced in the real
auth_publickeyflow;docs/security.mdanddocs/openssh-compatibility-status.mdupdated. - Tests sign with
encode_signature(src/ssh/security_key/signature.rs) or fixed vectors, cover both key types, and each fails when its flag check is removed.
Verification
cargo test server::auth
cargo clippy --all-targets -- -D warnings
- Lingua principale
- Rust
- Stelle
- 71
- Fork
- 7
- Merge medio
- 4h 51m
- PR unite (30g)
- 14
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lablup/bssh
-
feat(ssh): add webauthn-sk host-key supportForse già presa @inureyes l’ha presa 24 giorni fa. Apertapriority:low status:blocked type:enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
lablup/bssh#345 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
fix(security): verify the server host key presented on re-keyForse già presa @inureyes l’ha presa 24 giorni fa. Apertapriority:low status:blocked type:security
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
lablup/bssh#336 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
feat(agent): bind destination-constrained agent keys with [email protected]Forse già presa @inureyes l’ha presa 24 giorni fa. Apertapriority:medium status:blocked type:enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
lablup/bssh#327 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
perf(sftp): adopt the russh-sftp borrowed write API in upload dispatchForse già presa @inureyes l’ha presa 24 giorni fa. Apertapriority:medium status:backlog type:performance
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
lablup/bssh#323 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
feat: Implement real-time streaming output with interactive multi-node UIForse già presa @inureyes l’ha presa 396 giorni fa. Apertapriority:medium status:backlog type:enhancement
lablup/bssh#68 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
area:ui effort:medium enhancement P7 source:agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Read a requested CodeRabbit PR review's findings with `coderabbit pullrequest --show-threads`Apertadocumentation priority: low tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
nledford/Ladderback#1823 ·
I maintainer di solito rispondono entro 1 giorno
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Forse già presa @ealwanlee l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
psmux/psmux-plugins#47 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
I maintainer di solito rispondono entro 1 giorno