Hughes Satellite Modem — 1 vulnerability check
noctis ships 1 vulnerability check for Hughes Satellite Modem, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Hughes broadband satellite modem unauthenticated Install Console on TCP 1953
| CVE | CVE-2016-9497 |
|---|---|
| Severity | high · CVSS 8.8 |
| Category | exposure — Exposure |
| Services | rapidbase, telnet, unknown |
| Detection | set_var, tcp_open, script, tcp_send, sleep, tcp_close, match · highest QoD 75 |
| Feed | tests/vulnerabilities/hughes-satellite-modem/CVE-2016-9497.yaml |
Hughes high-performance broadband satellite modems (models HN7740S, DW7000 and HN7000S/SM) open their Install Console on TCP port 1953 by default, without asking for any credential (CVE-2016-9497). The console gives administrative commands, including rebooting and unlicensing the modem. The check connects to the port, declines any Telnet options the device proposes, and requires a greeting that names the Hughes Install Console with no password or login prompt. It then sends only an empty line, the key that lists the menu, and reports the flaw when the reply lists the console's administrative entries (Display Current Configuration, Display Satellite Interface Statistics, Display Active Routing, Gateway Reset, Gateway Unlicense). No menu command is ever selected, so nothing is changed on the modem.
How noctis detects it
- Opens a persistent TCP/TLS socket
- Parses / computes the next value with a Rhai script
- Sends a binary frame 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
- Sends a binary frame 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
- Parses / computes the next value with a Rhai script
- Sends a binary frame on the open socket
- … and 5 more steps — see the feed source below
References:
- https://nvd.nist.gov/vuln/detail/CVE-2016-9497
- https://www.kb.cert.org/vuls/id/614751
- https://nvd.nist.gov/vuln/detail/CVE-2016-9494
- https://nvd.nist.gov/vuln/detail/CVE-2016-9495
- https://nvd.nist.gov/vuln/detail/CVE-2016-9496
Feed source — tests/vulnerabilities/hughes-satellite-modem/CVE-2016-9497.yaml
# Hughes high-performance broadband satellite modems (HN7740S, DW7000,
# HN7000S/SM) — unauthenticated Install Console on TCP 1953 (CVE-2016-9497,
# CERT/CC VU#614751).
#
# Port 1953 is reachable by default and opens the modem's Install Console
# without asking for any credential. Its menu gives administrative commands
# (configuration display, routing table, gateway reset, unlicensing, ...).
#
# Ported from OpenVAS/Greenbone NVT
# 2018/hughes/gb_hughes_broadband_satellite_modems_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.813749, GPL-2.0-only): read the greeting, require
# "Broadband Satellite", "Hughes Network Systems", "Install Console" and
# "Main Menu", send CR LF, then require the menu entries "Display Current
# Configuration", "Display Satellite Interface Statistics", "Gateway Reset",
# "Gateway Unlicense" and "Display Active Routing".
#
# The NASL is titled "Multiple Vulnerabilities" and lists CVE-2016-9494..9497.
# The check only proves the unauthenticated console on 1953, which is
# CVE-2016-9497 (alternate path: telnet 1953 without authentication). 9494
# (web status page DoS), 9495 (hard-coded telnet/23 credentials) and 9496
# (unauthenticated reboot URL) are not tested, so they are not attributed.
#
# Detection (QoD 75): the greeting names the Hughes console and no password /
# login prompt is shown; after a bare CR LF (the "<?/CR> for options" key that
# only lists the menu) the console lists at least three of the five
# administrative entries above. Those entries never appear in what we send.
# No menu command is ever selected: an entry such as "Gateway Reset" reboots
# the modem, so the only key sent is CR LF. The menu listing itself is the
# proof that the administrative console is open without credentials.
#
# Better than the NASL (stated in the PR):
# - Telnet options proposed by the server are refused (WONT/DONT) before the
# CR LF, so a console behind a telnetd that waits for the negotiation is
# still reached, also when the options arrive late (slow link);
# - a greeting or menu that arrives late (slow modem link) is read again
# (each read stops after a 500 ms quiet gap, so the late reads come after
# 3 s / 4 s pauses);
# - the header test accepts either product line ("Hughes Network Systems" or
# "Broadband Satellite") with either console line ("Install Console" or
# "Main Menu"), and 3 of the 5 menu entries, so a model or firmware whose
# menu words differ slightly is not missed, while a console that shows a
# password / login prompt is never reported;
# - runs on the matched port: nmap names 1953 "rapidbase" from its port
# table, or "telnet" / "unknown" after version detection.
#
# Nothing is changed on the modem: only CR LF is sent.
uid: b9a98521-3d7d-46ab-91af-74da0eeb87e1
name: "Hughes broadband satellite modem unauthenticated Install Console on TCP 1953 (CVE-2016-9497)"
description: |
Hughes high-performance broadband satellite modems (models HN7740S, DW7000
and HN7000S/SM) open their Install Console on TCP port 1953 by default,
without asking for any credential (CVE-2016-9497). The console gives
administrative commands, including rebooting and unlicensing the modem.
The check connects to the port, declines any Telnet options the device
proposes, and requires a greeting that names the Hughes Install Console
with no password or login prompt. It then sends only an empty line, the
key that lists the menu, and reports the flaw when the reply lists the
console's administrative entries (Display Current Configuration, Display
Satellite Interface Statistics, Display Active Routing, Gateway Reset,
Gateway Unlicense). No menu command is ever selected, so nothing is changed
on the modem.
cves: [CVE-2016-9497]
cvss: 8.8
severity: high
category: exposure
confidence_base: 0.25
tags: [hughes, satellite, modem, dw7000, hn7000s, hn7740s, telnet, install-console, unauthenticated, exposure]
services: [rapidbase, telnet, unknown]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2016-9497"
- "https://www.kb.cert.org/vuls/id/614751"
- "https://nvd.nist.gov/vuln/detail/CVE-2016-9494"
- "https://nvd.nist.gov/vuln/detail/CVE-2016-9495"
- "https://nvd.nist.gov/vuln/detail/CVE-2016-9496"
steps:
# ---------------------------------------------------------------- set-up
- id: init-gate
action: set_var
var_name: gate
var_value: false
- id: init-menu-ok
action: set_var
var_name: menu
var_value: {ok: false, count: 0, found: ""}
- id: init-greet
action: set_var
var_name: greet
var_value: ""
- id: init-neg
action: set_var
var_name: r_neg
var_value: {response: "", response_hex: ""}
- id: init-greet-late
action: set_var
var_name: r_greet_late
var_value: {response: "", response_hex: ""}
- id: init-neg2
action: set_var
var_name: r_neg2
var_value: {response: "", response_hex: ""}
- id: init-greet-late2
action: set_var
var_name: r_greet_late2
var_value: {response: "", response_hex: ""}
- id: init-neg2-hex
action: set_var
var_name: neg2
var_value: {hex: ""}
- id: init-cr
action: set_var
var_name: r_cr
var_value: {response: ""}
- id: init-cr-late
action: set_var
var_name: r_cr_late
var_value: {response: ""}
# ----------------------------------------------------------- the session
- id: open
action: tcp_open
handle: hc
port: "{{port}}"
read_banner: true
timeout_secs: 10
store_as: conn
# Refuse every option the server proposed (DO x -> WONT x, WILL x -> DONT x).
- id: refuse-1
action: script
condition: "conn.connected == true"
store_as: neg1
code: |
let h = if type_of(conn.banner_hex) == "string" { conn.banner_hex } else { "" };
let out = "";
let i = 0;
let n = strlen(h);
while i + 1 < n {
if substr(h, i, i + 1) == "ff" && i + 5 < n {
let c = substr(h, i + 2, i + 3);
let o = substr(h, i + 4, i + 5);
if c == "fd" { out += "fffc" + o; i += 6; continue; }
if c == "fb" { out += "fffe" + o; i += 6; continue; }
if c == "fc" || c == "fe" { i += 6; continue; }
}
i += 2;
}
#{ hex: out }
- id: answer-1
action: tcp_send
handle: hc
condition: "conn.connected == true && neg1.hex != \"\""
send_hex: "{{neg1.hex}}"
store_as: r_neg
- id: greet-1
action: script
condition: "conn.connected == true"
store_as: greet
code: |
let g = "";
if type_of(conn.banner) == "string" { g += conn.banner + "\n"; }
if type_of(r_neg.response) == "string" { g += r_neg.response + "\n"; }
g
# Slow link or console shown only after the negotiation: read again once
# the "Main Menu" prompt line has not been seen yet (a zero-byte write only
# triggers the read).
- id: greet-wait
action: sleep
condition: "conn.connected == true && strstr(tolower(greet), \"main menu\") == \"\""
duration_ms: 3000
- id: greet-late
action: tcp_send
handle: hc
condition: "conn.connected == true && strstr(tolower(greet), \"main menu\") == \"\""
send: ""
store_as: r_greet_late
- id: greet-2
action: script
condition: "conn.connected == true && type_of(r_greet_late.response) == \"string\""
store_as: greet
code: |
greet + r_greet_late.response + "\n"
# Options that arrived only in these later reads (more than 500 ms after
# the connection: slow link): refuse them too, then read the console
# header that follows.
- id: refuse-2
action: script
condition: "conn.connected == true && strstr(tolower(greet), \"main menu\") == \"\""
store_as: neg2
code: |
let h = "";
for r in [r_neg, r_greet_late] {
if type_of(r.response_hex) == "string" { h += r.response_hex; }
}
let out = "";
let i = 0;
let n = strlen(h);
while i + 1 < n {
if substr(h, i, i + 1) == "ff" && i + 5 < n {
let c = substr(h, i + 2, i + 3);
let o = substr(h, i + 4, i + 5);
if c == "fd" { out += "fffc" + o; i += 6; continue; }
if c == "fb" { out += "fffe" + o; i += 6; continue; }
if c == "fc" || c == "fe" { i += 6; continue; }
}
i += 2;
}
#{ hex: out }
- id: answer-2
action: tcp_send
handle: hc
condition: "conn.connected == true && neg2.hex != \"\""
send_hex: "{{neg2.hex}}"
store_as: r_neg2
- id: greet-3
action: script
condition: "conn.connected == true && neg2.hex != \"\" && type_of(r_neg2.response) == \"string\""
store_as: greet
code: |
greet + r_neg2.response + "\n"
- id: greet-wait-2
action: sleep
condition: "conn.connected == true && neg2.hex != \"\" && strstr(tolower(greet), \"main menu\") == \"\""
duration_ms: 3000
- id: greet-late-2
action: tcp_send
handle: hc
condition: "conn.connected == true && neg2.hex != \"\" && strstr(tolower(greet), \"main menu\") == \"\""
send: ""
store_as: r_greet_late2
- id: greet-4
action: script
condition: "conn.connected == true && neg2.hex != \"\" && type_of(r_greet_late2.response) == \"string\""
store_as: greet
code: |
greet + r_greet_late2.response + "\n"
# The Hughes console header, and no credential prompt.
- id: gate-check
action: script
condition: "conn.connected == true"
store_as: gate
code: |
let g = tolower(greet);
let product = strstr(g, "hughes network systems") != "" || strstr(g, "broadband satellite") != "";
let console = strstr(g, "install console") != "" || strstr(g, "main menu") != "";
let creds = strstr(g, "password") != "" || strstr(g, "login:") != "" || strstr(g, "username") != "";
product && console && !creds
# Refuse any further options (second negotiation round), then CR LF — the
# menu's "<?/CR> for options" key, which only lists the entries.
- id: build-frame
action: script
condition: "gate == true"
store_as: fr
code: |
let unanswered = if neg2.hex != "" { [r_neg2, r_greet_late2] } else { [r_neg, r_greet_late] };
let h = "";
for r in unanswered {
if type_of(r.response_hex) == "string" { h += r.response_hex; }
}
let out = "";
let i = 0;
let n = strlen(h);
while i + 1 < n {
if substr(h, i, i + 1) == "ff" && i + 5 < n {
let c = substr(h, i + 2, i + 3);
let o = substr(h, i + 4, i + 5);
if c == "fd" { out += "fffc" + o; i += 6; continue; }
if c == "fb" { out += "fffe" + o; i += 6; continue; }
if c == "fc" || c == "fe" { i += 6; continue; }
}
i += 2;
}
#{ hex: out + "0d0a" }
- id: send-cr
action: tcp_send
handle: hc
condition: "gate == true"
send_hex: "{{fr.hex}}"
store_as: r_cr
- id: menu-1
action: script
condition: "gate == true"
store_as: menu
code: |
let t = "";
for r in [r_cr, r_cr_late] {
if type_of(r.response) == "string" { t += r.response; }
}
let low = tolower(t);
let names = ["Display Current Configuration", "Display Satellite Interface Statistics",
"Display Active Routing", "Gateway Reset", "Gateway Unlicense"];
let n = 0;
let found = "";
for e in names {
if strstr(low, tolower(e)) != "" {
if n > 0 { found += ", "; }
found += e;
n += 1;
}
}
#{ ok: n >= 3, count: n, found: found }
# Menu not (fully) there yet: wait and read once more.
- id: menu-wait
action: sleep
condition: "gate == true && menu.count < 5"
duration_ms: 4000
- id: menu-late
action: tcp_send
handle: hc
condition: "gate == true && menu.count < 5"
send: ""
store_as: r_cr_late
- id: close
action: tcp_close
handle: hc
- id: menu-2
action: script
condition: "gate == true && type_of(r_cr_late.response) == \"string\""
store_as: menu
code: |
let t = "";
for r in [r_cr, r_cr_late] {
if type_of(r.response) == "string" { t += r.response; }
}
let low = tolower(t);
let names = ["Display Current Configuration", "Display Satellite Interface Statistics",
"Display Active Routing", "Gateway Reset", "Gateway Unlicense"];
let n = 0;
let found = "";
for e in names {
if strstr(low, tolower(e)) != "" {
if n > 0 { found += ", "; }
found += e;
n += 1;
}
}
#{ ok: n >= 3, count: n, found: found }
- id: verdict
action: script
store_as: open_console
code: |
gate == true && menu.ok == true
# ---------------------------------------------------------------- finding
- id: finding-console
action: match
source: open_console
pattern: "^true$"
on_match:
finding:
title: "Hughes satellite modem Install Console reachable without credentials on port {{port}} (CVE-2016-9497)"
description: "The service on port {{port}} opened the Hughes broadband satellite modem Install Console without asking for any credential, and listed its administrative menu ({{menu.count}} of 5 known entries: {{menu.found}}) after the scanner sent only an empty line. Anyone who can reach this port can display the modem configuration and run administrative commands such as rebooting or unlicensing the modem (CVE-2016-9497). No menu command was selected by the scanner."
remediation: "Install the firmware update from Hughes that closes or protects the Install Console on TCP port 1953, and block TCP port 1953 (and the Telnet port) from untrusted networks."
confidence_delta: 0.6
qod: 75
evidence: "Port {{port}}: no credential prompt; after CR LF the console listed {{menu.found}}"