A bug in the Copay and BitPay apps enables a hacker to steal Bitcoins
- The library loading the malicious code is identified as Event-Stream.
“Currently we have only confirmed that the malicious code was deployed on versions 5.0.2 through 5.1.0 of our Copay and BitPay apps. However, the BitPay app was not vulnerable to the malicious code. We are still investigating whether this code vulnerability was ever exploited against Copay users” BitPay said in a press release.
Once the malicious code was injected into the app, the hacker could steal users’ wallet information, including private keys. Later, the hacker sent the stolen keys to the copayapi[.]host using port 8080.
The BitPay team has urged its customers to stop running the affected apps on their devices. An updated version - 5.2.0 - has been released, addressing the vulnerability.
“In the meantime, if you are using any Copay version from 5.0.2 to 5.1.0, you should not run or open the app. A security update version (5.2.0) has been released and will be available for all Copay and BitPay wallet users in the app stores momentarily,” said BitPay.
In addition, the malicious Event-Stream v3.3.6 has also been taken down from npm.org to prevent further spread of attack. Existing Copay and BitPay users have been asked to updated their wallets to version 5.0.2 before moving their funds.
“Users should not attempt to move funds to new wallets by importing affected wallets' twelve-word backup phrases (which correspond to potentially compromised private keys). Users should first update their affected wallets (5.0.2-5.1.0) and then send all funds from affected wallets to a brand new wallet on version 5.2.0, using the Send Max feature to initiate transactions of all funds,” said the BitPay team.