Skip to content

rtl: the web UI is plain HTTP, so a local user who takes its port while RTL is down can collect the password #262

Closed

Description

@ostermayer

Follow-up to #151. #258 covers RTL's connections to its backends. RTL's own web UI is still plain HTTP.

What I found

RTL's web UI listens on services.rtl.address and port (127.0.0.1:3000 by default) over plain HTTP, with one shared password. Both ports are unprivileged. Without netns-isolation, any local user can bind RTL's port while RTL is down.

Since #250, RTL stops each time lnd or clightning stops, for example during a backend's maintenance. So RTL's port is free more often than before.

Attack

A local unprivileged user waits for RTL to stop, binds 127.0.0.1:3000 and serves a copy of RTL's login page. The operator connects over the SSH tunnel from the docs and types the password. The attacker now has the RTL password and, once RTL is back, full control of the node through RTL.

Fix

  • Serve RTL's UI over TLS with a certificate that the operator can check, or on a unix socket that only RTL and the operator can reach. RTL may need a small wrapper for either.
  • Until then, document that netns-isolation blocks this. RTL then listens on its own namespace's address, and a process in the host namespace can't take it over. viberaven suggested this sentence in the review of rtl: pin the TLS certificates of lnd and clnrest #258.

Activity

  1. added
    type: security
    area: modules
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: modulestype: security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions