Security context

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

cowprotocol/contracts
main @ 99715b2
11
Fixes
0
CVEs
HIGH
Peak severity
70.0%
Coverage
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
GPv2Settlement.sol: most-fixed (6 issues). Treat as high-risk during review.
8 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: The settle function lacked access control, allowing unauthorized calls that could trigger trades. A high-severity fix added an onlySolver modifier.
Rounding/Accounting: Truncating division in executed amount calculation could be exploited by a malicious solver to drain funds via partial fills. Fixed with ceiling division.
Authorization Bypass: A vulnerable single-trade settlement function allowed a malicious solver to extract user funds; removed entirely.