Security context

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

jito-foundation/restaking
master @ db90840
6
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Access Control: 4 prior fixes. Scrutinize any change in this area.
core/src/loader.rs: most-fixed (1 issue). Treat as high-risk during review.
3 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: Token account/mint loading only validated SPL Token ownership, allowing Token-2022 accounts to bypass ownership checks and potentially spoof token identities.
Auth Bypass: Incorrect admin check used vault_admin instead of slasher_admin, allowing unauthorized users to add vault slashers.
Integer Overflow: Fee and amount calculations used unchecked multiplication/division, enabling overflow to manipulate vault balances.