Security context

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

rwf2/rocket
master @ 3a54d07
18
Fixes
2
CVEs
HIGH
Peak severity
43.8%
Coverage
Highlights
Denial of Service: 5 prior fixes. Scrutinize any change in this area.
core/http: most-fixed (2 issues). Treat as high-risk during review.
10 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.

Denial of Service: Slow-loris style TLS handshakes can trivially lock server threads, and unconstrained request streams can exhaust system resources. Mandatory data limits and half-close connection management are necessary to mitigate these vectors.
Memory Safety: Unsafe raw pointer cloning in LocalRequest led to aliased mutable references and data races, allowing concurrent threads to violate Rust's memory safety guarantees.
Path Traversal: Inadequate percent-decoded segment validation and unsafe path joining can let attackers traverse out of the intended root directory via FromSegments implementations.