Security context

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

janoside/btc-rpc-explorer
master @ 26e282a
7
Fixes
0
CVEs
HIGH
Peak severity
66.7%
Coverage
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
routes/baseActionsRouter.js: most-fixed (3 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.

Auth Bypass: The RPC terminal and administrative browser endpoints are highly attractive targets. Historically, access relied on easily spoofed IP whitelists and lacked rigorous normalization checks, allowing attackers to bypass command blacklists and execute unauthorized RPC operations.
Command Injection: Environment variables (specifically BTCEXP_OLD_SPACE_MAX_SIZE) were concatenated directly into Node/V8 startup arguments. Failing to enforce strict integer parsing allowed attackers who control the environment configuration to inject arbitrary V8 engine flags.
CSRF: State-modifying endpoints and critical RPC commands could be triggered via cross-site requests due to a complete absence of anti-CSRF token validation on sensitive HTTP request pathways.