Parity Ethereum Client Overly Permissive Cross-domain Whitelist JSON-RPC vulnerability
The Parity Ethereum client's JSON-RPC interface had an overly permissive CORS whitelist (set to '*'), allowing any website to send cross-origin requests. An attacker could trick a victim into visiting a malicious site, which then read sensitive data such as account addresses, balances, peer lists, and RPC settings from the local node.
Originally disclosed on Cisco Talos
An exploitable overly permissive cross-domain (CORS) whitelist vulnerability exists in JSON-RPC of Parity Ethereum client version 1.7.8. An automatically sent JSON object to JSON-RPC endpoint can trigger this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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
The JSON-RPC server's CORS whitelist was set to '*' by default, allowing any origin to make cross-domain requests.
Impact
An attacker could leak sensitive data such as existing account addresses and balances, connected peers, RPC settings, and version info; if certain APIs are enabled, they could also modify accounts and settings.
What the attacker needed
Victim runs Parity with default JSON-RPC settings; Victim visits a malicious website
The fix
The JSON-RPC interface should be configured to block or restrict cross-origin requests, for example by not using a wildcard CORS whitelist.
How it was found
- Start the Parity client, which runs a JSON-RPC server on localhost:8545.
- Visit a malicious website that sends a cross-origin POST request to the JSON-RPC endpoint.
- The server responds with an Access-Control-Allow-Origin header matching the attacker's origin.
- The browser then sends the actual JSON-RPC request, and the response containing account information is readable by the malicious page.
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.
CORS is a browser security feature that normally stops one website from reading data from another. Here, the Parity wallet program running on a user's computer accepted requests from any website, so a malicious page could quietly ask it for private information like which Ethereum accounts exist and their balances.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.