Security context

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

regolith-labs/ore
master @ b21bf68
9
Fixes
0
CVEs
HIGH
Peak severity
80.0%
Coverage
Highlights
Denial of Service: 5 prior fixes. Scrutinize any change in this area.
program/src/mine.rs: most-fixed (5 issues). Treat as high-risk during review.
3 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: Repeated integer overflow panics occur during mining reward calculations when multiplying compounding rates. These calculations must be explicitly cast to u128 and utilize the static base reward rate rather than compounding on mutated values.
Auth Bypass: Inadequate verification of deserialized accounts allows attackers to supply unauthorized proof accounts or bypass check gating on privileged claims, necessitating strict account validation and identity checks.
Auth Bypass: Missing or weak validation of the `config_info` and treasury account identities permits unauthorized account spoofing within the core mining, reset, and upgrade entry points.