Skip to content
CORS Disclosed report Intermediate

remote access to localhost daemon, can issue jsonrpc commands

The monerod daemon did not properly check the Origin or Content-Type headers on its local JSON-RPC interface, so a web page could send commands to it. An attacker could potentially empty a wallet by calling the sendrawtransaction method.

bugbound Follow

Originally disclosed on HackerOne

  • Triaged in 36 days
  • Fixed in 43 days
  • Disclosed after 44 days

NOTE! Thanks for submitting a report! Please replace all the [square] sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to verify and then potentially issue a bounty, so be sure to take your time filling out the report!

Summary: [Remotely use jsonrpc on localhost wallets]

Description: [its possible to execute jsonrpc calls as monerod does not pay strict attention to origin or content-type client headers]

Releases Affected:

  • [monerod] port 18081

Steps To Reproduce:

(Add details for how we can reproduce the issue)

  1. run monerod
  2. visit http://bugbound.co.uk/test42/bert.html for POC (html form)
  3. Click submit and view request/response

Supporting Material/References:

  • List any additional material (e.g. screenshots, logs, etc.)

Impact

potentially empy wallet by calling jsonrpc sendrawtransaction

The original report as published on HackerOne, by bugbound. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the JSON-RPC endpoint accepted cross-origin requests because it did not validate the Origin or Content-Type headers.

Impact

An attacker could potentially empty the wallet by issuing a sendrawtransaction call, though the report only states this as a possibility.

What the attacker needed

Victim runs monerod locally; victim visits attacker page

How it was found

  1. Run the monerod daemon.
  2. Open the proof-of-concept HTML form page in a browser.
  3. Submit the form and observe the request and response.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A cryptocurrency daemon runs a small web service on the user's own machine that accepts commands. Because it did not check where requests came from, any website the user visited could quietly send it commands. That could let an attacker move funds out of the wallet.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

More from Monero

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.