Zero-day vulnerability in PyBitmessage

Remote code execution

The vulnerability was used in the wild against PyBitmessage v0.6.2 users. According to vendor's notice, Bitmessage developer Peter ┼аurda's Bitmessage addresses were compromised as well by the attackers.

Vulnerability details

Advisory: SB2018021404 - Remote code execution in PyBitmessage

Vulnerable component: PyBitmessage

CVE-ID:

CVSSv3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H/RL:O/RC:C

CWE-ID: CWE-20 - Improper input validation

Description:

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to a message encoding bug. A remote attacker can send a specially crafted message, run an automated script looking in ~/.electrum/wallets, open a remote reverse shell, gain access to other files and execute arbitrary code.

Successful exploitation of the vulnerability results in system compromise.

Note: the vulnerability has been actively exploited to create a remote shell and steal bitcoins from Electrum wallets.