Pirelli — 1 vulnerability check
noctis ships 1 vulnerability check for Pirelli, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Pirelli AGE mB router Telnet console with default credentials
| CVE | CVE-1999-0508, CVE-1999-0507 |
|---|---|
| Severity | high · CVSS 7.5 |
| 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/pirelli/pirelli-age-mb-default-credentials.yaml |
Connects to the Telnet port of a Pirelli AGE mB (microBusiness) router that greets with a "USER:" prompt and logs in with the factory default accounts admin/microbusiness, then user/password. The finding is confirmed when the router answers the login with its management menu (the "Configuration" entry) and a second login with the same user and a random password is refused; when that second login cannot run, the login alone is reported with lower confidence. Anyone who can reach the port can then reconfigure the router, lock its owner out and cut or redirect the Internet connection. The feed only reads the menu shown after login and changes nothing.
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
{{acct.pass}}on 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
- Opens a persistent TCP/TLS socket
- Sends
…on the open socket - Sends
{{acct.user}}on the open socket - … and 12 more steps — see the feed source below
References:
- https://nvd.nist.gov/vuln/detail/CVE-1999-0508
- https://nvd.nist.gov/vuln/detail/CVE-1999-0507
- https://www.tenable.com/plugins/nessus/12641
Feed source — tests/vulnerabilities/pirelli/pirelli-age-mb-default-credentials.yaml
# Pirelli AGE mB (microBusiness) router — Telnet management console still
# protected by a factory default account: admin/microbusiness, or
# user/password.
#
# CVEs: the 1999 generic records for "an account on a router, firewall, or
# other network device has a default / guessable password" (CVE-1999-0508,
# CVE-1999-0507). The NVT also lists CVE-1999-0501 / CVE-1999-0502, which NVD
# describes as Unix accounts, not network devices — not carried here. NVD has
# no CVSS v3 for these records; cvss 7.5 is the v2 base score of
# CVE-1999-0507 (CVE-1999-0508 is scored 4.6 in v2).
#
# Ported from OpenVAS/Greenbone NVT pre2008/pirelli_router_default_password.nasl
# (OID 1.3.6.1.4.1.25623.1.0.12641, GPL-2.0-only): require "USER:" in the
# Telnet greeting, send "admin\r\nmicrobusiness\r\n" and report when
# "Configuration" comes back; otherwise reconnect (a wrong password hangs up)
# and try "user\r\npassword\r\n" the same way.
#
# Deviations from the NASL (stronger detection, documented in the PR):
# * Only what the router sends after the password is inspected, and a reply
# that re-asks for "USER:" or says the login was incorrect / denied never
# counts as a login.
# * Accept-any-password guard: after a successful default login, a second
# login with the same user and a random password is made. QoD 97 needs
# that control to be demonstrably refused (re-prompt, error message or
# hang-up) after it ran as far as the password prompt; a control that
# could not run or was inconclusive leaves the finding at QoD 75, and a
# control that also reaches the menu (honeypot, broken login) reports
# nothing.
# * Late greeting / slow menu: a "USER:" prompt or a menu that misses the
# first read is still tested (wait, then read again) instead of skipped.
#
# Read-only: the feed only looks at the menu the router draws after login; it
# selects nothing and hangs up. At most one wrong-password login (the
# control) is made, and only after a default login already worked.
# category default-credentials + `intrusive` tag so scans can exclude it.
uid: c4ca3e32-676e-493b-a412-14a0d7c862b6
name: "Pirelli AGE mB router Telnet console with default credentials"
description: |
Connects to the Telnet port of a Pirelli AGE mB (microBusiness) router that
greets with a "USER:" prompt and logs in with the factory default accounts
admin/microbusiness, then user/password. The finding is confirmed when the
router answers the login with its management menu (the "Configuration"
entry) and a second login with the same user and a random password is
refused; when that second login cannot run, the login alone is reported
with lower confidence. Anyone who can reach the port can then reconfigure
the router, lock its owner out and cut or redirect the Internet connection.
The feed only reads the menu shown after login and changes nothing.
cves: [CVE-1999-0508, CVE-1999-0507]
cvss: 7.5
severity: high
category: default-credentials
confidence_base: 0.30
tags: [pirelli, age-mb, microbusiness, router, telnet, default-credentials, intrusive]
services: [telnet]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-1999-0508"
- "https://nvd.nist.gov/vuln/detail/CVE-1999-0507"
- "https://www.tenable.com/plugins/nessus/12641"
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: "admin", pass: "microbusiness"}
- {user: "user", pass: "password"}
var: acct
var_name: gate
var_value: false
- id: init-logged-in
action: set_var
var_name: logged_in
var_value: false
- id: init-ctl-ran
action: set_var
var_name: ctl_ran
var_value: false
- id: init-ctl-accepted
action: set_var
var_name: ctl_accepted
var_value: false
- id: init-ctl-refused
action: set_var
var_name: ctl_refused
var_value: false
- id: init-late
action: set_var
var_name: late
var_value: {response: ""}
- id: init-tail-late
action: set_var
var_name: r_tail_late
var_value: {response: ""}
- id: init-out
action: set_var
var_name: tn_out
var_value: ""
- id: init-c-late
action: set_var
var_name: c_late
var_value: {response: ""}
- id: init-c-user
action: set_var
var_name: c_user
var_value: {response: ""}
- id: init-c-user-late
action: set_var
var_name: c_user_late
var_value: {response: ""}
- id: init-c-out
action: set_var
var_name: c_out
var_value: ""
- id: open
action: tcp_open
handle: tn
port: "{{port}}"
read_banner: true
timeout_secs: 10
store_as: conn
# No "USER:" in the first read (often only the Telnet negotiation): 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(conn.banner, \"USER:\") == \"\")"
duration_ms: 2000
- id: late-banner
action: tcp_send
handle: tn
condition: "conn.connected == true && (type_of(conn.banner) != \"string\" || strstr(conn.banner, \"USER:\") == \"\")"
send: ""
timeout_secs: 5
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(g, "USER:") != ""
- id: send-user
action: tcp_send
handle: tn
condition: "gate == true"
send: "{{acct.user}}\r\n"
timeout_secs: 5
store_as: r_user
- id: send-pass
action: tcp_send
handle: tn
condition: "gate == true"
send: "{{acct.pass}}\r\n"
timeout_secs: 10
store_as: r_pass
- id: wait-output
action: sleep
condition: "gate == true"
duration_ms: 1500
# Zero-byte write: read whatever the router printed after the last read.
- id: flush
action: tcp_send
handle: tn
condition: "gate == true"
send: ""
timeout_secs: 3
store_as: r_tail
# Everything after the user name except its own echo / password prompt.
- id: collect
action: script
condition: "gate == true"
store_as: tn_out
code: |
let out = "";
for r in [r_pass, r_tail] {
if type_of(r.response) == "string" { out += r.response + "\n"; }
}
out
# Menu not there yet (slow router): wait longer and read again.
- id: late-output-wait
action: sleep
condition: "gate == true && strstr(tn_out, \"Configuration\") == \"\""
duration_ms: 2500
- id: late-output
action: tcp_send
handle: tn
condition: "gate == true && strstr(tn_out, \"Configuration\") == \"\""
send: ""
timeout_secs: 5
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 + "\n"
- id: close
action: tcp_close
handle: tn
# The management menu after the password, and no rejection or new login
# prompt in what came back.
- id: check-login
action: script
condition: "gate == true"
store_as: logged_in
code: |
strstr(tn_out, "Configuration") != "" && strstr(tn_out, "USER:") == "" &&
ereg("(?i)incorrect|invalid|denied|failed", tn_out) == false
# ---------------------------------- control: same user, random password
- id: ctl-open
action: tcp_open
handle: ctl
port: "{{port}}"
condition: "logged_in == true"
read_banner: true
timeout_secs: 10
store_as: ctl_conn
- id: ctl-late-wait
action: sleep
condition: "logged_in == true && ctl_conn.connected == true && (type_of(ctl_conn.banner) != \"string\" || strstr(ctl_conn.banner, \"USER:\") == \"\")"
duration_ms: 2000
- id: ctl-late
action: tcp_send
handle: ctl
condition: "logged_in == true && ctl_conn.connected == true && (type_of(ctl_conn.banner) != \"string\" || strstr(ctl_conn.banner, \"USER:\") == \"\")"
send: ""
timeout_secs: 5
store_as: c_late
- id: ctl-user
action: tcp_send
handle: ctl
condition: "logged_in == true && ctl_conn.connected == true"
send: "{{acct.user}}\r\n"
timeout_secs: 5
store_as: c_user
- id: ctl-late-password-wait
action: sleep
condition: "logged_in == true && ctl_conn.connected == true && (type_of(c_user.response) != \"string\" || strstr(tolower(c_user.response), \"password\") == \"\")"
duration_ms: 1500
- id: ctl-late-password
action: tcp_send
handle: ctl
condition: "logged_in == true && ctl_conn.connected == true && (type_of(c_user.response) != \"string\" || strstr(tolower(c_user.response), \"password\") == \"\")"
send: ""
timeout_secs: 5
store_as: c_user_late
# Fail-closed: the control only counts when it demonstrably reached the
# password prompt. A refused 2nd connection (single-session router, rate
# limit) leaves the finding at QoD 75 — a hang-up there is not a refusal.
- id: ctl-ran-check
action: script
condition: "logged_in == 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(g, "USER:") != "" && 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
# Same waits as the default login: a slow accept-any login must not look
# like a refusal.
- id: ctl-wait-output
action: sleep
condition: "ctl_ran == true"
duration_ms: 1500
- id: ctl-flush
action: tcp_send
handle: ctl
condition: "ctl_ran == true"
send: ""
timeout_secs: 3
store_as: c_tail
- 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: 5
store_as: c_tail_late
# Hang-up check: a router that drops the session after a wrong password
# makes the second of two writes fail (the first one draws the reset).
- id: ctl-probe-1
action: tcp_send
handle: ctl
condition: "ctl_ran == true"
send: "\r\n"
timeout_secs: 2
store_as: c_probe1
# Give the reset drawn by the first write time to come back over a real
# network before the deciding write.
- id: ctl-probe-wait
action: sleep
condition: "ctl_ran == true"
duration_ms: 1000
- id: ctl-probe-2
action: tcp_send
handle: ctl
condition: "ctl_ran == true"
send: "\r\n"
timeout_secs: 2
store_as: c_probe2
- id: ctl-close
action: tcp_close
handle: ctl
- id: ctl-collect
action: script
condition: "ctl_ran == true"
store_as: c_out
code: |
let out = "";
for r in [c_pass, c_tail, c_tail_late, c_probe1, c_probe2] {
if type_of(r.response) == "string" { out += r.response + "\n"; }
}
out
- id: ctl-verdict
action: script
condition: "ctl_ran == true"
store_as: ctl_accepted
code: |
strstr(c_out, "Configuration") != ""
- id: ctl-refused-check
action: script
condition: "ctl_ran == true && ctl_accepted == false"
store_as: ctl_refused
code: |
strstr(c_out, "USER:") != "" ||
ereg("(?i)incorrect|invalid|denied|failed", c_out) ||
c_probe1.sent == false || c_probe2.sent == false
# ---------------------------------------------------------------- findings
- id: finding-confirmed
action: match
source: tn_out
pattern: "Configuration"
condition: "logged_in == true && ctl_refused == true"
on_match:
finding:
title: "Pirelli AGE mB router Telnet console with default credentials"
description: "The Pirelli AGE mB Telnet console accepted the default account '{{acct.user}}' / '{{acct.pass}}' and displayed its management menu; a login with the same user and a random password was refused."
remediation: "Set new passwords for the admin and user accounts of the router, restrict Telnet management to trusted hosts on the LAN or disable it, and replace the unsupported device."
confidence_delta: 0.65
qod: 97
evidence: "Default account '{{acct.user}}' / '{{acct.pass}}' accepted; console output after login: {{tn_out}}"
stop: true
- id: finding-login-only
action: match
source: tn_out
pattern: "Configuration"
condition: "logged_in == true && ctl_refused == false && ctl_accepted == false"
on_match:
finding:
title: "Pirelli AGE mB router Telnet console with default credentials"
description: "The Pirelli AGE mB Telnet console accepted the default account '{{acct.user}}' / '{{acct.pass}}' and displayed its management menu. A control login with a random password could not be run or gave no clear answer."
remediation: "Set new passwords for the admin and user accounts of the router, restrict Telnet management to trusted hosts on the LAN or disable it, and replace the unsupported device."
confidence_delta: 0.50
qod: 75
evidence: "Default account '{{acct.user}}' / '{{acct.pass}}' accepted; console output after login: {{tn_out}}"
stop: true