Security context

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

ethereum/execution-specs
forks/amsterdam @ 0cc100e
4
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Consensus/Validation: 2 prior fixes. Scrutinize any change in this area.
src/eth1spec/spec.py: most-fixed (1 issue). 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.

Auth Bypass: Transaction sender recovery lacked chain ID validation, allowing acceptance of transactions from incorrect chains, effectively bypassing authentication of the transaction's origin network.
Crypto Validation: secp256k1 recovery did not validate that r is a valid x-coordinate on the curve, permitting invalid signatures to be accepted, enabling potential signature forgery or incorrect verification.
Consensus/Validation: Header validation was missing checks for difficulty, gas limit, timestamp, number, and extra data length, allowing invalid blocks to be accepted and enabling unauthorized state changes.