etherchain-light icon indicating copy to clipboard operation
etherchain-light copied to clipboard

Insecure Credential Storage

Open larrycameron80 opened this issue 6 years ago • 0 comments

Insecure Credential Storage Vulnerable module: web3 Introduced through: [email protected] Detailed paths Introduced through: etherchain-light@gobitfly/etherchain-light#0163743bbd61c33ad71cb238ca4ea900fa922710 › [email protected][email protected] Overview web3 is a JavaScript API which connects to the Generic JSON RPC spec.

Affected versions of this package are vulnerable to Insecure Credential Storage. The current implementation of web3.js could result in wallet decryption under certain circumstances. When a wallet is saved and encrypted into local storage, a private key is needed to load the wallet. However, this private key is available via LocalStorage and is readable in plaintext on a webpage after a wallet is loaded.

This implementation could be abused by an attacker through client-side attacks such as Cross-site Scripting (XSS) and could result in theft of a user's wallet private key.

larrycameron80 avatar Sep 17 '19 02:09 larrycameron80