Hello Zcash community,
I have submitted a Q4 retroactive grant application on GitHub (#77), requesting $300,000 USD for two Critical Zebra consensus vulnerabilities that I found and privately reported before they shipped. In a release, either one would have split the Zcash network.
Read the full technical write-up here:
What I found
PR #10461 replaced Zebra’s own transaction parser with the shared zcash_primitives library. Two rules that every Zcash node must enforce were lost in the move:
-
C-01: anyone could split the network with one transaction. Zebra’s
mainbranch accepted about 2.1 billion invalidnExpiryHeightvalues above the ZIP 203 maximum. No mining and no authentication were needed. -
C-02: any miner could split the network with one block. The coinbase
scriptSiglength rule (2 to 100 bytes) was no longer enforced.
These are two separate findings: they break different rules, different people could trigger them, and each would have split the network on its own. ZF fixed them in separate commits.
Upgraded Zebra nodes would have accepted these transactions and blocks, while Zakura and older Zebra nodes would have rejected them. Once the split passed Zebra’s 1,000-block rollback limit (about 21 hours), ending it would have taken a resync of every affected node or a hard fork.
How I found them: Zakura v1.3.1 never adopted the refactor, so I used it as a reference: any transaction or block that Zakura rejects and Zebra main accepts is a consensus divergence. I used LLM-assisted code review to map the refactor and generate leads, confirmed both findings by hand with deterministic tests, and reported them privately on 2 September with the split scenario and a suggested fix.
What the Zcash Foundation did
ZF made both findings a release blocker, merged the fix six days after my report (PR #11387), and shipped Zebra 6.4.0 with both rules enforced. No release ever carried them.
“Both findings identified and responsibly disclosed by @ouicate. We appreciate your contribution in identifying and mitigating what would have been a nasty consensus bug in Zebra before we shipped it.”
— Zcash Foundation, Issue #11383
ZF also added a permanent Zebra Book chapter, Refactoring Consensus-Critical Code, “distilled from this incident”, and credited me in its engineering update.
Why $150,000 per finding
Coinholders approved these Critical security applications in Q3 (finalized tally):
-
Five Critical Zebra consensus divergence vulnerabilities (#58): $425,000, 96.33% Accept
-
Temporary detectable unlimited mint-and-sell exploit (#57): $400,000, 98.66% Accept
-
Orchard counterfeiting vulnerability (#51): $750,000, 99.99% Accept
I use the same method as #58: the $150,000 Core Node Critical base for each sole-reporter consensus finding, with no bonus.
-
ZF rates bugs like these Critical. ZF publishes severity ratings in advisories for affected releases, so these two never received one. When consensus divergences like these did ship, ZF rated them Critical: GHSA-cwfq-rfcr-8hmp, GHSA-2prc-cj5x-4443 and GHSA-jv4h-j224-23cc, all three part of #58.
-
The difference is timing, not severity. One of the #58 findings was live for about 20 hours. ZF rated it Critical, and coinholders approved $150,000 for it. I reported mine 21 days before the release that would have carried them.
-
They would have shipped. ZF made the fix a blocker for the next release, and that refactor did ship another bug: ZF’s advisory GHSA-7jp4-mq53-4cvq (High) says it was “introduced by the
Transactionnewtype refactor, PR #10461”, and it affected Zebra 6.4.0 to 6.4.2. -
A discount would reward waiting. A bug reported after release earns a published advisory, a severity rating and a CVE. The same bug reported on the development branch earns a GitHub issue. If it also earns less, the next researcher has every reason to wait. I reported early, and said publicly before any grant was on the table that this is what the ecosystem should encourage.
| Finding | Credit | Requested |
|---|---|---|
C-01: nExpiryHeight above the ZIP 203 maximum accepted |
Sole reporter | $150,000 |
C-02: coinbase scriptSig length rule not enforced |
Sole reporter | $150,000 |
| Total | $300,000 |
Nothing has been paid for these findings, and there was no bounty route: ZCG closed its bounty program in May, three months before the refactor was merged.
Evidence
-
ZF’s tracking issue, with the credit: #11383
-
The fix: PR #11387
-
The release with both rules enforced: Zebra 6.4.0
Thank you to the Zebra team for fixing these within days, to the coinholders who funded Zebra security research in Q3, and to you for reading. I’m happy to answer questions about the findings and the evidence in this thread.