Bitcoin Forum
December 06, 2025, 05:37:29 AM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Critical Vulnerability in Elliptic-PHP Library, That Can Lead to Loss of Funds  (Read 14 times)
PHPProg (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 05, 2025, 10:19:47 AM
 #1

SUMMARY: insufficient entropy in PRNG initialization procedure in 'elliptic-php' library (https://github.com/simplito/elliptic-php) can lead to leakage of keys. Users SHOULD IMMEDIATELY MOVE FUNDS from wallets, generated by this library or its forks.
DETAILS: Vulnerability contains in fallback implementation of random_int function in file https://github.com/simplito/elliptic-php/blob/master/lib/Utils.php if (!function_exists("random_int")) { function random_int($a, $b) { return rand($a, $b); } }

random_int function is used to initialize HMAC DRBG, which is used directly to generate private keys. When library executed on old versions of PHP, where random_int function is not implemented, it substituted by insecure rand/mt_rand PHP built-in functions. Since rand/mt_rand PRNGs have only 32 bits of initial entropy, attacker can predict initial state of HMAC DRBG and regenerate all sequence of private keys.

Today confirmed that BTC, ETH, BNB and TRX chains are affected. But this vulnerability need to further research.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!