原始文献 / 论坛帖 / Warning: don't use -server or bitcoind where you web browse (v0.3.2 and lower)

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

Bitcointalk · 2010-07-19 16:01:38 UTC

AuthorSatoshi Nakamoto
TitleWarning: don't use -server or bitcoind where you web browse (v0.3.2 and lower)
Date2010-07-19 16:01:38 UTC
ForumBitcointalk · 原文

不要在你用网页浏览器的机器上用 -server 或 -daemon 开关,也不要运行 bitcoind。它会在 127.0.0.1(本地回环地址)上打开 8332 端口,你可能觉得浏览器没法跨站访问它,但其实是可以的。

我们正在准备一个给 JSON-RPC 接口加密码的新版本,但在那之前,避免用 -server 开关,也不要在运行 bitcoind 的同一台机器上上网。

更新:
0.3.3 的 JSON-RPC HTTP 认证功能解决了这个问题。

英文原文

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.