Highlights
Access Control: 3 prior fixes. Scrutinize any change in this area.
contracts/borrow-operations-contract/src/main.sw: 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.
Access Control: Multiple administrative functions (set_pauser, transfer_owner, renounce_owner, add_asset) lacked ownership or protocol-manager checks, allowing unauthorized control or asset registration.
Access Control Bypass: Initialization functions were vulnerable to unauthorized or re-initialization attacks; fixes added INITIALIZER identity checks and a boolean is_initialized flag to prevent bypasses.
Oracle Manipulation: Hardcoded precision in Pyth price conversion allowed attacker-controlled prices to be mis-scaled, enabling manipulation of collateral calculations.