Satoshi Forum Archive
Thread #0124

Warning: don't use -server or bitcoind where you web browse (v0.3.2 and lower)

satoshi2010-07-19T16:01:38Z

Don't use the -server or -daemon switch or run bitcoind on a machine where you use a web browser. It opens port 8332 on 127.0.0.1, the local loopback address, and you wouldn't think that web browsers could cross-site access it, but it is possible.
We're working on a release soon that puts a password on the JSON-RPC interface, but until then, avoid using the -server switch, and don't web browse on the same machine where bitcoind is running.
Update:
The JSON-RPC HTTP authentication feature in 0.3.3 solves this problem.

Original message

Quantumplation2010-07-19T16:03:41Z

satoshi: How many other developers do you have working with you?
Martin (another forum member and I) were talking about writing a .Net compatible library for integrating bitcoins into other programs.

Original message

franzl2010-07-20T11:07:52Z

Quote from: Quantumplation on July 19, 2010, 04:03:41 PM (https://bitcointalk.org/index.php?topic=479.msg4265#msg4265)

Martin (another forum member and I) were talking about writing a .Net compatible library for integrating bitcoins into other programs.

I think this is a very good idea! I also think it's important to have a PHP library since this is an important programming language for e-commerce sites. It would help a great deal in acceptance of bitcoin as a currency.

Original message

Quantumplation2010-07-20T16:59:46Z

Franzl: >_> I abhor PHP, so I can't help you there, but some day (Completely overwhelmed with projects right now, but some day...) we might write the .net library.

Original message

Axcella2010-07-20T18:52:45Z

this is the only computer i have at present i am working on getting a standalone for the bit coin program until then how do i retain the kash if the connection is lost?

Original message

fresno2010-07-21T01:42:34Z

Quote

Don't use the -server or -daemon switch or run bitcoind on a machine where you use a web browser. It opens port 8332 on 127.0.0.1, the local loopback address, and you wouldn't think that web browsers could cross-site access it, but it is possible.

This sounds like something I would not like to have happen, but what does it mean? Let's face it, we're ALL generating Bitcoins on everything we can get hold of. What is the potential damage, in language my Mom might understand?

Original message

sirius2010-07-21T05:53:31Z

Quote from: fresno on July 21, 2010, 01:42:34 AM (https://bitcointalk.org/index.php?topic=479.msg4602#msg4602)

Quote

Don't use the -server or -daemon switch or run bitcoind on a machine where you use a web browser. It opens port 8332 on 127.0.0.1, the local loopback address, and you wouldn't think that web browsers could cross-site access it, but it is possible.

This sounds like something I would not like to have happen, but what does it mean? Let's face it, we're ALL generating Bitcoins on everything we can get hold of. What is the potential damage, in language my Mom might understand?

Malicious websites could have a javascript that steals all your coins.

Original message

Gavin Andresen2010-07-21T15:01:01Z

You can still generate bitcoins, just don't run bitcoind or bitcoin -server or bitcoin -daemon on machine that you use to browse the Web.
As sirius says, if you do you could browse to a website that empties your Bitcoin wallet without your knowledge or permission.

Original message

fresno2010-07-21T15:27:49Z

I'm full of dumb questions today: Are there any other conceivable problems? And would the daemon be protected of it were on a VM and/or chrooted? Thanks.

Original message

Gavin Andresen2010-07-21T16:10:32Z

chroot: won't protect you.
Running as a separate VM: I think will protect you. But I thought browsers wouldn't allow XMLHTTPRequests to "localhost" from web pages fetched from the web, so my advice would be to test it. See if you can talk to the Bitcoin daemon from another VM on the same machine by running "bitcoind getinfo" or "bitcoin getinfo" on the non-bitcoin-vm.

Original message

satoshi2010-07-24T02:29:09Z

The JSON-RPC HTTP authentication feature in 0.3.3 solves this problem.

Original message