Indices 8 and 9 of ALLOWED_TREASURE_HASHES in circuits/src/main.nr are byte-identical. Index 8 should be pedersen_hash([9]) per Deploy.s.sol:25, but holds pedersen_hash([10]), duplicating index 9. is_allowed(pedersen_hash([9])) therefore returns false, so no valid proof can be generated for secret 9, and honest play caps at nine distinct claims. With the separate dedup bug patched, withdraw() at line 224 (claimsCount >= MAX_TREASURES) becomes unreachable and 10 ETH plus any donations are stranded.
The test file already works around the bug: circuits/src/tests.nr:30 uses [1, 2, 3, 4, 5, 6, 7, 8, 10, 10] (no 9), acknowledging that secret 9 cannot be proven.
Likelihood: certain. Activates whenever the finder of treasure 9 attempts to claim, or the owner attempts non-emergency withdrawal. Impact: (a) finder of treasure 9 receives nothing; (b) 10 ETH of residual prize plus any donations stuck; (c) owner can only recover via pause() + emergencyWithdraw, which cancels the hunt for remaining participants.
Noir test proving that secret 9's intended hash is not accepted (add to circuits/src/tests.nr):
Distinctness check that would fail on current code:
Solidity-side impact once dedup is patched:
Replace the wrong value at circuits/src/main.nr:64:
Regenerate Verifier.sol via circuits/scripts/build.sh and redeploy. Fix the test fixture:
Add the pairwise-distinctness test above so future copy-paste errors fail at nargo test time.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.