NewsCryptoLNbits Security Update Rotates Login Keys but Cannot Revoke Leaked Credentials

LNbits Security Update Rotates Login Keys but Cannot Revoke Leaked Credentials

Author: Coindoo·

Key Takeaways

  • •LNbits disclosed the vulnerability on November 8, first instructing operators to disable the Paywall extension and, within hours, to shut servers down entirely while taking its own hosted instances offline.
  • •Version 1.7.0, released November 10, is the first fixed release, and the project says every earlier version is affected with funds at risk; creator Ben Arc confirmed both the project and its users lost money.
  • •Version 1.7.1, released November 11, rotates the authentication signing key and logs out session tokens, but it does not reset wallet Admin and Invoice keys, funding-source credentials, or app and device connections.
  • •Revocation must happen at the system that validates each credential — for example, rotating the LND root key — because deleting a credential from the LNbits side does not invalidate copies an attacker already holds.
  • •LNbits has promised a separate report explaining how the exploit worked, leaving the mechanism undisclosed while its recovery notice assumes the worst case that every stored secret was exposed.
LNbits Security Update Rotates Login Keys but Cannot Revoke Leaked Credentials

The warning is LNbits' own: its November 10 security notice says credentials exposed before the upgrade may still give an attacker access afterwards. For readers new to the project, LNbits is open-source software that runs wallets on top of a Lightning node, whether self-hosted or reached through a hosted instance.

The vulnerability was found on November 8. LNbits' first public instruction that day was to disable the Paywall extension; within hours, it told operators to shut their servers down entirely and took its own hosted instances offline. Version 1.7.0 followed on November 10, and the notice says every earlier version is affected and funds on them are at risk. Creator Ben Arc has said both the project and its users lost money. LNbits has promised a separate report on how the exploit worked, so the mechanism is still undisclosed, and nothing in this article should be read as describing it.

Version 1.7.1 arrived on November 11. Its release note is a single line, “Rotates auth keys”, with a link back to the recovery notice. The package notes from Start9, which ships LNbits for its StartOS servers, spell out what that means: the authentication signing key is replaced, existing login sessions stop working, and operators still have to reset wallet keys, replace funding-source credentials and reconnect apps and extensions. In Start9's words, updating alone cannot remove access.

So the update deals with one credential: the key the server uses to sign logins. An attacker holding a session token is logged out. An attacker holding anything else is not.

Three Credentials the Update Does Not Touch

An LNbits deployment runs on three kinds of secret, and each is checked by a different system.

Wallet keys

Every LNbits wallet has an Admin key and an Invoice key. The Admin key can send payments and manage the wallet; the Invoice key can create invoices and read balances and payment history but cannot spend. A copied Admin key is a spending problem. A copied Invoice key is a privacy problem: it shows an outsider exactly how much a wallet holds and when it gets paid. Either key stays valid until the operator resets it from inside LNbits.

Funding-source credentials

LNbits does not hold bitcoin itself. Its architecture tracks balances internally and hands the actual payments to a connected backend: an LND or Core Lightning node, Phoenixd, or one of the other supported funding sources. The credential for that connection lives in LNbits' settings, and the notice tells operators to treat everything stored there as compromised. Resetting a wallet key does nothing to it, and neither does 1.7.1.

App and device connections

Anything that talks to a wallet from outside carries its own connection string: point-of-sale and terminal extensions such as TPOS, Bleskomat and FOSSA, Bolt Card NFC cards, and wallet-app bridges such as LNDHub and the NWC (Nostr Wallet Connect) provider. The notice lists these for review and recreation. Each one was issued a credential at setup time, and that credential remains in whatever file, card or phone it was written to until the connection is recreated.

Why Deleting a Key Is Not the Same as Revoking It

The funding-source layer is where the recovery goes wrong most easily, because the credential is validated by the node, not by LNbits. Lightning Labs' documentation for LND macaroons, the bearer credentials that authorise node operations, makes the point directly: deleting the macaroon file from disk does not revoke a copy someone else already has. The node keeps accepting it, because the node checks the macaroon against a root key, and the root key has not changed.

Revocation means acting on that root key. Deleting a root-key ID invalidates every macaroon derived from it at once — the attacker's copy, and also the ones issued to any other service that was using the same root key. An operator who rotates it without first listing those services will find out which ones they forgot when each stops authenticating.

Other backends have their own equivalents: Core Lightning runes, that backend's own command-authorisation tokens, and API keys on hosted providers. The same test applies to all of them: has the system that validates the credential been told to reject the old one, or has the old one merely been removed from the LNbits side?

The Order of Recovery

The notice recommends a fresh server where compromise is suspected, with logs and records from the old one preserved first. The reason is simple: a replacement credential pasted into a server the attacker still controls is a replacement credential the attacker now has. That fixes the sequence:

  1. Copy logs, database and records off the old server for the investigation, then stop it.
  2. Build a clean server and install 1.7.1 before anything else runs on it.
  3. Revoke at the backend: rotate the LND root key, rune or provider API key, and only then issue a new credential to LNbits.
  4. Reset the Admin and Invoice keys of every wallet.
  5. Recreate each app, card and terminal connection that is still needed, and leave the rest deleted.
  6. Test the old credentials, not just the new ones: a request signed with a retired Admin key or an old macaroon should be refused.

The delay between a credential being copied and funds moving is the same pattern Coindoo described in crypto theft that begins months before the money disappears. The difference here is that an API credential can be revoked; a leaked seed phrase can only be abandoned.

If You Use Someone Else's LNbits

A user on a hosted instance cannot rebuild the server or rotate the node's keys. What they can do is ask three questions: which version the instance is running — the notice puts funds on every version released before 1.7.0 at risk, and 1.7.1 is the current release — whether their wallet's Admin and Invoice keys have been reset since the upgrade, and which of their connected apps or cards need to be set up again. If the operator cannot answer the second question, the wallet is in the same position it was in before November 10.

What the Exploit Report Will Settle

LNbits' promised report should answer which of the three layers the attackers reached and how. Until it lands, the recovery notice is written for the worst case — every stored secret exposed — and an operator who has worked through the list above has done what the project asked. One who has only updated has closed the door the attackers came through and left every key they picked up on the way still working.