Ruckus Unleashed — 1 vulnerability check
noctis ships 1 vulnerability check for Ruckus Unleashed, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Ruckus Unleashed /user/wps_tool_cache unauthenticated admin credential disclosure (rpmkey)
| CVE | CVE-2019-19843 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/ruckus-unleashed/CVE-2019-19843.yaml |
Reads the key revision from /user/wps_tool_cache/var/run/rpmkey.rev, fetches the matching rpmkey file unauthenticated and reports when it returns the admin credential material.
How noctis detects it
- HTTP(S) request
GET /user/wps_tool_cache/var/run/rpmkey.rev - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /user/wps_tool_cache/var/run/rpmkey{{rev_num}} - Parses / computes the next value with a Rhai script
- Checks
leak.verdictfor^ruckus-rpmkey-admin-credentials-exposed$→ finding QoD 75: GET /user/wps_tool_cache/var/run/rpmkey… (revision read unauthenticated from rpmkey.rev) returned HTTP 200 with the rpmd registry backup ho…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-19843
- https://alephsecurity.com/2020/01/14/ruckus-wireless/
- https://www.ruckuswireless.com/security/299/view/txt
Feed source — tests/vulnerabilities/ruckus-unleashed/CVE-2019-19843.yaml
uid: f9bbde5e-43aa-490b-a65d-c14838b77591
name: "CVE-2019-19843 — Ruckus Unleashed /user/wps_tool_cache unauthenticated admin credential disclosure (rpmkey)"
description: "Reads the key revision from /user/wps_tool_cache/var/run/rpmkey.rev, fetches the matching rpmkey file unauthenticated and reports when it returns the admin credential material."
cves: [CVE-2019-19843]
cvss: 9.8
severity: critical
category: exposure
confidence_base: 0.30
tags: [ruckus, unleashed, zonedirector, appweb, credential-disclosure, symlink, info-disclosure]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2019-19843"
- "https://alephsecurity.com/2020/01/14/ruckus-wireless/"
- "https://www.ruckuswireless.com/security/299/view/txt"
# Ported from OpenVAS/Greenbone NVT 2020/ruckuswireless/gb_ruckus_unleashed_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.143324, GPL-2.0-only).
#
# Ruckus Unleashed <= 200.7.10.102.64 (and ZoneDirector) ship a symlink
# /web/user/wps_tool_cache -> /tmp in the Appweb document root, and /var/run -> /tmp. rpmd
# keeps a daily backup of the configuration registry at /var/run/rpmkey<rev> (current
# revision in /var/run/rpmkey.rev). Without authentication, an attacker reads the revision,
# then the backup, which carries the admin account in clear text
# (all_powerful_login_name / all_powerful_login_password records).
#
# Benign, read-only proof: the same two GETs the NASL sends. The finding requires an HTTP
# 200 on the numbered backup AND the 'all_powerful_login_password' record in it — that is
# the admin password actually being served, not a version guess.
#
# Differences from the NASL (deliberate):
# - no prerequisite product fingerprint: the NASL only runs once its Ruckus detection has
# registered the CPE, so an Unleashed/ZoneDirector UI it fails to fingerprint is missed;
# the rpmkey record name is specific enough on its own;
# - rpmkey.rev must be a 200 whose whole body is a revision number (the NASL takes the
# first digit run of any reply, e.g. "404" from an error page or a login page);
# - the evidence only states whether a value follows the password record — no value and
# no length.
#
# Secrets: the engine copies a `match` step's whole source into the finding, and the backup
# holds the admin password. The `analyze` script reduces the reply to a fixed verdict token
# and a length, the `match` runs on that token, and no part of the body reaches the finding.
#
# The NASL is titled for CVE-2019-19834..19843 (same fixed firmware), but these GETs prove
# only the CVE-2019-19843 credential disclosure (wps_tool_cache -> /tmp), so only that CVE
# is reported. CVE-2019-19837 (no access control on /web file fetching) is the generic
# root cause; the remaining eight are command injection / SSRF / overflow / CLI bugs that
# these GETs do not exercise.
steps:
# Pre-initialise the stored results the scripts read: a failed request leaves `store_as`
# unset, and an undefined variable in a script aborts the whole test.
- id: init_rev
action: set_var
var_name: rev
var_value: {status: 0, body: ""}
- id: init_key
action: set_var
var_name: key
var_value: {status: 0, body: ""}
- id: get_rev
action: http_request
method: GET
path: "/user/wps_tool_cache/var/run/rpmkey.rev"
port: "{{port}}"
tls_insecure: true
store_as: rev
# Revision number = the whole body of a 200 reply (digits, surrounding whitespace / NUL
# padding allowed).
- id: parse_rev
action: script
code: |
let body = if type_of(rev.body) == "string" { rev.body } else { "" };
let m = eregmatch("^[\\s\\x00]*([0-9]{1,10})[\\s\\x00]*$", body);
if rev.status == 200 && m.len() > 1 { m[1] } else { "" }
store_as: rev_num
- id: get_key
action: http_request
condition: "rev_num != \"\""
method: GET
path: "/user/wps_tool_cache/var/run/rpmkey{{rev_num}}"
port: "{{port}}"
tls_insecure: true
store_as: key
# rpmkey is a binary registry dump: each record name is followed by non-printable framing
# bytes, then its value (what `strings` shows as the next line).
- id: analyze
action: script
code: |
let body = if type_of(key.body) == "string" { key.body } else { "" };
let verdict = "none";
if key.status == 200 && ereg("all_powerful_login_password", body) {
verdict = "ruckus-rpmkey-admin-credentials-exposed";
}
// Printable bytes after the record framing (best effort: the binary layout is undocumented).
let has_value = ereg("all_powerful_login_password[^\\x20-\\x7e]+[\\x20-\\x7e]", body);
#{ verdict: verdict, has_value: has_value, has_name: ereg("all_powerful_login_name", body) }
store_as: leak
- id: report
action: match
source: leak.verdict
pattern: "^ruckus-rpmkey-admin-credentials-exposed$"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "GET /user/wps_tool_cache/var/run/rpmkey{{rev_num}} (revision read unauthenticated from rpmkey.rev) returned HTTP 200 with the rpmd registry backup holding the 'all_powerful_login_password' admin record (password value present: {{leak.has_value}}, admin name record present: {{leak.has_name}}) — CVE-2019-19843. Values withheld."
stop: true