Retroactive Grant Application - Zebra High-Severity Mempool DoS Disclosure (GHSA-7jp4-mq53-4cvq)

One more update for anyone reviewing this application. The Zebra team has published another report of mine, GHSA-423j-2vj4-j5x4 (Moderate, 5.3), fixed in zebrad 7.1.0, with me credited as the reporter.

Zebra’s mempool has a cheap standardness check that runs before script verification, and it limits each P2SH input to 15 signature operations. It never checked the transaction’s total, though. The per-transaction limit of 4,000 was only applied after every script had already been verified, so a peer could send a transaction carrying about 225,000 signature operations and Zebra would verify all of them before rejecting it as non-standard. zcashd applies the total limit before running the scripts. The rejection carries no misbehavior score and a one-byte change gets past the reject cache, so the same peer can keep sending it. On releases before 7.0.0 this stacked with the sighash cost from GHSA-j4cw, and one transaction took about 1,800 CPU-seconds in my measurement. On 7.0.0 it is still roughly ten to twenty CPU-seconds per transaction. It only affected availability: no funds, consensus or crashes.

Update: the lightwalletd maintainers have since published another of my reports, GHSA-pj5c-jx29-gmxr (Moderate), fixed in lightwalletd 0.6.2, with me credited as the reporter. lightwalletd refreshed its shared mempool cache under the request context of whichever client triggered the refresh, and it marked each new transaction as seen before fetching it. If that client cancelled mid-refresh, the fetches failed silently but the transactions stayed marked as seen, so no GetMempoolStream client received them until the next block. One client, on purpose or just by disconnecting at the wrong moment, could hide incoming pending transactions from every wallet streaming the mempool from that server. No funds were at risk; it affected mempool visibility and 0-conf UX.

Both were published after the Q4 submission deadline, so neither is part of this application and the $75,000 request stays the same. I’m posting them so voters can see the whole record: three Zebra advisories that credit me, all from the same review of the mempool and transaction verifier (two fixed in 7.0.0, one in 7.1.0), plus this one in lightwalletd.

Advisories: