Security context

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

keystonejs/keystone-classic
master @ 6e5ba11
61
Fixes
0
CVEs
CRITICAL
Peak severity
34.4%
Coverage
Highlights
Auth Bypass: 18 prior fixes. Scrutinize any change in this area.
lib/session.js: most-fixed (12 issues). Treat as high-risk during review.
33 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: Type checking errors and incorrect variable evaluations in password complexity checking repeatedly bypassed validation rules entirely. Ensuring strict types and proper variable references is vital to prevent plain-text or weak password persistence.
Auth Bypass: User searches using unanchored regular expressions or unescaped query strings allowed substring matches and ReDoS. Proper validation, escaping, and anchoring are required for email lookups to prevent unauthorized logins.
CSRF: Flawed token extraction patterns, such as failing back to checking request cookies directly, compromised CSRF protections. Tokens must be extracted from independent headers or payloads and compared in constant time.