Alcatel Speed Touch — 1 vulnerability check
noctis ships 1 vulnerability check for Alcatel Speed Touch, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Alcatel Speed Touch ADSL modem Telnet console with blank password
| CVE | CVE-2001-1424 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | default-credentials — Default credentials |
| Services | telnet |
| Ports | 23 |
| Detection | set_var, tcp_open, tcp_send, script, sleep, tcp_close, match · highest QoD 97 |
| Feed | tests/vulnerabilities/alcatel-speedtouch/CVE-2001-1424.yaml |
Alcatel Speed Touch Home and Pro ADSL modems ship with no password on their Telnet management console. The test answers the "User : " prompt (and a "Password :" prompt, when one is asked) with an empty value; the "ALCATEL ADSL" banner and "=>" command prompt show that it logged in. It then runs the read-only "ip config" command: printed IP settings confirm command access, and a "Firewalling off" line shows that the console is also open from the WAN/DSL side. Nothing on the modem is changed.
How noctis detects it
- Opens a persistent TCP/TLS socket
- Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Sends
on the open socket - Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Sends
on the open socket - Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Sends
ip configon the open socket - Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Checks
verdictfor^fw_off$→ finding QoD 97: Alcatel Speed Touch ADSL modem — Telnet console with blank password, firewalling off (CVE-2001-1424) - … and 2 more steps — see the feed source below
References:
- https://nvd.nist.gov/vuln/detail/CVE-2001-1424
- https://security.sdsc.edu/self-help/alcatel/alcatel-bugs.html
- https://www.fredshack.com/docs/alcatel.html
Feed source — tests/vulnerabilities/alcatel-speedtouch/CVE-2001-1424.yaml
# Alcatel Speed Touch Home / Pro ADSL modem — blank default Telnet password
# (CVE-2001-1424), reported with the state of the "Firewalling" protection.
#
# Firmware KHDSAA.108, .132, .133 and .134 ship with no password: at the
# Telnet "User : " prompt an empty user name (and, on firmware that asks for
# one, an empty password) logs into the modem CLI ("ALCATEL ADSL MODEM" banner,
# "=>" prompt). Unless "ip config firewalling=on" was set, the CLI is reachable
# from the WAN/DSL side too, so anyone on the Internet can reconfigure the
# modem.
#
# Ported from OpenVAS/Greenbone NVT pre2008/alcatel_adsl_firewalling.nasl
# (OID 1.3.6.1.4.1.25623.1.0.10760, GPL-2.0-only): "User : " greeting, Enter,
# "ALCATEL ADSL" banner, `ip config`, "Firewalling off".
#
# Detection:
# 1. read the Telnet greeting; go on only on the "User :" prompt (replies
# are trim_end'ed, so the trailing space is gone);
# 2. send an empty user name (and an empty password when "Password :" is
# asked) — the blank default credentials of CVE-2001-1424;
# 3. the "ALCATEL ADSL" banner and "=>" prompt prove the login;
# 4. run the read-only `ip config` and read its "Firewalling" line.
# QoD 97 when `ip config` printed the IP settings (console proven by command
# output): one finding names "Firewalling off" (reachable from the WAN), the
# other a blank password with the protection on. QoD 75 when only the CLI
# banner + prompt came back. Nothing is changed on the modem.
#
# Better than the NASL (stated in the PR):
# - the NASL only runs when the scanned address is in 10.0.0.0/8 (the
# modem's factory LAN address); the feed runs on any address, so a modem
# scanned from the WAN side — the case the protection is about — is found;
# - the blank password itself (the CVE) is reported even when firewalling is
# on, instead of exiting clean;
# - firmware that asks for a password after the user name gets the empty
# password too (the NASL stopped at "Password :");
# - a greeting, password prompt or CLI that answers after the first 500 ms
# read is still read (late re-reads).
#
# CVE-2001-1425 (EXPERT challenge-response computed from the login banner) is
# not tested: it needs no blank password but grants a privilege the feed does
# not try to obtain.
#
# category: default-credentials (the feed logs in with the blank default
# credentials) + `intrusive`.
uid: 96140394-569b-4be8-8718-c8efed8166e0
name: "Alcatel Speed Touch ADSL modem Telnet console with blank password (CVE-2001-1424)"
description: |
Alcatel Speed Touch Home and Pro ADSL modems ship with no password on their
Telnet management console. The test answers the "User : " prompt (and a
"Password :" prompt, when one is asked) with an empty value; the
"ALCATEL ADSL" banner and "=>" command prompt show that it logged in. It then
runs the read-only "ip config" command: printed IP settings confirm command
access, and a "Firewalling off" line shows that the console is also open from
the WAN/DSL side. Nothing on the modem is changed.
cves: [CVE-2001-1424]
cvss: 7.5 # NVD publishes only a CVSS v2 score (7.5) for this CVE
severity: high
category: default-credentials
confidence_base: 0.30
tags: [alcatel, speedtouch, adsl, modem, telnet, blank-password, default-credentials, intrusive]
services: [telnet]
ports: [23]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2001-1424"
- "https://security.sdsc.edu/self-help/alcatel/alcatel-bugs.html"
- "https://www.fredshack.com/docs/alcatel.html"
steps:
# ---------------------------------------------------------------- set-up
- id: init-verdict
action: set_var
var_name: verdict
var_value: "none"
- id: init-user
action: set_var
var_name: r_user
var_value: {response: ""}
- id: init-pw
action: set_var
var_name: r_pw
var_value: {response: ""}
- id: init-late
action: set_var
var_name: r_late
var_value: {response: ""}
- id: init-late2
action: set_var
var_name: r_late2
var_value: {response: ""}
- id: init-greet2
action: set_var
var_name: r_greet2
var_value: {response: ""}
- id: init-cfg
action: set_var
var_name: r_cfg
var_value: {response: ""}
- id: init-cfg-late
action: set_var
var_name: r_cfg_late
var_value: {response: ""}
- id: init-logged
action: set_var
var_name: logged_in
var_value: false
- id: init-greet
action: set_var
var_name: greet_ok
var_value: false
- id: init-pw-asked
action: set_var
var_name: pw_asked
var_value: false
# ----------------------------------------------------------- the session
- id: open
action: tcp_open
handle: st
port: "{{port}}"
read_banner: true
timeout_secs: 5
store_as: conn
# The "User :" prompt may follow the Telnet option negotiation after the
# first 500 ms read ended: read once more when it is missing.
- id: read-greeting
action: tcp_send
handle: st
condition: "conn.connected == true && !(type_of(conn.banner) == \"string\" && strstr(conn.banner, \"User :\") != \"\")"
send: ""
timeout_secs: 3
store_as: r_greet2
- id: check-greeting
action: script
condition: "conn.connected == true"
store_as: greet_ok
code: |
let g = "";
if type_of(conn.banner) == "string" { g += conn.banner; }
if type_of(r_greet2.response) == "string" { g += "\n" + r_greet2.response; }
strstr(g, "User :") != ""
# Empty user name.
- id: send-user
action: tcp_send
handle: st
condition: "greet_ok == true"
send: "\r\n"
timeout_secs: 5
store_as: r_user
# Slow CLI: the password prompt or the banner may come after the first
# read ended (a zero-byte write only triggers another read).
- id: wait-banner
action: sleep
condition: "greet_ok == true"
duration_ms: 1500
- id: read-banner
action: tcp_send
handle: st
condition: "greet_ok == true"
send: ""
timeout_secs: 2
store_as: r_late
# Firmware that asks "Password :" after the user name: empty password.
- id: check-pw-prompt
action: script
condition: "greet_ok == true"
store_as: pw_asked
code: |
let out = "";
for r in [r_user, r_late] {
if type_of(r.response) == "string" { out += r.response + "\n"; }
}
strstr(out, "Password") != "" && strstr(out, "ALCATEL ADSL") == ""
- id: send-password
action: tcp_send
handle: st
condition: "greet_ok == true && pw_asked == true"
send: "\r\n"
timeout_secs: 5
store_as: r_pw
- id: wait-banner-pw
action: sleep
condition: "greet_ok == true && pw_asked == true"
duration_ms: 1500
- id: read-banner-pw
action: tcp_send
handle: st
condition: "greet_ok == true && pw_asked == true"
send: ""
timeout_secs: 2
store_as: r_late2
- id: check-login
action: script
condition: "greet_ok == true"
store_as: logged_in
code: |
let out = "";
for r in [r_user, r_late, r_pw, r_late2] {
if type_of(r.response) == "string" { out += r.response + "\n"; }
}
strstr(out, "ALCATEL ADSL") != "" && strstr(out, "=>") != ""
&& !ereg("(?i)invalid|incorrect|denied", out)
# Read-only command: IP stack settings, among them "Firewalling on|off".
- id: send-ip-config
action: tcp_send
handle: st
condition: "logged_in == true"
send: "ip config\r\n"
timeout_secs: 5
store_as: r_cfg
- id: wait-ip-config
action: sleep
condition: "logged_in == true"
duration_ms: 1500
- id: read-ip-config
action: tcp_send
handle: st
condition: "logged_in == true"
send: ""
timeout_secs: 2
store_as: r_cfg_late
- id: close
action: tcp_close
handle: st
- id: classify
action: script
condition: "logged_in == true"
store_as: verdict
code: |
let cfg = "";
for r in [r_cfg, r_cfg_late] {
if type_of(r.response) == "string" { cfg += r.response + "\n"; }
}
if ereg("(?im)^\\s*firewalling\\s*[=:]?\\s*off\\b", cfg) {
"fw_off"
} else if ereg("(?im)^\\s*(firewalling|forwarding)\\s*[=:]?\\s*(on|off)\\b", cfg) {
"cfg"
} else {
"login"
}
- id: fw-line
action: script
condition: "logged_in == true"
store_as: fw_line
code: |
let cfg = "";
for r in [r_cfg, r_cfg_late] {
if type_of(r.response) == "string" { cfg += r.response + "\n"; }
}
let l = egrep("(?i)^\\s*firewalling\\b", cfg);
if l == "" { "no Firewalling line" } else { chomp(l) }
# ---------------------------------------------------------------- findings
- id: finding-fw-off
action: match
source: verdict
pattern: "^fw_off$"
on_match:
finding:
title: "Alcatel Speed Touch ADSL modem — Telnet console with blank password, firewalling off (CVE-2001-1424)"
description: "The Telnet console on port {{port}} accepted an empty user name and password, opened the Alcatel ADSL modem CLI and ran the read-only 'ip config' command, which reports 'Firewalling off': the console is also reachable from the WAN/DSL side, so anyone can log in and reconfigure the modem."
remediation: "Set a console password, enable the protection with 'ip config firewalling=on' then 'config save', and upgrade the modem firmware."
confidence_delta: 0.65
qod: 97
evidence: "Port {{port}}: empty user/password accepted, 'ip config' -> {{fw_line}}"
- id: finding-blank-password
action: match
source: verdict
pattern: "^cfg$"
on_match:
finding:
title: "Alcatel Speed Touch ADSL modem — Telnet console with blank password (CVE-2001-1424)"
description: "The Telnet console on port {{port}} accepted an empty user name and password, opened the Alcatel ADSL modem CLI and ran the read-only 'ip config' command. Anyone who can reach this port can reconfigure the modem. The output does not report 'Firewalling off' ({{fw_line}}), so the console is likely limited to the LAN side."
remediation: "Set a console password and upgrade the modem firmware; keep 'ip config firewalling=on'."
confidence_delta: 0.65
qod: 97
evidence: "Port {{port}}: empty user/password accepted, 'ip config' -> {{fw_line}}"
- id: finding-login-only
action: match
source: verdict
pattern: "^login$"
on_match:
finding:
title: "Alcatel Speed Touch ADSL modem — Telnet console with blank password (CVE-2001-1424)"
description: "The Telnet console on port {{port}} accepted an empty user name and password and showed the Alcatel ADSL modem banner and '=>' command prompt. 'ip config' printed no recognised settings, so the firewalling state is unknown."
remediation: "Set a console password, enable 'ip config firewalling=on' then 'config save', and upgrade the modem firmware."
confidence_delta: 0.45
qod: 75
evidence: "Port {{port}}: empty user/password accepted, 'ALCATEL ADSL' banner and '=>' prompt shown"