Security context

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

ipfs/kubo
master @ 84f5f30
150
Fixes
0
CVEs
CRITICAL
Peak severity
52.6%
Coverage
Highlights
Denial of Service: 77 prior fixes. Scrutinize any change in this area.
core/commands: most-fixed (12 issues). Treat as high-risk during review.
31 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: The HTTP API command handlers are highly vulnerable to resource exhaustion and daemon crashes (nil-pointer dereferences or concurrent map access) due to unvalidated inputs and missing context cancellation checks on client disconnects. This is evidenced by numerous fixes targeting missing context cancellations and unbuffered channel writes.
Auth Bypass: Unauthorized access of administrative commands and mutable DAG actions via the read-only HTTP Gateway or API endpoints. Commands like `dag export`, `dag get`, and `refs` subcommands historically leaked across port configurations or bypassed read-only restrictions.
Cryptographic Issues: Bypasses in IPNS record verification occurred where nodes failed to validate that the record's public key matched the expected IPNS Name, or failed to enforce signatures on offline records, allowing spoofing.