Security context

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

koding/kite
master @ baa1a54
18
Fixes
2
CVEs
CRITICAL
Peak severity
41.2%
Coverage
Highlights
Auth Bypass: 8 prior fixes. Scrutinize any change in this area.
kite.go: most-fixed (2 issues). Treat as high-risk during review.
7 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: Concurrent requests mutating a shared Client.Kite.Username pointer allowed the username validation controls to be bypassed. Additionally, failing to explicitly check the parsed token.Valid flag allowed forged JWTs to bypass authentication.
Auth Bypass: JWT parsing did not restrict cryptographic signature validation to the expected RSA algorithm, exposing the platform to algorithm switching bypasses. JWT validation also failed to enforce trust-boundary constraints, such as validating the issuer's identity.
Denial of Service: A lack of synchronization on shared maps (such as kontrol.clients, s.callbacks, and p.kites) led to concurrent write panics and process crashes under load.