AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 23 Bitcoin

rpc: Add exportasmap RPC

Public commit record

What the developer wrote

Authored by Fabian Jahr

28/100 · Opaque
rpc: Add exportasmap RPC
✓ Subject identifies a change! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a new Bitcoin Core RPC command called exportasmap. It lets a user with RPC access write a copy of the built-in network-mapping database (the ASMap file) to a file on the node's disk. The file path is relative to the node's data directory, cannot escape it, and any existing file at that path is overwritten. It is a straightforward export feature with no obvious code-level security bug, but it does add another way for an authenticated RPC user to write files on the server, which is normally a capability reserved for trusted administrators.

Recommended action

No immediate action required. Operators should ensure RPC access is limited to trusted users, as with all Bitcoin Core RPC commands. Reviewers may want to confirm that fsbridge::AbsPathJoin correctly prevents path traversal outside the datadir and that the overwrite behavior is acceptable.

Security signals we found

01

New RPC that writes to filesystem under datadir

02

Existing file at target path is overwritten

03

Path is restricted to datadir via fsbridge::AbsPathJoin

04

No input sanitization beyond filesystem abstraction

05

Fuzz harness explicitly excludes command as disk-write unsafe

Risk score

Why this scored 23/100

Our methodology →
Potential impact 2/30
Exploitability 3/25
Stealth signal 2/15
Affected reach 4/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.