Descrizione
Zebra zebrad 4.5.0 and zebra-script 7.0.0 count P2SH redeem script signature operations in legacy mode rather than zcashd's accurate P2SH mode, overcounting CHECKMULTISIG preceded by OP_1 through OP_16 as 20 sigops and causing a consensus divergence. Remote attackers can broadcast P2SH spends using low-threshold multisig redeem scripts so that a block zcashd accepts exceeds Zebra's inflated MAX_BLOCK_SIGOPS count, causing Zebra nodes to reject it and stall off the chain.
Tipo di vulnerabilità
CWE-628
Function Call with Incorrectly Specified Arguments
The product calls a function, procedure, or routine with arguments that are not correctly specified.
Impatto sui sistemi
| Ambito | Impatto |
| Altro, Controllo degli accessi |
Degradare la qualità, Ottenere privilegi o assumere un’altra identità, Stato imprevisto, Dipende dal contesto |
Come si previene
Build e compilazione
Once found, these issues are easy to fix. Use code inspection tools and relevant compiler features to identify potential violations. Pay special attention to code that is not likely to be exercised heavily during QA.
Architettura e progettazione
Make sure your API's are stable before you use them in production code.
Tutte le 5 CVE di tipo CWE-628, con andamento e prevenzione