Security context

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

agglayer/vault-bridge
main @ c2ece8a
19
Fixes
0
CVEs
HIGH
Peak severity
58.3%
Coverage
Highlights
Incorrect Accounting: 6 prior fixes. Scrutinize any change in this area.
src/NativeConverter.sol: most-fixed (5 issues). Treat as high-risk during review.
13 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: Mint function lacked access control, allowing unauthorized state manipulation; fixed by adding onlyCustomToken modifier and migration tracking.
Auth Bypass: Zero-address minting was allowed to any caller, enabling unauthorized token creation; now restricted to bridge sender.
Access Control / Privilege Escalation: Administrative functions used onlyOwner, a single point of compromise; replaced with role-based DEFAULT_ADMIN_ROLE to reduce escalation risk.