Quotient domain is completely controlled by prover
The verifier allows the prover to choose the size of the quotient domains instead of deriving them from the trace size of each chip. This lets the prover set the quotient domain arbitrarily small, making polynomial evaluations easy to compute and bypassing the colinearity check, so invalid statements can be accepted.
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-08-pico-judging/issues/199
Found by
1AutumnLeaf777
Summary
The prover is allowed to choose the size of the quotient domains instead of having them be taken from the trace size of each chip
Root Cause
We can see the quotient_degree variable https://github.com/sherlock-audit/2025-08-pico/blob/main/pico/vm/src/machine/verifier.rs#L72 is controlled entirely by the prover as opposed to the trace size like in SP1:
https://github.com/succinctlabs/sp1/blob/28ee277e048e49ebdc608f63a1f6b77240e0668f/crates/stark/src/verifier.rs#L32-L59
This lets the prover set the quotient domain to be arbitrarily sized, which breaks the underlying soundness of the FRI PCS.
Internal Pre-conditions
None
External Pre-conditions
None
Attack Path
- Prover sets the log_quotient_degrees to 0
- Prover modifies the evaluations of the polynomial, which are easily computable as they are on a much smaller domain, which allows him to easily bypass the colinearity check
Impact
Invalid statements can be accepted by the verifier violating soundness
PoC
No response
Mitigation
Ensure that the quotient degrees are taken from the length of the chips and not supplied as a prover trusted input
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
Likely the verifier trusts a prover-supplied quotient degree instead of deriving it from the trace size, breaking the soundness of the FRI polynomial commitment scheme.
Impact
Invalid statements can be accepted by the verifier, violating soundness.
What the attacker needed
None
The fix
The quotient degrees should be taken from the length of the chips and not supplied as a prover-trusted input; the text states the protocol team fixed this issue.
How it was found
- Prover sets the log_quotient_degrees to 0
- Prover modifies the evaluations of the polynomial, which are easily computable as they are on a much smaller domain, which allows him to easily bypass the colinearity 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.
In some cryptographic proof systems, a prover tries to convince a verifier that a computation was done correctly. The verifier should independently check certain mathematical properties, but here it lets the prover pick a parameter that controls how hard those checks are. By choosing a very small value, the prover can cheat and make the verifier accept a false statement.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.