Polynomial evaluations are never observed by recursive verifier
The recursive verifier's Fiat-Shamir transcript did not include polynomial evaluations, allowing a malicious prover to forge proofs by spoofing openings during the batch check. This completely bypasses the soundness of the recursive verifier.
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-08-pico-judging/issues/226
Found by
1AutumnLeaf777
Summary
Incorrect fiat-shamir observations in the recursive verifier allow a malicious prover to forge a proof
Root Cause
https://github.com/sherlock-audit/2025-08-pico/blob/main/pico/vm/src/compiler/recursion/circuit/fri.rs#L84-L87 We can see we immediately observe the extension field element from the challenger without observing each of the round constants like in SP1: https://github.com/succinctlabs/sp1/blob/28ee277e048e49ebdc608f63a1f6b77240e0668f/crates/recursion/circuit/src/fri.rs#L82-L94 This incorrect fiat shamir ordering allows a malicious prover to forge proofs by spoofing openings during the batch check. https://github.com/succinctlabs/sp1/security/advisories/GHSA-c873-wfhp-wx5m
Internal Pre-conditions
None
External Pre-conditions
None
Attack Path
- Prover can forge malicious proofs in the recursive verifier by manipulating opening arguments to cancel out (this is extremely technical and I do not pretend to understand the exact mathematics involved but based on the above linked GHSA I am sure it is possible)
Impact
Soundness of the recursive verifier is completely bypassed
PoC
No response
Mitigation
Observe each of the evaluations into the challenger
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/brevis-network/pico/pull/61
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The Fiat-Shamir transcript did not observe the polynomial evaluations before generating the challenge, unlike the correct implementation in SP1.
Impact
The soundness of the recursive verifier is completely bypassed, allowing a malicious prover to forge proofs.
What the attacker needed
None
The fix
The protocol team fixed this issue by observing each of the evaluations into the challenger.
How it was found
- Prover manipulates opening arguments to cancel out during the batch check.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A recursive verifier checks proofs about other proofs. It uses a Fiat-Shamir transform, which turns an interactive protocol into a non-interactive one by hashing all public values into a challenge. If some values are left out of that hash, a malicious prover can choose them after seeing the challenge to make a fake proof pass. Here, the polynomial evaluations were not hashed, so the prover could forge proofs.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.