Descrizione
Time-of-check Time-of-use (TOCTOU) Race Condition in ZenHive mpp allows an unauthenticated remote client to redeem one confirmed on-chain payment for multiple paid-resource accesses. The type="hash" credential path in MPP.Methods.Tempo.verify/2 guards against replay with a non-atomic check-then-mark sequence: check_hash_unused/2 reads the dedup store, an eth_getTransactionReceipt round trip verifies the payment on chain, and only then does mark_hash_used/2 write the mark. Concurrent requests carrying the same settled payment hash all pass the read before any of them writes, so each is issued a receipt. The store's atomic check_and_mark/2 primitive is available and used by the type="transaction" path, but the hash path calls plain get and put even when the configured store implements it. Exploitation requires a dedup store to be configured; the default nil store is stateless and documented as offering no replay protection at all. This issue affects mpp: from 0.2.0 before 0.6.1.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 3.7.
Versioni da aggiornare
- Zenhive Machine Payments Protocol: vulnerabili le versioni dalla
0.2.0precedenti alla0.6.1→ aggiornare alla0.6.1o successiva.
Patch e advisory
- Patch: github.com/ZenHive/mpp/commit/46c5b0e1311da7d92…
- Advisory del vendor: github.com/ZenHive/mpp/security/advisories/GHSA…
- Advisory di terze parti: cna.erlef.org/cves/CVE-2026-73829.html
- Advisory di terze parti: osv.dev/vulnerability/EEF-CVE-2026-73829
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Limitare l'accesso di rete al servizio e applicare limiti di connessione per ridurre la finestra di sfruttamento.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Zenhive | Machine Payments Protocol | ≥ 0.2.0 < 0.6.1 | 0.6.1 |
Riferimenti
- Patchhttps://github.com/ZenHive/mpp/commit/46c5b0e1311da7d92190dc7d9ea89027a1d365e9
- Advisory del vendorhttps://github.com/ZenHive/mpp/security/advisories/GHSA-w8j7-7qc3-5f24
- Advisory di terze partihttps://cna.erlef.org/cves/CVE-2026-73829.html
- Advisory di terze partihttps://osv.dev/vulnerability/EEF-CVE-2026-73829
- Riferimentohttps://github.com/ZenHive/mpp/commit/f8904666061fbab695874856d8fcd02c471dfe1b