Security context

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

astarnetwork/astar
master @ f7d13c4
6
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
frame/custom-signatures: most-fixed (2 issues). Treat as high-risk during review.
4 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.

Signature Replay: The custom-signatures pallet historically failed to properly validate and increment nonces during signature verification. This allowed attackers to perform transaction replay attacks and trigger race conditions because the system validated the cryptographic signature without modifying the underlying account state or tracking transaction fees properly.
Auth Bypass: A signature verification bypass occurred because raw ECDSA signatures were processed without enforcing correct SCALE codec encoding constraints during the Ethereum public key recovery process. This allowed malformed signatures to bypass the cryptographic recovery checks.
Integer Overflow: Standard mathematical operators (+, -, *) were utilized in staking precompile calculations without checking for overflow boundaries, exposing the runtime's financial and staking systems to manipulation through integer wrapping.