You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rtl: the web UI is plain HTTP, so a local user who takes its port while RTL is down can collect the password #262
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
rtl: pin the TLS certificates of lnd and clnrest (#258)