Skip to content
CORS Advisory Intermediate CVE-2017-14460

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.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 7.5 View original

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.

Marcin 'Icewall' Noga, on Cisco Talos

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

  1. Start the Parity client, which runs a JSON-RPC server on localhost:8545.
  2. Visit a malicious website that sends a cross-origin POST request to the JSON-RPC endpoint.
  3. The server responds with an Access-Control-Allow-Origin header matching the attacker's origin.
  4. 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.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

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.