Security context

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

shuaiplus/nodewarden
main @ bf51309
33
Fixes
0
CVEs
HIGH
Peak severity
33.3%
Coverage
Highlights
Auth Bypass: 12 prior fixes. Scrutinize any change in this area.
src/handlers/identity.ts: most-fixed (9 issues). Treat as high-risk during review.
16 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 caching logic and JWT verification historically bypassed database validation checks when security stamps or passwords changed, allowing revoked credentials to remain active. Mandatory session stamp validation must be enforced on every token lifecycle action.
Auth Bypass: Two-factor provider types and token inputs were vulnerable to bypasses due to lack of input normalization and validation. Untrimmed inputs or unsupported provider values could skip multi-factor verification entirely during the token exchange flow.
Insecure Cryptography: Server-side password validation historically failed to use constant-time comparison methods, leaving the application vulnerable to timing side-channels during key verification.