Add a trust policy for lazy-fetched note scripts
- Lingua principale
- Rust
- Stelle
- 78
- Fork
- 129
- Merge medio
- 4g 14h
- PR unite (30g)
- 52
Descrizione
Manage granularly which scripts are allowed to run in a transaction in order to avoid security issues, especially when a script is lazily fetched from the RPC and executed without the user explicitly trusting it.
The underlying concern (a malicious note creator pointing at a malicious script) always existed, but before lazy script fetching landed (#1456 / #1812), the client errored with "script not found" if the bytes weren't local, forcing the user to import the script manually. That friction is now gone: the client silently fetches whatever script the note references and runs it.
@igamigo explains the threat with an example here: https://github.com/0xMiden/miden-client/issues/1456#issuecomment-3807806726
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina l'implementazione del recupero lazy degli script dai PR #1456 e #1812. Comprendi come gli script vengono recuperati da RPC ed eseguiti. La politica di trust deve essere integrata in questo flusso, probabilmente nel codice di gestione delle transazioni della libreria client. 'Fatto' significa che un utente può configurare quali script sono attendibili prima dell'esecuzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- security
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100