0xPARC / zk-bug-tracker

A community-maintained collection of bugs, vulnerabilities, and exploits in apps using ZK crypto.
MIT License
616 stars 52 forks source link

More ZK bugs #11

Open veorq opened 1 year ago

veorq commented 1 year ago

Great project, thank you!

I dont think these are listed (found while preparing my talks on ZKP security by asking friends and "doing my own research"):

Missing overflow check of a nullifier https://github.com/a16z/zkp-merkle-airdrop-contracts/pull/2

Overflow again https://github.com/eea-oasis/baseline/issues/34

Field element inverse property not enforced https://github.com/arkworks-rs/r1cs-std/pull/70

Missing public input -> replay https://starli.medium.com/filecoin-one-porep-vulnerability-found-by-trapdoor-tech-7fc7beb4557b

Timing attacks https://eprint.iacr.org/2020/627.pdf

Missing (randomized) blinding to hide private inputs – not clear if really exploitable though https://github.com/dusk-network/plonk/pull/651

This one turned out to be non-exploitable (as clarified privately by the StarkWare team), but a similar behavior may be a problem in some cases https://github.com/starkware-libs/cairo-lang/issues/39

There are some other interesting ZK circuit bug types I've seen (concrete cases cant be disclosed yet):

Hope this helps, feel free to only include what you think is the most relevant/original.

kcharbo3 commented 1 year ago

This is great, thank you!! Will go through and add them once I get a chance.

kcharbo3 commented 1 year ago

Took a dive into the Timing attacks paper, but after some research it looks like they may not be that serious? https://forum.zcashcommunity.com/t/churning-zcash-for-maximum-anonymity-and-privacy/40705/2

Likely going to add the EEA-OASIS and Arkworks bugs. Still need to take a look into the remaining 3.

ytrezq commented 1 year ago

Please also add Tornado Cash which was a classical missing constraint but the problem is https://crypto.stackexchange.com/q/103262

guidovranken commented 1 year ago

Below are a few that I found. Don't know if they qualify for this project because they are bugs in the EC libraries rather than in circuits.

yuliyu123 commented 10 months ago

Here are other zk bugs other security researchers found, I want to list here, please merge it if you think they are awesome: