Security context

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

imputnet/cobalt
main @ a636575
9
Fixes
50
CVEs
CRITICAL
Peak severity
Highlights
Access Control: 1 prior fix. Scrutinize any change in this area.
api/src/security/jwt.js: most-fixed (2 issues). Treat as high-risk during review.
3 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: Session tokens used incorrect timestamp scales (milliseconds instead of seconds) for validation and generation, causing expiration calculations to deviate drastically from specification and allowing expired tokens to be accepted.
Weak Cryptography: Allowing short JWT secrets can expose session tokens to rapid brute-forcing attacks, compromising the identity and sessions of all application users.
Access Control: An incorrect subnet mask definition (treating IPv6 subnets as IPv4 sizes) allowed unauthorized network ranges to bypass API key restriction limits.