hyper63 / hyper63/hyper

Verify integrity of the downloaded content

Aperta
#534 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
79
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hey,

My name is Maciej Mensfeld, and I do supply chain security research at Mend.io.

I've noticed, that this library downloads external binaries and uses them. While it's a common pattern, integrity verification is lacking here.

This is described as [CWE-494](https://cwe.mitre.org/data/definitions/494.html).

You could verify the integrity of the downloaded file before using it by comparing the file hash to a hardcoded, expected file hash.

This is essentially what package managers do to verify the integrity of downloaded packages.

Doing this would prevent attack scenarios in which the binaries downloaded [here](https://my.diffend.io/npm/hyper-nano/1.2.0#d2h-073898-3042) are manipulated.

If the verification happens elsewhere sorry in advance and I would love it if you could point me to the location, so I can tune up my scanning engine.

Have a great day :)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando i download dei binari esterni a cui fa riferimento l’issue e individua dove viene utilizzato ciascun file scaricato. Definisci gli hash attesi per quei binari e verificali prima dell’uso; il lavoro è completato quando i contenuti manipolati vengono rifiutati, mentre il flusso di download esistente continua a funzionare.

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

Valutazione

Stack tecnologico
typescript
Ambito
security
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.