Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

%ELO adaptor reuses a zero IV, breaking AES-GCM security

Aperta
#14 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

Read rust/loro-websocket-client/src/lib.rs:1045-1138 and protocol-e2ee.md first. Trace both encode_elo_snapshot_container and the live subscribe_local_update hook, then ensure each encrypted record gets a fresh 12-byte IV while retaining it in the record header for decryption. Done means the zero IV is no longer reused under the same key.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

rust/loro-websocket-client/src/lib.rs:1045-1138

  • The %ELO client sets the IV to [0u8; 12] in both encode_elo_snapshot_container and the live
    subscribe_local_update hook. Every encrypted record therefore repeats the same AES-GCM nonce under the
    same key.
  • protocol-e2ee.md mandates 96-bit unique IVs and warns against reuse; violating that lets an attacker
    recover XORs of plaintexts and eventually the key.
  • Fix: Plug in a CSPRNG (e.g. rand::rngs::OsRng) or a durable per-key counter to emit fresh IVs, and keep
    embedding the 12-byte IV in the record header so receivers can decrypt.
Lingua principale
TypeScript
Stelle
40
Fork
12
Merge medio
4g 1h
PR unite (30g)
1

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di loro-dev/protocol

Tutte le issue di loro-dev/protocol

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.