Security context

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

mstable/mstable-contracts
master @ 51da027
10
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
contracts/masset/Masset.sol: most-fixed (5 issues). Treat as high-risk during review.
5 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.

Reentrancy: External token operations (mint, redeem, and swap) are susceptible to reentrancy-based state manipulation. Implementing the nonReentrant modifier and maintaining a strictly defined order of execution is crucial for preventing contract draining.
Auth Bypass: Implementation logic contracts deployed behind proxies can be initialized maliciously outside of the proxy context if they are not immediately initialized with dummy data.
Access Control: Failure to restrict initialization access allows unauthorized callers to initialize module implementations, risking contract ownership hijacking.