Security context

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

gofiber/fiber
main @ 9c236aa
81
Fixes
14
CVEs
CRITICAL
Peak severity
44.4%
Coverage
Highlights
Denial of Service: 21 prior fixes. Scrutinize any change in this area.
middleware/session: most-fixed (13 issues). Treat as high-risk during review.
32 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 session middleware accepted arbitrary user-supplied session IDs in cookies instead of validating their existence in backend storage or enforcing server-side generation, allowing session fixation/injection attacks.
CSRF: Flaws in Origin/Referer matching, missing dot separation in subdomain wildcards, and premature deletion of valid tokens historically allowed attackers to bypass CSRF protections across multiple releases.
Cryptographically Weak Pseudo-Random Number Generator (PRNG): Use of non-cryptographically secure UUID generators for session identifiers allowed session hijacking through prediction of session IDs. Additionally, silent failure of crypto/rand under low entropy could lead to security degradation.