Satoshi Forum Archive
Thread #0258

Bitcoin and buffer overflow attacks

da2ce72010-12-11T05:49:22Z

I am convinced that the foundation of bitcoin (ie. the block chain) is secure from any non-nationally funded attack. The only attack that makes me scared is a buffer overflow attack that steals the private keys in the wallet, however doesn't spend them.
If a significantly large attack happens to the block chain, we can always make a new branch that doesn't include the attack; with the theft of private keys, there is no easy recovery option, save (in the case of a massive attack), starting the block chain from 0 again.
As I'm not a security expert, I do not know how secure bitcoin is against this sort of attack. However from my non-expert understanding direct to IP address transfers seems like a obvious surface area to attack.
Two questions: what attack areas dose the current bitcoin software have that could enable the theft of bitcoin private keys?
Secondly, what efforts can be taken to minimize the attack surface area of bitcoin?

Original message

grondilu2010-12-11T05:52:40Z

Quote from: da2ce7 on December 11, 2010, 05:49:22 AM (https://bitcointalk.org/index.php?topic=2208.msg29095#msg29095)

I am convinced that the foundation of bitcoin (ie. the block chain) is secure from any non-nationally funded attack. The only attack that makes me scared is a buffer overflow attack that steals the private keys in the wallet, however doesn't spend them.
If a significantly large attack happens to the block chain, we can always make a new branch that doesn't include the attack; with the theft of private keys, there is no easy recovery option, save (in the case of a massive attack), starting the block chain from 0 again.
As I'm not a security expert, I do not know how secure bitcoin is against this sort of attack. However from my non-expert understanding direct to IP address transfers seems like a obvious surface area to attack.
Two questions: what attack areas dose the current bitcoin software have that could enable the theft of bitcoin private keys?
Secondly, what efforts can be taken to minimize the attack surface area of bitcoin?

I've always thought that the only known possible attacks could allow double spendin or freeze the whole network.
I doubt any attack could steal private keys, apart from conventionnal attacks to the file system.
But I'm not an expert at all.

Original message

da2ce72010-12-11T06:03:38Z

this isn't about protocol attacks, eg double spend and freezing. Rather implementation security weaknesses.

Original message

wumpus2010-12-11T09:59:40Z

There is no way to be absolutely sure that there are no buffer overflow attacks. Although it would help to implement the client in a language that doesn't have buffer overflows because it checks array indices (Python, Java, C#, ...).

Original message

satoshi2010-12-11T13:32:37Z

Quote from: da2ce7 on December 11, 2010, 05:49:22 AM (https://bitcointalk.org/index.php?topic=2208.msg29095#msg29095)

direct to IP address transfers seems like a obvious surface area to attack.

If you ever find anyone who turned it on. It's disabled by default.

Quote from: witchspace on December 11, 2010, 09:59:40 AM (https://bitcointalk.org/index.php?topic=2208.msg29124#msg29124)

There is no way to be absolutely sure that there are no buffer overflow attacks. Although it would help to implement the client in a language that doesn't have buffer overflows because it checks array indices (Python, Java, C#, ...).

It's all STL. There are almost no buffers.

Original message