CVE-2023-39910
"Libbitcoin Explorer Weak Entropy Seeding Mechanism Allows Private Key Recovery"
Description
The cryptocurrency wallet entropy seeding mechanism used in Libbitcoin Explorer 3.0.0 through 3.6.0 is weak, aka the Milk Sad issue. The use of an mt19937 Mersenne Twister PRNG restricts the internal entropy to 32 bits regardless of settings. This allows remote attackers to recover any wallet private keys generated from "bx seed" entropy output and steal funds. (Affected users need to move funds to a secure new cryptocurrency wallet.) NOTE: the vendor's position is that there was sufficient documentation advising against "bx seed" but others disagree. NOTE: this was exploited in the wild in June and July 2023.
INFO
Published Date :
Aug. 9, 2023, 3:15 a.m.
Last Modified :
Nov. 21, 2024, 8:16 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2023-39910 has a 3 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-39910
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Wallet entropy is based on a weak PRNG with an initial state of 31 bits and seeded with an easy-to-guess time value. This makes all wallets generated with the vulnerable application version susceptible to remote brute force, just like the weak bx seed mechanism in Libbitcoin. It is commonly used in brainflayer, keyhunt, BitCrack, VanitySearch, etc.
C++
Milk Sad vulnerability in the Libbitcoin Explorer 3.x library, how the theft of $900,000 from Bitcoin Wallet (BTC) users was carried out
bitcoin bitcoin-wallet blockchain-explorer cryptocurrency cryptography hacker hacking libbitcoin mersenne-twister prng vulnerability
Jupyter Notebook Python JavaScript
Milk Sad vulnerability
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-39910
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-39910
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/libbitcoin/libbitcoin-explorer/blob/20eba4db9a8a3476949d6fd08a589abda7fde3e3/src/commands/seed.cpp#L44 Added Reference https://github.com/libbitcoin/libbitcoin-explorer/blob/20eba4db9a8a3476949d6fd08a589abda7fde3e3/src/utility.cpp#L78 Added Reference https://github.com/libbitcoin/libbitcoin-explorer/wiki/CVE-2023-39910 Added Reference https://github.com/libbitcoin/libbitcoin-system/blob/a1b777fc51d9c04e0c7a1dec5cc746b82a6afe64/src/crypto/pseudo_random.cpp#L66C12-L78 Added Reference https://milksad.info/disclosure.html Added Reference https://news.ycombinator.com/item?id=37054862 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Sep. 07, 2023
Action Type Old Value New Value Added Reference https://github.com/libbitcoin/libbitcoin-explorer/wiki/CVE-2023-39910 [No Types Assigned] -
Initial Analysis by [email protected]
Aug. 22, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Changed Reference Type https://github.com/libbitcoin/libbitcoin-explorer/blob/20eba4db9a8a3476949d6fd08a589abda7fde3e3/src/commands/seed.cpp#L44 No Types Assigned https://github.com/libbitcoin/libbitcoin-explorer/blob/20eba4db9a8a3476949d6fd08a589abda7fde3e3/src/commands/seed.cpp#L44 Third Party Advisory Changed Reference Type https://github.com/libbitcoin/libbitcoin-explorer/blob/20eba4db9a8a3476949d6fd08a589abda7fde3e3/src/utility.cpp#L78 No Types Assigned https://github.com/libbitcoin/libbitcoin-explorer/blob/20eba4db9a8a3476949d6fd08a589abda7fde3e3/src/utility.cpp#L78 Third Party Advisory Changed Reference Type https://github.com/libbitcoin/libbitcoin-system/blob/a1b777fc51d9c04e0c7a1dec5cc746b82a6afe64/src/crypto/pseudo_random.cpp#L66C12-L78 No Types Assigned https://github.com/libbitcoin/libbitcoin-system/blob/a1b777fc51d9c04e0c7a1dec5cc746b82a6afe64/src/crypto/pseudo_random.cpp#L66C12-L78 Third Party Advisory Changed Reference Type https://milksad.info/disclosure.html No Types Assigned https://milksad.info/disclosure.html Third Party Advisory Changed Reference Type https://news.ycombinator.com/item?id=37054862 No Types Assigned https://news.ycombinator.com/item?id=37054862 Third Party Advisory Added CWE NIST CWE-338 Added CPE Configuration OR *cpe:2.3:a:libbitcoin:libbitcoin_explorer:*:*:*:*:*:*:*:* versions from (including) 3.0.0 up to (including) 3.6.0
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-39910
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-39910
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.22 }} 0.05%
score
0.45070
percentile