Hack Forums
Bitcoin wallet.dat extraction from bitcoin binary crash dumps - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Money (https://hackforums.net/forumdisplay.php?fid=241)
+--- Forum: Crypto Currency (https://hackforums.net/forumdisplay.php?fid=380)
+--- Thread: Bitcoin wallet.dat extraction from bitcoin binary crash dumps (/showthread.php?tid=6195924)



Bitcoin wallet.dat extraction from bitcoin binary crash dumps - oxagast - Mar 3, 2022

My write-up on how CVE-2019-15947 works; a way to extract bitcoin wallet.dat files from crash dumps.  Working on a way to extract the encrypted wallet.dat from bitcoin-qt crash dumps, but that is going to be quite a bit more involved.  The private key is stored in memory so bitcoin-qt itself can read the plaintext wallet, so it should be possible.  This code however is designed to work on unencrypted wallets. 

The writeup: https://oxagast.org/posts/CVE-2019-15947-bitcoin-wallet-dat-core-dumps-design-flaw/

Here is the GitHub issue thread on the vulnerability:  https://github.com/bitcoin/bitcoin/issues/16824

The full exploit: https://github.com/oxagast/oxasploits/blob/master/exploits/CVE-2019-15947/makeitrain.sh

Thanks, and let me know how you like it!
oxagast


RE: Bitcoin wallet.dat extraction from bitcoin binary crash dumps - Abraham - Jun 20, 2022

This is really great work, good job on this exploit.


RE: Bitcoin wallet.dat extraction from bitcoin binary crash dumps - _daniel - Jun 20, 2022

Nice work. I noticed you shared in your blog post that you work a day job in fast food. Why don't you try this across different blockchain projects bug-bounty programs? I'm sure other software implementations would be vulnerable to similar exploits, and a lot of these projects pay big for responsible disclosure.


RE: Bitcoin wallet.dat extraction from bitcoin binary crash dumps - rabbi - Jun 20, 2022

Great write up. Consider hosting your site for free with GitHub Pages.