Terms and Conditions
- I agree to the Grant Agreement terms if funded
- I agree to Provide KYC information if funded above $50,000 USD
- I agree to disclose conflicts of interest
- I understand that this grant program is only eligible for completed work, as it is a retroactive grant program. Applications for planned or partially completed work will not be considered. All completed work will be verified and accepted by its intended users or their representatives, who will confirm that the outputs meet the required quality, functionality, and usability before the work is listed as an option for Coinholder voting.
- I agree that for any new open-source software, I will create a CONTRIBUTING.md file that reflects the high standards of Zcash development, using the
librustzcashstyle guides as a primary reference. - I understand when contributing to existing Zcash code, I am required to adhere to the project specific contribution guidelines, paying close attention to any merge, branch, pull request, and commit guidelines as exemplified in the librustzcash repository.
- I understand all grants are valued in USD but will be disbursed in Shielded ZEC. I acknowledge and accept that disbursement amounts may fluctuate based on the ZEC/USD exchange rate at the time of payment.
Application Owners (@octocat, @octocat1)
@sangsoo-osec
Organization or Individual Name
sangsoo-osec
Additional Team Members
None. I am applying as an individual for my own security research contribution.
How did you learn about the Lockbox: Coinholder Retroactive Grants Program?
Through the Zcash Community Forum. I previously received a coinholder-approved retroactive grant in the Q3 2026 round.
Requested Grant Amount (USD)
56250
Category
Research & Development
Project Summary
I am requesting $56,250 for two completed Medium severity contributions: the zcashd V4 Sapling parsing mismatch GHSA-3jg6-49c6-q99v ($37,500), and my independent public report and adopted fix recommendation for Zebra's lock-time peer-ban issue GHSA-5h3r-fpmj-483w ($18,750, half the Medium reference base). These cases continue the discussion in my High severity application #74 about how severity ratings, practical impact, and the researcher's contribution should inform retroactive security rewards.
Project Description
Shared background with application #74
Thank you again to the coinholders who approved my Q3 proposal and everyone in the community who reviewed, discussed, and supported that work.
My Q4 High severity application #74 sets out the shared background: the Q3 approvals for critical vulnerability research, recent published security findings, and the opportunity to discuss how researchers' contributions to Zcash's security should be rewarded. I refer readers to that application for the supporting Q3 references and release data.
This updated application brings the same discussion to two Medium severity findings, displayed as Moderate on GitHub. It adds GHSA-5h3r-fpmj-483w to the original V4 parsing finding, increasing the request from $37,500 to $56,250. Each contribution has its own technical record, practical conditions, attribution, and proposed amount.
Finding 1 — V4 Sapling parsing mismatch in zcashd
The finding concerns GHSA-3jg6-49c6-q99v, published by the zcashd maintainers on May 8, 2026, with sangsoo-osec credited as the reporter. See the official advisory.
For a V4 Sapling transaction with no Sapling spends or outputs, the serialized valueBalanceSapling must be zero. The malformed case has:
| Serialized field | Value |
|---|---|
nSpendsSapling | 0 |
nOutputsSapling | 0 |
valueBalanceSapling | A non-zero in-range value, such as 1 |
In the affected zcashd code, the V4 read path used the presence of Sapling actions to decide whether to assemble a bundle. With both action vectors empty, it discarded the non-zero balance and exposed an empty-bundle balance of zero. The later validation check therefore examined an already-normalized object. Zebra's V4 parser instead rejected the same encoding with BadTransactionBalance.
Practical impact and trigger conditions
The advisory documents how this parser disagreement can reach block validation:
- A miner or custom raw block producer embeds the malformed transaction bytes directly into a block.
- The block's Merkle root uses the normalized transaction ID that zcashd derives after parsing.
- zcashd can accept the raw block after normalization, while Zebra rejects those same bytes during deserialization.
The ordinary zcashd transaction relay, mempool, and mining path normalizes the encoding before block production. Submitting the malformed transaction to a stock node's mempool alone therefore does not preserve the divergent trigger. Subsequent zcashd block relay can also reserialize the block in canonical form. These conditions limit the issue's practical reach, as explained in the advisory's impact analysis.
Remediation and completed outcome
The zcashd v6.12.2 security release, published May 6, 2026, describes this issue and its fix: malformed empty-Sapling encodings with a non-zero balance are now rejected during deserialization, matching Zebra's behavior. The advisory lists versions below v6.12.2 as affected and v6.12.2 as patched.
The completed contribution is the accepted disclosure of this mismatch, with publicly documented reproduction steps, practical constraints, reporter attribution, and remediation.
Finding 2 — Zebra bans honest peers for tip-relative lock-time rejections
The additional finding is GHSA-5h3r-fpmj-483w, published October 22, 2026, and classified Medium (CVSS 3.1: 5.3). It affects Zebra's mempool peer-scoring behavior.
The bug arises when two honest nodes have different chain tips. A peer at tip H can correctly accept and relay a transaction with nLockTime = H and a non-final input sequence for candidate block H+1. A receiving node still at tip H-1 checks the same transaction for candidate block H and rejects it as non-final. Zebra assigned that lock-time error a misbehavior score of 100, the ban threshold, and penalized the honest peer that served the transaction. My public report #11623 documents this path and two unit-test reproductions.
On 6.4.x, the resulting IP-group ban lasts 24 hours and can cover an IPv6 /64. On 4.5.0 through 6.3.x, the per-IP ban persists until restart. The node keeps running and the transaction becomes acceptable after the next block. Repeated occurrences remove useful honest connections, including when a third party deliberately broadcasts transactions at the lock-time boundary. The advisory identifies the affected releases as 4.5.0 through 6.4.2 and 7.0.0-rc.0, with 7.0.0 patched.
My report notes that standard wallet transactions using lock_time = 0 do not trigger this boundary case. It documents the mechanism with unit tests; the success rate of deliberate exploitation on a live network was not measured.
My contribution and the shared attribution
I independently found the issue and published #11623 on October 8, 2026. The report traced local-tip validation, peer attribution, and ban-threshold scoring; it included two unit tests and recommended exempting these tip-relative failures on the mempool path while retaining scoring for non-final transactions in blocks.
The advisory separately credits SphereDonout's private report and complete two-node reproduction. Its narrative acknowledges my independent public report and states that my proposed fix shape was adopted in PR #11627. I request $18,750, half the $37,500 Medium reference base, for my contribution to this finding.
Remediation and completed outcome
The maintainers merged PR #11627 on October 12, 2026. The fix assigns no peer misbehavior score to lock-height and lock-time rejections on the mempool path. The transaction remains locally rejected until valid, and block-path scoring is preserved. The Zebra 7.0.0 release notes, published October 22, thank sangsoo-osec for the report.
The question for coinholders
As discussed in application #74, I see this round as a useful opportunity to consider what criteria should guide rewards for researchers' contributions to Zcash's security.
These two Medium findings give that discussion concrete cases
- Practical impact: How should coinholders weigh realistic exploitation conditions, required attacker capabilities, the scope of exposure, and the potential harm alongside that rating?
I would welcome coinholders' views on how to balance these considerations, whether through severity-based reference amounts, case-by-case assessments, or a combination of the two. This application puts two Medium contributions and an explicit allocation of the requested amount before coinholders to help make that discussion concrete.
Basis for the requested amount
The former ZCG Security & Vulnerability Disclosure Initiative included zcashd and Zebra in the Core Node category and published a $37,500 base payout for Core Node / Medium findings.
The updated request is $37,500 for GHSA-3jg6-49c6-q99v, plus $18,750 (50% of that base) for my independent report and adopted fix recommendation for GHSA-5h3r-fpmj-483w, for a total of $56,250. The half-base allocation for the second finding recognizes the shared attribution with SphereDonout's separate private disclosure.
Technical Approach (how you did it)
I used LLM-assisted differential code review to map equivalent V4 Sapling transaction parsing and validation paths in zcashd and Zebra. I then traced how each implementation handled a non-zero serialized Sapling balance when both Sapling action vectors were empty, including how normalization affected later validation, transaction IDs, and reserialization.
I validated the parsing mismatch and examined the relay, mempool, and mining paths to determine the conditions needed to preserve the malformed bytes through block validation. The published advisory records the code revisions and reproduction steps used in that analysis.
For the Zebra finding, I traced how tip-relative lock-time errors flowed from transaction verification to the serving peer's misbehavior score. My public report contains a real-verifier unit test for the one-block height boundary and a mempool test observing the score sent for the serving peer, followed by a targeted fix recommendation adopted by the maintainers.
Time Period of Work Completion
V4 parsing finding: completed by May 2026. The remediation release, zcashd v6.12.2, was published on May 6, 2026; the advisory was published on May 8, 2026.
Zebra peer-ban finding: my public report was submitted October 8, 2026; the fix was merged October 12 and released in Zebra 7.0.0 on October 22, the advisory's publication date.
Total Budget (USD)
0
Budget Breakdown
This is an outcome-based retroactive award request. No salary, software, hosting, contractor, or other expenses are submitted for reimbursement, so the total expense budget is $0.
Previous Funding
Yes
Previous Funding Details
I received $425,000 through the Q3 2026 Coinholder Retroactive Grants Program for Five Critical Zebra Consensus Divergence Vulnerabilities, application #58. That application covered five other advisories and included neither GHSA-3jg6-49c6-q99v nor GHSA-5h3r-fpmj-483w.
I have also submitted a separate High severity application, #74, requesting $75,000 for GHSA-xvj8-ph7x-65gf. The present request covers GHSA-3jg6-49c6-q99v and GHSA-5h3r-fpmj-483w. The two applications raise the same questions about reward criteria and concern separate findings.
Other Funding Sources
No
Other Funding Sources Details
No response
Success Metrics
- One completed disclosure with sangsoo-osec credited as the reporter and a published Medium severity classification.
- A documented difference in how zcashd and Zebra handled the same malformed encoding, with the practical trigger conditions explained.
- A released fix aligning zcashd's deserialization behavior with Zebra, documented in the v6.12.2 release notes.
- An independent public report for GHSA-5h3r-fpmj-483w, with two unit-test reproductions and narrative acknowledgement in the advisory alongside SphereDonout's private disclosure.
- An adopted fix recommendation, merged in PR #11627 and released in Zebra 7.0.0.
Proof of completion
- GHSA-3jg6-49c6-q99v — published classification, reporter credit, technical analysis, reproduction steps, affected versions, and patched version.
- zcashd v6.12.2 release — public release notes describing the malformed V4 Sapling encoding and its rejection during deserialization.
- GHSA-5h3r-fpmj-483w — Medium classification, impact, shared attribution, and acknowledgement of my independent report and adopted fix shape.
- My public report #11623 — analysis, two unit-test reproductions, practical constraints, and the proposed mempool-scoring fix.
- Fix PR #11627 — the maintainers' merged fix closing #11623.
- Zebra 7.0.0 release — public remediation release thanking sangsoo-osec for the report.
Conflict of Interest Disclosure
No response
Community Forum Posting
- I understand it is my responsibility to post a link to this issue on the Zcash Community Forums after this application has been submitted so the community can give input. I understand this is required in order for the community to discuss and vote on this grant application. Note: If you are unable to post on the forum (for example, due to new user restrictions), please leave a comment below, and we will adjust your posting permissions.