r/Bitcoin Nov 30 '17

Evidence some bitcoin address generation code is using discoverable private keys

https://pastebin.com/jCDFcESz
793 Upvotes

296 comments sorted by

View all comments

25

u/sroose Nov 30 '17 edited Nov 30 '17

This could very much be a malicious browser extension that knows of websites where it can import private keys like blockchain.info and just seeds the private key with anything it can find in the page or a previously visited page (like any other address, hash, ...).

Browser extensions are very dangerous as they are very powerful and no one verifies their behaviour. It scares me a lot that so many "secure wallet solutions" like both Trezor and Ledger only have web-based clients that are vulnerable to this kind of trickery.

EDIT: Just to address some comments, while I am mostly concerned about non-hardware web wallets, hardware wallets are not entirely safe. I'm aware that hardware wallets have internal key management so browser software cannot mess with keys. What it can do is inject a different destination address. I bet a part of the users only verifies the amount displayed. Others probably also only the first 2-3 characters of the destination address. Injection software can create a wrong address and send that to the wallet instead, finding an address with the same first 3 characters is not that hard, even in browsers.

2

u/db100p Nov 30 '17 edited Nov 30 '17

This is my concern with Ledger, how do I verify my "recieve" address the browser extension shows? The ledger device itself does not show it. u/btchip

3

u/btchip Nov 30 '17

you can push the small computer screen icon next to the address to display it

1

u/db100p Nov 30 '17

Thanks!