Security context

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

berachain/contracts
main @ 70e392f
3
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Access Control: 1 prior fix. Scrutinize any change in this area.
.github/workflows: most-fixed (1 issue). 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.

Command Injection: Unquoted branch refs from pull request events were interpolated into a shell script, enabling injection of arbitrary commands. Fixed by passing refs via environment variables and quoting.
Access Control: Token transfers lacked pause and blacklist enforcement, allowing unrestricted movement during incidents. Fixed by adding checks in _beforeTokenTransfer.
Supply Chain: GitHub Actions were referenced by mutable tags, permitting unauthorized code execution if a tag is compromised. Fixed by pinning actions to commit SHAs and restricting workflow permissions.