Security context

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

mongodb/kingfisher
main @ 78904df
22
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Denial of Service: 10 prior fixes. Scrutinize any change in this area.
crates/kingfisher-scanner/src/validation/http_validation.rs: most-fixed (5 issues). Treat as high-risk during review.
6 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.

SSRF: The scanner resolves external addresses and handles HTTP validation. Multiple bypasses involved improper handling of IPv4-mapped IPv6, local host loops, and late-stage DNS resolution after preflight checks. Developers must use comprehensive IP validation that acts on post-resolved addresses.
Denial of Service: String truncation on invalid UTF-8 character boundaries consistently triggers Rust panics, causing immediate denial of service. Safe slicing and truncation must verify byte boundaries prior to operation.
Auth Bypass: Flaws in JWT signature verification allowed validation bypasses. The implementation failed to explicitly reject the 'none' algorithm and did not mandate the 'iss' claim by default.