The Noir circuit in main.nr contains duplicate entries in the ALLOWED_TREASURE_HASHES array (indices 8 and 9 share the same hash value). This creates a deadlock where only 9 unique treasures can be claimed, permanently locking funds.
Likelihood: High
Impact: High
Protocol Deadlock: The duplicate hash in Noir ensures the hunt can never be "completed" (9/10), which permanently bricks the withdraw() function for the owner, locking any remaining funds forever.
This PoC demonstrates the Protocol Deadlock where duplicate hashes in the Noir circuit prevent reaching the 10th claim.
Permanent Fund Lock (Duplicate Logic):
The fix requires a two-step approach to restore both security and functionality.
Noir Fix: Replace the duplicate hash at index 9 in ALLOWED_TREASURE_HASHES with a unique Pedersen hash. This ensures all 10 allowed hashes are distinct and allows the hunt to complete.
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.