Security context

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

OrderlyNetwork/contract-evm
main @ 462e129
12
Fixes
0
CVEs
CRITICAL
Peak severity
55.6%
Coverage
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
src/Ledger.sol: most-fixed (3 issues). Treat as high-risk during review.
10 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: Multiple sensitive setters and withdrawal paths lacked role-based access control, allowing unauthorized brokers or accounts to modify state or withdraw funds.
Signature Verification Bypass: Raw ecrecover and incorrect EIP-712 hashing enabled signature malleability, zero-address signer bypass, and replay across chains/contracts.
Access Control: Missing token and symbol allowlist checks allowed unauthorized token operations and trades on non-permitted symbols.