Skip to content
Crypto Audit finding Advanced

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.

1AutumnLeaf777 Follow

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

  1. Prover sets the log_quotient_degrees to 0
  2. 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

The original report as published on Sherlock, by 1AutumnLeaf777. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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

  1. Prover sets the log_quotient_degrees to 0
  2. 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.

More by 1AutumnLeaf777

View all

5 more disclosed reports, best first.

More from Brevis Pico ZKVM

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.