Lutron — 1 vulnerability check
noctis ships 1 vulnerability check for Lutron, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Lutron Telnet integration default credentials
| CVE | CVE-2018-11629, CVE-2018-11681, CVE-2018-11682 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | default-credentials — Default credentials |
| Services | telnet |
| Detection | script, set_var, tcp_open, sleep, tcp_send, tcp_close, match · highest QoD 97 |
| Feed | tests/vulnerabilities/lutron/lutron-telnet-default-credentials.yaml |
The Telnet integration interface of a Lutron lighting controller (HomeWorks QS, RadioRA 2, Stanza, QSE-CI-NWK-E / NWK) logged in with a fixed, unchangeable default account (lutron:integration or nwk:nwk2). The check logs in with each account and sends the read-only `?HELP,#ETHERNET` query; it is confirmed when the integration interpreter answers with its help text and a second login with a random password is rejected. When that second login cannot run, the login alone is reported with lower confidence. An unauthenticated attacker on the network gets full control of the integration interface: every load, scene and keypad, and the controller's network settings.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Opens a persistent TCP/TLS socket
- Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Sends
{{acct.user}}on the open socket - Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Sends
{{acct.pass}}on the open socket - Sends
?HELP,#ETHERNETon the open socket - Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- … and 13 more steps — see the feed source below
References:
- https://nvd.nist.gov/vuln/detail/CVE-2018-11629
- https://nvd.nist.gov/vuln/detail/CVE-2018-11681
- https://nvd.nist.gov/vuln/detail/CVE-2018-11682
Feed source — tests/vulnerabilities/lutron/lutron-telnet-default-credentials.yaml
# Lutron lighting controllers — fixed Telnet integration accounts
# (CVE-2018-11629, CVE-2018-11681, CVE-2018-11682).
#
# HomeWorks QS, RadioRA 2, Stanza and the QSE-CI-NWK-E / NWK network interfaces
# expose the Lutron integration protocol over Telnet (TCP/23). The accounts
# lutron:integration and nwk:nwk2 are built in and cannot be changed; once
# logged in, anyone on the network can drive every load and read / change the
# controller's network configuration. (Lutron disputes the CVEs as "lighting
# control, not code execution" — the access is still unauthenticated and total
# over the integration interface.)
#
# Ported from OpenVAS/Greenbone NVT
# 2018/lutron/gb_lutron_homeworks_processor_default_password.nasl
# (OID 1.3.6.1.4.1.25623.1.0.113206, GPL-2.0-only): for each pair, require
# "login:" in the greeting, send the user, require "password:", send the
# password, then report on the "QNET>" prompt or on the answer to
# `?HELP,#ETHERNET` containing "Configures the IP".
#
# Deviations from the NASL (stronger detection, documented in the PR):
# * Two levels of proof. QoD 97: the logged-in integration interpreter
# answered the read-only `?HELP,#ETHERNET` query with its help text
# ("Configures the IP"), which never appears in what we send. QoD 75: only
# the post-login prompt came back (the NASL's QNET> evidence).
# * The prompt match also covers RadioRA 2 / Caseta Pro ("GNET>") and the
# QSE-CI-NWK-E interface ("QSE>"), not only HomeWorks QS ("QNET>").
# * Accept-any-password guard: after a successful login, a second login with
# the same user and a random password is made; when it also reaches the
# prompt / help text (honeypot, broken login), the feed reports nothing.
# The control is fail-closed: QoD 97 needs a control that demonstrably ran
# (login and password prompts seen) and waited as long as the default
# login for its answer; a control that could not run (2nd connection
# refused) leaves the finding at QoD 75.
# * Late greeting: a controller whose "login:" prompt misses the first read
# is still tested (wait, then read again) instead of being skipped.
#
# Nothing is changed on the device: `?HELP` is a read-only query. At most one
# wrong-password login (the control) is made, and only after a default login
# already worked. category: default-credentials so operators can exclude
# credential logins.
uid: 87cfb379-4fbb-49d0-b7be-738325d0bc78
name: "Lutron Telnet integration default credentials (CVE-2018-11629, CVE-2018-11681, CVE-2018-11682)"
description: |
The Telnet integration interface of a Lutron lighting controller (HomeWorks QS,
RadioRA 2, Stanza, QSE-CI-NWK-E / NWK) logged in with a fixed, unchangeable
default account (lutron:integration or nwk:nwk2). The check logs in with each
account and sends the read-only `?HELP,#ETHERNET` query; it is confirmed when
the integration interpreter answers with its help text and a second login
with a random password is rejected. When that second login cannot run, the
login alone is reported with lower confidence. An unauthenticated attacker on the network gets full control of the
integration interface: every load, scene and keypad, and the controller's
network settings.
cves: [CVE-2018-11629, CVE-2018-11681, CVE-2018-11682]
cvss: 9.8
severity: critical
category: default-credentials
confidence_base: 0.30
tags: [lutron, homeworks-qs, radiora2, stanza, iot, building-automation, telnet, default-credentials, hardcoded-credentials, intrusive]
services: [telnet]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-11629"
- "https://nvd.nist.gov/vuln/detail/CVE-2018-11681"
- "https://nvd.nist.gov/vuln/detail/CVE-2018-11682"
steps:
# Random control password — never one of the default ones.
- id: control-password
action: script
store_as: ctl_pw
code: |
"noctis" + rand_str(14)
# ------------------------------------------- one iteration per account
# The whole group below runs once per pair; a finding (stop: true) ends it.
- id: init-gate
action: set_var
loop:
over:
- {user: "lutron", pass: "integration"}
- {user: "nwk", pass: "nwk2"}
var: acct
var_name: gate
var_value: false
- id: init-logged-in
action: set_var
var_name: logged_in
var_value: false
- id: init-help-proof
action: set_var
var_name: help_proof
var_value: false
- id: init-ctl-ok
action: set_var
var_name: ctl_ok
var_value: false
- id: init-ctl-ran
action: set_var
var_name: ctl_ran
var_value: false
- id: init-ctl-late
action: set_var
var_name: c_late
var_value: {response: ""}
- id: init-ctl-user
action: set_var
var_name: c_user
var_value: {response: ""}
- id: init-ctl-user-late
action: set_var
var_name: c_user_late
var_value: {response: ""}
- id: init-late
action: set_var
var_name: late
var_value: {response: ""}
- id: init-out
action: set_var
var_name: tn_out
var_value: ""
- id: init-user-late
action: set_var
var_name: r_user_late
var_value: {response: ""}
- id: init-tail-late
action: set_var
var_name: r_tail_late
var_value: {response: ""}
- id: open
action: tcp_open
handle: tn
port: "{{port}}"
read_banner: true
timeout_secs: 10
store_as: conn
# No "login:" in the first read: wait and read again (a zero-byte write
# only triggers the read).
- id: late-banner-wait
action: sleep
condition: "conn.connected == true && (type_of(conn.banner) != \"string\" || strstr(tolower(conn.banner), \"login:\") == \"\")"
duration_ms: 2000
- id: late-banner
action: tcp_send
handle: tn
condition: "conn.connected == true && (type_of(conn.banner) != \"string\" || strstr(tolower(conn.banner), \"login:\") == \"\")"
send: ""
timeout_secs: 10
store_as: late
- id: gate-check
action: script
condition: "conn.connected == true"
store_as: gate
code: |
let g = "";
if type_of(conn.banner) == "string" { g += conn.banner; }
if type_of(late.response) == "string" { g += late.response; }
strstr(tolower(g), "login:") != ""
- id: send-user
action: tcp_send
handle: tn
condition: "gate == true"
send: "{{acct.user}}\r\n"
timeout_secs: 10
store_as: r_user
# "password:" not in the first read (slow controller; the engine stops
# reading after 500 ms of silence): wait and read again.
- id: late-password-wait
action: sleep
condition: "gate == true && (type_of(r_user.response) != \"string\" || strstr(tolower(r_user.response), \"password:\") == \"\")"
duration_ms: 2000
- id: late-password
action: tcp_send
handle: tn
condition: "gate == true && (type_of(r_user.response) != \"string\" || strstr(tolower(r_user.response), \"password:\") == \"\")"
send: ""
timeout_secs: 10
store_as: r_user_late
# The NASL only sends the password once "password:" was asked for.
- id: password-prompt
action: script
condition: "gate == true"
store_as: gate
code: |
let p = "";
if type_of(r_user.response) == "string" { p += r_user.response; }
if type_of(r_user_late.response) == "string" { p += r_user_late.response; }
strstr(tolower(p), "password:") != ""
- id: send-pass
action: tcp_send
handle: tn
condition: "gate == true"
send: "{{acct.pass}}\r\n"
timeout_secs: 10
store_as: r_pass
- id: send-help
action: tcp_send
handle: tn
condition: "gate == true"
send: "?HELP,#ETHERNET\r\n"
timeout_secs: 10
store_as: r_help
- id: wait-output
action: sleep
condition: "gate == true"
duration_ms: 1000
# Zero-byte write: read whatever the controller printed after the last read.
- id: flush
action: tcp_send
handle: tn
condition: "gate == true"
send: ""
# Drain read: usually nothing is left, and a read waits up to
# timeout_secs for a first byte — keep it short.
timeout_secs: 3
store_as: r_tail
- id: collect
action: script
condition: "gate == true"
store_as: tn_out
code: |
let out = "";
for r in [r_pass, r_help, r_tail] {
if type_of(r.response) == "string" { out += r.response + "\n"; }
}
out
# Help text not there yet (slow controller): wait longer and read again.
- id: late-output-wait
action: sleep
condition: "gate == true && strstr(tn_out, \"Configures the IP\") == \"\""
duration_ms: 2500
- id: late-output
action: tcp_send
handle: tn
condition: "gate == true && strstr(tn_out, \"Configures the IP\") == \"\""
send: ""
timeout_secs: 10
store_as: r_tail_late
- id: collect-late
action: script
condition: "gate == true && type_of(r_tail_late.response) == \"string\""
store_as: tn_out
code: |
tn_out + r_tail_late.response
- id: close
action: tcp_close
handle: tn
# Integration prompts: QNET> (HomeWorks QS), GNET> (RadioRA 2, Caseta Pro),
# QSE> (QSE-CI-NWK-E). None of them is in anything we send.
- id: check-prompt
action: script
condition: "gate == true"
store_as: logged_in
code: |
strstr(tn_out, "QNET>") != "" || strstr(tn_out, "GNET>") != "" || strstr(tn_out, "QSE>") != ""
- id: check-help
action: script
condition: "gate == true"
store_as: help_proof
code: |
strstr(tn_out, "Configures the IP") != ""
# ---------------------------------- control: same user, random password
- id: ctl-open
action: tcp_open
handle: ctl
port: "{{port}}"
condition: "logged_in == true || help_proof == true"
read_banner: true
timeout_secs: 10
store_as: ctl_conn
- id: ctl-late-wait
action: sleep
condition: "(logged_in == true || help_proof == true) && ctl_conn.connected == true && (type_of(ctl_conn.banner) != \"string\" || strstr(tolower(ctl_conn.banner), \"login:\") == \"\")"
duration_ms: 2000
- id: ctl-late
action: tcp_send
handle: ctl
condition: "(logged_in == true || help_proof == true) && ctl_conn.connected == true && (type_of(ctl_conn.banner) != \"string\" || strstr(tolower(ctl_conn.banner), \"login:\") == \"\")"
send: ""
timeout_secs: 10
store_as: c_late
- id: ctl-user
action: tcp_send
handle: ctl
condition: "(logged_in == true || help_proof == true) && ctl_conn.connected == true"
send: "{{acct.user}}\r\n"
timeout_secs: 10
store_as: c_user
- id: ctl-late-password-wait
action: sleep
condition: "(logged_in == true || help_proof == true) && ctl_conn.connected == true && (type_of(c_user.response) != \"string\" || strstr(tolower(c_user.response), \"password:\") == \"\")"
duration_ms: 2000
- id: ctl-late-password
action: tcp_send
handle: ctl
condition: "(logged_in == true || help_proof == true) && ctl_conn.connected == true && (type_of(c_user.response) != \"string\" || strstr(tolower(c_user.response), \"password:\") == \"\")"
send: ""
timeout_secs: 10
store_as: c_user_late
# Fail-closed: the control only counts when it demonstrably ran (greeting
# and password prompt seen). A refused 2nd connection (single-session
# controller, rate limit) leaves the finding at QoD 75.
- id: ctl-ran-check
action: script
condition: "(logged_in == true || help_proof == true) && ctl_conn.connected == true"
store_as: ctl_ran
code: |
let g = "";
if type_of(ctl_conn.banner) == "string" { g += ctl_conn.banner; }
if type_of(c_late.response) == "string" { g += c_late.response; }
let p = "";
if type_of(c_user.response) == "string" { p += c_user.response; }
if type_of(c_user_late.response) == "string" { p += c_user_late.response; }
strstr(tolower(g), "login:") != "" && strstr(tolower(p), "password:") != ""
- id: ctl-pass
action: tcp_send
handle: ctl
condition: "ctl_ran == true"
send: "{{ctl_pw}}\r\n"
timeout_secs: 10
store_as: c_pass
- id: ctl-help
action: tcp_send
handle: ctl
condition: "ctl_ran == true"
send: "?HELP,#ETHERNET\r\n"
timeout_secs: 10
store_as: c_help
- id: ctl-wait-output
action: sleep
condition: "ctl_ran == true"
duration_ms: 1000
- id: ctl-flush
action: tcp_send
handle: ctl
condition: "ctl_ran == true"
send: ""
# Drain read: usually nothing is left, and a read waits up to
# timeout_secs for a first byte — keep it short.
timeout_secs: 3
store_as: c_tail
# Same extra wait as the default login: a slow accept-any login must not
# look like a rejection.
- id: ctl-late-output-wait
action: sleep
condition: "ctl_ran == true"
duration_ms: 2500
- id: ctl-late-output
action: tcp_send
handle: ctl
condition: "ctl_ran == true"
send: ""
timeout_secs: 10
store_as: c_tail_late
- id: ctl-close
action: tcp_close
handle: ctl
- id: ctl-check
action: script
condition: "ctl_ran == true"
store_as: ctl_ok
code: |
let out = "";
for r in [c_pass, c_help, c_tail, c_tail_late] {
if type_of(r.response) == "string" { out += r.response + "\n"; }
}
strstr(out, "QNET>") != "" || strstr(out, "GNET>") != "" || strstr(out, "QSE>") != "" || strstr(out, "Configures the IP") != ""
# ------------------------------------------------------------- findings
- id: finding-help
action: match
source: tn_out
pattern: "Configures the IP"
condition: "help_proof == true && ctl_ran == true && ctl_ok == false"
on_match:
finding:
title: "Lutron Telnet integration default credentials {{acct.user}}:{{acct.pass}}"
description: "The Lutron Telnet integration interface logged in the built-in account '{{acct.user}}' with the fixed password '{{acct.pass}}' and its integration interpreter answered the read-only `?HELP,#ETHERNET` query, while a random password was rejected. These accounts cannot be removed or changed (CVE-2018-11629, CVE-2018-11681, CVE-2018-11682)."
remediation: "The built-in integration accounts cannot be changed: keep the Lutron processor / repeater / NWK interface on an isolated control network, block TCP/23 (and the integration ports) from untrusted hosts, and only allow the integration system's address."
confidence_delta: 0.65
qod: 97
evidence: "Telnet login {{acct.user}}:{{acct.pass}} accepted, `?HELP,#ETHERNET` answered (random password rejected): {{tn_out}}"
stop: true
# Prompt only, or the random-password control could not run (2nd
# connection refused): QoD 75.
- id: finding-prompt
action: match
source: tn_out
pattern: "(QNET|GNET|QSE)>|Configures the IP"
condition: "(logged_in == true || help_proof == true) && ctl_ok == false && (help_proof == false || ctl_ran == false)"
on_match:
finding:
title: "Lutron Telnet integration default credentials {{acct.user}}:{{acct.pass}}"
description: "The Lutron Telnet integration interface logged in the built-in account '{{acct.user}}' with the fixed password '{{acct.pass}}' and showed the integration prompt. Either the answer to the read-only help query was not captured, or the check that a random password is rejected could not run. These accounts cannot be removed or changed (CVE-2018-11629, CVE-2018-11681, CVE-2018-11682)."
remediation: "The built-in integration accounts cannot be changed: keep the Lutron processor / repeater / NWK interface on an isolated control network, block TCP/23 (and the integration ports) from untrusted hosts, and only allow the integration system's address."
confidence_delta: 0.50
qod: 75
evidence: "Telnet login {{acct.user}}:{{acct.pass}} accepted, integration prompt shown (random-password control ran and was rejected: {{ctl_ran}}): {{tn_out}}"
stop: true