Zebra 4.5.0 Consensus Split via P2SH Sigop Overcount
ZcashFoundation zebra
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ZcashFoundation zebra |
|
|
| ZcashFoundation zebra |
|
|
Original description
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.