Security context

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

kataras/iris
main @ 4291456
36
Fixes
8
CVEs
CRITICAL
Peak severity
Highlights
Denial of Service: 9 prior fixes. Scrutinize any change in this area.
context/context.go: most-fixed (10 issues). Treat as high-risk during review.
13 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.

Path Traversal: The 'UploadFormFiles' and 'SaveFormFile' mechanisms have repeatedly failed to properly canonicalize and validate user-controlled filenames, leading to multiple bypasses of directory boundaries. Unsafe use of filepath.Join and incomplete sanitization previously allowed arbitrary file writes outside the intended target directories.
Denial of Service: The session manager and associated providers (memory and Redis) have suffered from numerous concurrency bugs. Concurrent read/write access to shared internal structures (such as session value maps) routinely triggered runtime panics and thread-safety crashes under normal web load.
Auth Bypass: Incorrect comparison of binary IP structures to strings in `IPInRange` and host-matching issues allowed unauthorized network access by incorrectly validating client ranges or local loopbacks.