Security context

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

andeya/faygo
master @ d2a5c3d
3
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Cryptographic Weakness: 2 prior fixes. Scrutinize any change in this area.
session: most-fixed (1 issue). Treat as high-risk during review.
2 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.

Cryptographic Weakness: The random utility component previously fell back to the insecure math/rand pseudo-random number generator, risking predictable token and key generation. Future developers must ensure no fallback to non-cryptographic generators is ever reintroduced.
CWE-330: Use of Insufficiently Random Values: Weak pseudo-random generation was used as a fallback when generating sensitive session and CSRF tokens, exposing sessions to hijacking via token prediction.
Cryptographic Weakness: Session keys lacked guaranteed URL-safety due to the use of standard RandomString generation rather than URL-safe generation, leading to padding anomalies in cookie structures.