Security context

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

Synthetixio/synthetix-v3
main @ 23585f7
52
Fixes
0
CVEs
CRITICAL
Peak severity
39.5%
Coverage
Highlights
Auth Bypass: 22 prior fixes. Scrutinize any change in this area.
protocol/synthetix/contracts/modules/core/AccountModule.sol: most-fixed (3 issues). Treat as high-risk during review.
37 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: Account transfer mechanisms historically failed to clean up and revoke delegate permissions granted by the previous owner, allowing former operators to maintain control of transferred accounts. Subsequent fixes corrected this by introducing loop revokers.
Financial Logic: Withdrawal and position modification validators failed to factor in liquidation keeper fees and outstanding account debt, creating paths for users to withdraw collateral from accounts holding debt or transfer funds below the safe liquidation margin.
Auth Bypass: Sensitive setter and proxy upgrade functions had incorrect visibility (public instead of internal or owner-gated), allowing unauthorized actors to alter contract implementation targets and brick or hijack system proxies.