Security context

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

clockwork-xyz/clockwork
main @ 44d2038
11
Fixes
0
CVEs
HIGH
Peak severity
22.2%
Coverage
Highlights
Denial of Service: 6 prior fixes. Scrutinize any change in this area.
plugin: most-fixed (2 issues). Treat as high-risk during review.
4 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.

Auth Bypass: The use of non-returning 'if' checks instead of halting validation macros (such as require!) allowed thread state modification to bypass Pyth trigger requirements entirely. Developers must use Anchor require! macros for all constraint checks.
Access Control: Relying on custom manual authority constraints introduced bypass risks. Replacing manually coded authorization comparisons with Anchor's declarative 'has_one' attribute enforces deterministic authority validation.
Auth Bypass: Flawed seed derivations and incorrect static references (like using SEED_REGISTRY instead of SEED_POOL) let attackers bypass intended PDA verification checks during network and node initialization.