Security context

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

gnosischain/tokenbridge-contracts
master @ 4787340
23
Fixes
0
CVEs
CRITICAL
Peak severity
55.0%
Coverage
Highlights
Access Control: 12 prior fixes. Scrutinize any change in this area.
contracts/ERC677BridgeToken.sol: most-fixed (3 issues). Treat as high-risk during review.
22 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: Multiple fixes target unauthorized initialization, proxy upgrades, and ownership changes, indicating a systemic weakness in privileged-state transitions.
Signature Verification: Critical flaws in signature counting and required-signature checks allowed insufficient signatures to pass; also malleability and replay issues.
Access Control: Unauthorized token claims, relayTokens, receiver misdirection, and block-reward contract substitution show gaps in bridge-specific access control.