Security context

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

mimblewimble/grin
master @ e4c4a38
30
Fixes
4
CVEs
CRITICAL
Peak severity
71.4%
Coverage
Highlights
Auth Bypass: 15 prior fixes. Scrutinize any change in this area.
chain: most-fixed (7 issues). Treat as high-risk during review.
21 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: The chain validation process historically suffered from several flaws where consensus rules could be bypassed, including incorrect verification of duplicate transaction kernels and spending immature coinbase outputs. Developers must strictly enforce chronological validation and correct PMMR sizing checks.
Path Traversal: Multiple path traversal flaws (such as CVE-2019-9195) occurred in zip extraction when processing txhashset sync archives. Arbitrary file writes can lead to remote code execution. Path sanitization, canonicalization, and strict explicit file allowlists must be enforced during extraction.
Auth Bypass: Incomplete transaction slate building allowed participant signatures to be entirely skipped during validation due to unsafe unwrapping of option fields. This allowed transactions to be processed with missing signatures.