Security context

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

solidstate-network/solidstate-solidity
master @ 0862c06
36
Fixes
0
CVEs
CRITICAL
Peak severity
43.8%
Coverage
Highlights
Auth Bypass: 17 prior fixes. Scrutinize any change in this area.
contracts/proxy/diamond/writable/DiamondWritableInternal.sol: most-fixed (5 issues). Treat as high-risk during review.
25 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.

Arbitrary Code Execution: An accidental introduction of delegatecall instead of standard external calls on third-party tokens allowed untrusted target contracts to execute arbitrary code within the context of the calling contract, exposing it to complete state corruption.
Auth Bypass: The inclusion of administrative interfaces and Ownable inheritance directly on fallback facets allowed unauthorized administrative access control bypasses.
Logic Error: Critical bitwise layout overlaps, improper storage deletion sequences, and storage boundary errors during selector tracking could corrupt the proxy's routing tables and storage state.