Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

penumbra-zone/penumbra
main @ 36a31c1
145
Fixes
0
CVEs
CRITICAL
Peak severity
18.2%
Coverage
Highlights
Denial of Service: 39 prior fixes. Scrutinize any change in this area.
crypto/src/proofs/transparent.rs: most-fixed (9 issues). Treat as high-risk during review.
112 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Cryptographic Issues: Historically, critical zero-knowledge circuits were under-constrained. Specifically, missing randomized verification key (rk) integrity checks and failure to ensure that spend authorization keys (ak) were not the identity element posed severe signature bypass risks.
Denial of Service: Unbounded path searches and nested execution loops inside the DEX router could result in excessive CPU time consumption. This was mitigated by propagating a circuit breaker state down through sub-calls to enforce limits on transaction complexity.
Auth Bypass: Inconsistent serialization format expectations during Merkle proof verification allowed verification logic to be bypassed or to fail under legitimate execution, such as using protobuf-encoded bytes instead of raw packet hash bytes.