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.
- 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)
- run monerod
- visit http://bugbound.co.uk/test42/bert.html for POC (html form)
- 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
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
- Run the monerod daemon.
- Open the proof-of-concept HTML form page in a browser.
- 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.