Skip to content
Crypto Audit finding Advanced

Chip ordering is used to fetch all chips instead of preprocessed ones

The verifier uses a prover-supplied chip ordering to decide which chips to open, allowing a prover to provide openings for only a subset of chips. An attacker could therefore submit invalid execution proofs that the verifier accepts.

1AutumnLeaf777 Follow

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-08-pico-judging/issues/204

Found by

1AutumnLeaf777

Summary

The prover provided chip_ordering allows for a prover to only provide chips that they would like opened rather than the opening values for every chip.

Root Cause

We can see that the chips that will be used in the verify_shard function are created here: https://github.com/sherlock-audit/2025-08-pico/blob/main/pico/vm/src/machine/verifier.rs#L77 This is entirely prover controlled and thus similar to the previous issue #4 we can see that the prover can selectively provide openings for some chips and not for the entire execution.

Internal Pre-conditions

None

External Pre-conditions

None

Attack Path

  1. Attacker specifies the chip ordering to be only for one specific chip
  2. They manipulate the opened values and traces accordingly like in issue #4

Impact

Invalid proofs of execution are accepted by the verifier

PoC

No response

Mitigation

Ensure that the chip ordering is used only to validate against preprocessed chips

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-controlled chip ordering to select which chips to open, instead of using it only to validate against preprocessed chips.

Impact

Invalid proofs of execution are accepted by the verifier.

What the attacker needed

None

The fix

The protocol team fixed this issue in a pull request.

How it was found

  1. Attacker specifies the chip ordering to be only for one specific chip
  2. They manipulate the opened values and traces accordingly like in issue #4

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 zero-knowledge proof system lets someone prove a computation happened without showing all the details. Here, the person making the proof could choose which parts of the computation to reveal, so they could hide the parts that would show their proof was wrong. The checker accepted these incomplete proofs as valid.

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.