Security context

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

morpho-org/vault-v2
main @ a0ba9df
4
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Access Control: 4 prior fixes. Scrutinize any change in this area.
src/periphery/PublicAllocator.sol: most-fixed (2 issues). Treat as high-risk during review.
2 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: PublicAllocator allowed operations with arbitrary adapters not created by the factory, enabling unauthorized market interactions.
Access Control: Generic gate checks (canUseAssets/canUseShares) allowed users to perform operations in unintended directions (e.g., supply vs. receive) without proper authorization.
Access Control: A binary canAllocate flag allowed unlimited allocation to any market once enabled, lacking per-market limits.