A dark hand reaches from a webpage toward a Bitcoin Lightning server as a yellow barrier blocks incoming browser requests.
Image by CryptoSlate

Eclair patches a browser attack that could send commands to your Lightning node

The Oct. 15 release blocks a cached-authentication route to Eclair's API and requires direct browser interfaces to add a backend.

Quick Take

  1. Eclair v0.14.4 rejects API requests carrying an Origin header, blocking a browser route to authenticated node commands.
  2. The exposure requires an enabled API reachable by the operator's browser, with HTTP Basic credentials already cached.
  3. Direct browser interfaces now need a backend; ordinary command-line access continues, with authentication and loopback restrictions still essential.

Eclair, ACINQ's Bitcoin Lightning node software, released v0.14.4 on Oct. 15 to block malicious webpages from issuing authenticated node commands through an operator's browser.

The exposure depends on an enabled Eclair API that the operator's browser can reach, with HTTP Basic authentication already cached in that browser. Eclair's node API can read node state, open and close channels, and send and receive payments.

Related Reading

Unpatched Eclair Bitcoin Lightning nodes could crash again every time they restart

Eclair's v0.14.4 release notes explain how cached authentication lets a malicious webpage submit a plain HTML form to the node's API. The browser attaches the saved credentials automatically. The attacker cannot read the response, but the authenticated command still reaches the node.

Eclair v0.14.4 explainer: an enabled browser-reachable API and cached Basic authentication can permit forged form commands; Origin-bearing requests now receive HTTP 403, browser interfaces need a backend, and authentication plus loopback binding remain essential.

Browser interfaces need a backend

The patch returns HTTP 403 before the API route runs whenever a request carries an Origin header, regardless of its value.

The restriction also affects legitimate browser interfaces, including those hosted at the same origin as the API. Those frontends now need an intermediary backend between the browser and Eclair.

Related Reading

Core Lightning patches critical security flaws and a Bitcoin payment bug

Ordinary command-line access continues. The maintainers say curl and eclair-cli do not send the Origin header, so their normal API requests are unaffected.

The Origin check still leaves authentication and network restrictions essential. A non-browser client can omit the header, so its absence does not establish that a request is authorized. Eclair maintainer pm47 says the API should remain bound to loopback, restricting network access to the local machine.

The browser fix merged on Sept. 15 in pull request #3380 and is included in v0.14.4 alongside the funding-fee and signer repairs CryptoSlate covered on Oct. 12.

Related Reading

Eclair merges fixes for Lightning flaws that could burn Bitcoin in fees

Maintainers recommend upgrading and say operators can stop Eclair, install the update and restart without closing their Lightning channels.

Article context

Mentioned in this article

Related Asset Bitcoin #1 BTC $81,398.99 24-hour change: down 0.65% Loading price history… 24H Down 0.65% 7D Down 1.67% 30D Up 6.39%