Security context

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

Instadapp/inst-governance
main @ 3fc54af
6
Fixes
0
CVEs
HIGH
Peak severity
40.0%
Coverage
Highlights
Access Control: 5 prior fixes. Scrutinize any change in this area.
contracts/TokenDelegate.sol: most-fixed (2 issues). Treat as high-risk during review.
6 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: Vault authorization calls (setVaultAuth) were not routed through a governance-only wrapper, allowing unauthorized callers to change vault auth. Two separate fixes addressed the same sink, indicating repeated exposure.
Access Control: The _setImplementation function had a changeImplementationAfter time check that was removed, potentially allowing earlier implementation changes if master privileges are obtained, weakening a time-based access control.
Access Control: The initialize function lacked a check to prevent reinitialization once totalSupply is non-zero, allowing the token contract to be reinitialized and potentially resetting state.