Skip to content
DoS Audit finding Intermediate

Unbounded decimal public inputs enable verifier-side DoS via oversized numeric parsing

EV_om Follow

Originally disclosed on Code4rena

Submitted by EV_om

  • crates/recursion/gnark-ffi/go/sp1/verify.go #L39-L51
  • crates/recursion/gnark-ffi/go/sp1/sp1.go #L28-L37

In the Go gnark FFI verifier, VerifyPlonk and VerifyGroth16 accept the five SP1 public inputs (vkey_hash, committed_values_digest, exit_code, vk_root, proof_nonce) as arbitrary strings and directly assign them to the circuit’s public fields as frontend.Variables without any length or canonicalization checks. See VerifyPlonk constructing the circuit with VkeyHash, CommittedValuesDigest, ExitCode, VkRoot, and ProofNonce set from caller-provided strings, followed by frontend.NewWitness:

gnark will parse these strings into field elements internally when building the witness. If an attacker supplies extremely long decimal strings (e.g., millions of digits) that still reduce to the correct field values modulo BN254, frontend.NewWitness performs proportional big‑integer parsing/coercion, imposing significant CPU and memory overhead before any constraint checks or early rejection. There is no pre‑bound on length nor canonical encoding enforced at this boundary.

This does not create a soundness break for SP1: the Rust side later compares the proof’s public inputs to expected values using canonical BigUint equality. However, the Go verification entrypoints can be driven into heavy computation with large untrusted numeric strings, which is a verifier‑side DoS/availability issue consistent with the contest’s Medium severity category.

Worst case, an attacker can reliably induce multi‑second CPU spikes or worse by inflating the decimal size of any of the five public inputs, even if the underlying proof and vk are otherwise valid. If this surface is exposed to untrusted users (e.g., a service verifying proofs pre‑Rust checks), it can degrade availability.

Recommended mitigation steps

  • Enforce canonical, bounded input encoding for public inputs at the Go boundary:

    • Prefer fixed‑size hex strings (32 bytes) for each public input, with strict length validation, or
    • Parse decimal strings with a hard maximum length (sufficient for BN254 scalar range), reduce modulo p, and re‑encode canonically (e.g., fixed‑width hex) before constructing the gnark witness.
  • Fail fast if inputs exceed expected size or do not match canonical formatting to avoid expensive parsing inside gnark.

View detailed Proof of Concept


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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A medium-severity doS bug in Succinct. Code4rena made it public on 18 February 2026. Found in the 2025-09-succinct audit contest (finding M-07).

About DoS

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by EV_om

View all

23 more disclosed reports, best first.

More from Succinct

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.