Security context

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

uniswap/permit2
main @ cc56ad0
7
Fixes
0
CVEs
HIGH
Peak severity
40.0%
Coverage
Highlights
Logic Error: 2 prior fixes. Scrutinize any change in this area.
src/SignatureTransfer.sol: most-fixed (3 issues). Treat as high-risk during review.
5 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 Malleability: Incomplete return data validation when querying DOMAIN_SEPARATOR allowed for potentially spoofed signatures on non-standard tokens. Developers must guarantee exact 32-byte checks on external return data.
Auth Bypass: Using unsafe transferFrom calls on ERC20 tokens allowed failed transfers to silently succeed without reverting, bypassing transaction-level authorization checks.
Logic Error: Incorrect assignment of default zero addresses instead of the intended spender during batch operations bypasses access controls, highlighting risks in complex loop states.