Record · 2019

Zcash counterfeiting vulnerability (CVE-2019-7167)

The published setup of the BCTV14 zk-SNARK, which Zcash's original Sprout system used, produced extra elements that would let their holder forge proofs and create shielded coins from nothingIACR Cryptology ePrint A… 2013Electric Coin Company bl… 2019. A Zcash Company cryptographer found it on 1 March 2018; the company fixed it covertly in the Sapling upgrade in October 2018 and disclosed it on 5 February 2019Electric Coin Company bl… 2019.

  1. IntroducedBCTV14 paper, whose setup description contains the flaw, first posted to IACR ePrint (2013/879). IACR Cryptology ePrint A… 2013
  2. IntroducedZcash launches with the Sprout system built on BCTV14 and parameters from the 2016 ceremony. Electric Coin Company bl… 2016Electric Coin Company bl… 2019
  3. DiscoveredAriel Gabizon discovers the flaw at Financial Cryptography 2018; Sean Bowe confirms; CEO and CTO briefed. Electric Coin Company bl… 2019
  4. MitigatedThe ceremony transcript is removed from public availability under a cover story of accidental deletion. Electric Coin Company bl… 2019
  5. PatchedSapling network upgrade activates at block 419200, covertly removing the vulnerability from Zcash. Electric Coin Company bl… 2019
  6. EventCircle widens: director of product security briefed to prepare third-party disclosure packages. Electric Coin Company bl… 2019
  7. ReportedHorizen and Komodo notified by PGP-encrypted email of impact and fix path, without the cause; 90-day maximum embargo. Electric Coin Company bl… 2019
  8. EmbargoNinety-day maximum public disclosure timeline agreed with both projects. Electric Coin Company bl… 2019
  9. AcknowledgedKomodo acknowledges the notification. Electric Coin Company bl… 2019
  10. EventTranscript reconstructed from participants' DVDs and reposted. Electric Coin Company bl… 2019
  11. EventHorizen asks for full details before publication; request refused. Electric Coin Company bl… 2019
  12. ReportedFounding scientists and BCTV14 authors briefed. Electric Coin Company bl… 2019
  13. PatchedHorizen's software upgrade completed (as reported by Horizen to Fortune). Fortune 2019
  14. EventCVE-2019-7167 obtained from MITRE. Electric Coin Company bl… 2019
  15. ReportedZcash Foundation and its board briefed, along with all Zcash Company staff. Electric Coin Company bl… 2019
  16. DisclosedPublic disclosure via blog, social media and direct contacts; CVE text released. Electric Coin Company bl… 2019Fortune 2019
  17. EventBCTV14 ePrint revised to fix the error in Appendix B. IACR Cryptology ePrint A… 2013
  18. DisclosedGabizon posts his analysis of the BCTV14 flaw to IACR ePrint (2019/119). IACR Cryptology ePrint A… 2019
  19. AnnouncedTurnstile enforcement (ZIP 209) announced as a consensus rule, planned for zcashd 2.0.5 on mainnet. Electric Coin Company bl… 2019
  20. EventNVD publishes its CVE-2019-7167 record. NIST NVD 2019

What it did

The company found no evidence of counterfeiting, but shielded pools are private, so that conclusion rests on turnstile accounting of value leaving themElectric Coin Company bl… 2019Electric Coin Company bl… 2019. Horizen and Komodo were notified under embargo, while smaller affected projects were not told before disclosureElectric Coin Company bl… 2019Fortune 2019.

What it teaches

A vendor can keep a secret for a long time: knowledge stayed with four people until the covert fix, and the flaw stayed undisclosed for 341 daysElectric Coin Company bl… 2019. Notifying forks by market value protected most exposed value first, but press coverage questioned leaving smaller projects exposedFortune 2019. Zcash made the turnstile a consensus rule, which contains counterfeit value rather than proving there is noneElectric Coin Company bl… 2019Zcash Improvement Propos… 2019.