Moxa Edr — 1 vulnerability check
noctis ships 1 vulnerability check for Moxa Edr, covering 5 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Moxa EDR-G903 router device status readable without authentication
| CVE | CVE-2016-0875, CVE-2016-0876, CVE-2016-0877, CVE-2016-0878, CVE-2016-0879 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/moxa-edr/moxa-edr-g903-unauth-status-disclosure.yaml |
Moxa EDR-G903 industrial secure routers with firmware 3.4.11 and earlier serve internal device files to anyone who can reach their web interface: configuration and log files can be read through crafted URLs without logging in (CVE-2016-0875, CVE-2016-0879), and those files hold passwords in plain text (CVE-2016-0876). The same firmware also has a ping function open to every user that leaks memory and can force a cold start (CVE-2016-0877, CVE-2016-0878); this test does not use it.
What the test sends: one unauthenticated `GET /xml/net_led_xml`, the router's front-panel status file. It only reads data and changes nothing on the device.
What confirms the finding: the reply (HTTP 200) is the router's status XML, with at least one `<ethN>` element holding a numeric value (interface state or IPv4 address) and a `<thermal>` element. The evidence lists the interface values that were disclosed. A fixed router (firmware 3.4.12 or later) asks for a login before serving this file.
How noctis detects it
- HTTP(S) request
GET /xml/net_led_xml - Parses / computes the next value with a Rhai script
- Checks
leak.verdictfor^interface (?:addresses|states): eth[0-9]+=→ finding QoD 75: Moxa EDR-G903 device status readable without authentication
References:
- https://www.cisa.gov/news-events/ics-advisories/icsa-16-042-01
- https://nvd.nist.gov/vuln/detail/CVE-2016-0875
- https://nvd.nist.gov/vuln/detail/CVE-2016-0876
- https://nvd.nist.gov/vuln/detail/CVE-2016-0877
- https://nvd.nist.gov/vuln/detail/CVE-2016-0878
- https://nvd.nist.gov/vuln/detail/CVE-2016-0879
Feed source — tests/vulnerabilities/moxa-edr/moxa-edr-g903-unauth-status-disclosure.yaml
# Moxa EDR-G903 industrial secure router — device files readable without
# authentication (ICS-CERT ICSA-16-042-01: CVE-2016-0875 configuration and log
# files readable via a crafted URL, CVE-2016-0879 imported files left
# downloadable, CVE-2016-0876 plaintext passwords in those files,
# CVE-2016-0877/-0878 ping memory leak / cold start). Fixed in firmware 3.4.12.
#
# Detection logic ported from the OpenVAS/Greenbone NVT
# 2016/gb_moxa_edr_g903_mult_vuln.nasl (OID 1.3.6.1.4.1.25623.1.0.808220,
# GPL-2.0-only). Kept as a comment: the description is product documentation.
#
# The NVT sends GET /xml/net_led_xml and reports when the HTTP 200 reply
# matches "<eth[0-9]>[0-9.]+</eth[0-9]>" and contains "<thermal>". The
# advisory does not publish the configuration/log file URLs, so the read-only
# status XML the NVT uses is the only public, non-destructive proof; the ping
# DoS (0877/0878) is never exercised.
#
# Better than the NVT:
# - the NVT needs a prior Moxa EDR CPE detection; this feed runs on every
# HTTP/HTTPS port and relies on the router-specific XML layout instead:
# a literal <ethN> element holding digits/dots plus a literal <thermal>
# element in the same 200 reply (a catch-all page quoting the tags as
# escaped text never matches);
# - <ethN> elements may carry attributes and N may have several digits;
# - the evidence lists the interface values that leaked, and says when they
# are IPv4 addresses.
uid: 139f4a55-76d1-4345-9319-5fd445b82ff8
name: "Moxa EDR-G903 router device status readable without authentication"
description: |
Moxa EDR-G903 industrial secure routers with firmware 3.4.11 and earlier
serve internal device files to anyone who can reach their web interface:
configuration and log files can be read through crafted URLs without
logging in (CVE-2016-0875, CVE-2016-0879), and those files hold passwords
in plain text (CVE-2016-0876). The same firmware also has a ping function
open to every user that leaks memory and can force a cold start
(CVE-2016-0877, CVE-2016-0878); this test does not use it.
What the test sends: one unauthenticated `GET /xml/net_led_xml`, the
router's front-panel status file. It only reads data and changes nothing on
the device.
What confirms the finding: the reply (HTTP 200) is the router's status XML,
with at least one `<ethN>` element holding a numeric value (interface
state or IPv4 address) and a `<thermal>` element. The evidence lists the
interface values that were disclosed. A fixed router (firmware 3.4.12 or later) asks for a login
before serving this file.
cves: [CVE-2016-0875, CVE-2016-0876, CVE-2016-0877, CVE-2016-0878, CVE-2016-0879]
cvss: 7.5
severity: high
category: exposure
confidence_base: 0.30
tags: [moxa, edr-g903, router, ics, scada, information-disclosure, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://www.cisa.gov/news-events/ics-advisories/icsa-16-042-01"
- "https://nvd.nist.gov/vuln/detail/CVE-2016-0875"
- "https://nvd.nist.gov/vuln/detail/CVE-2016-0876"
- "https://nvd.nist.gov/vuln/detail/CVE-2016-0877"
- "https://nvd.nist.gov/vuln/detail/CVE-2016-0878"
- "https://nvd.nist.gov/vuln/detail/CVE-2016-0879"
steps:
# Pre-init what the script reads: a failed request stores nothing, and an
# undefined variable would abort the test.
- id: init-status
action: set_var
var_name: status
var_value: {status: 0, body: ""}
- id: fetch-status
action: http_request
method: GET
path: "/xml/net_led_xml"
port: "{{port}}"
tls_insecure: true
timeout_secs: 10
store_as: status
# Keep only the facts the finding needs: the <ethN> elements whose value is
# digits/dots (link state or interface address), and whether the <thermal>
# element is present.
- id: parse-status
action: script
store_as: leak
code: |
let none = #{ hit: false, verdict: "" };
if status.status != 200 || type_of(status.body) != "string" { return none; }
let body = status.body;
if !ereg("<thermal[\\s/>]", body) { return none; }
let found = "";
let has_ip = false;
let rest = body;
let n = 0;
while n < 16 {
let m = eregmatch("<eth([0-9]+)(?:\\s[^>]*)?>\\s*([0-9][0-9.]*)\\s*</eth[0-9]+>", rest);
if m.len() < 3 { break; }
if found != "" { found += ", "; }
found += "eth" + m[1] + "=" + m[2];
if ereg("^[0-9]{1,3}(?:\\.[0-9]{1,3}){3}$", m[2]) { has_ip = true; }
let at = stridx(rest, m[0]);
rest = rest.sub_string(at + m[0].len());
n += 1;
}
if found == "" { return none; }
let kind = if has_ip { "interface addresses" } else { "interface states" };
#{ hit: true, verdict: kind + ": " + found }
- id: report-status
action: match
condition: "leak.hit == true"
source: leak.verdict
pattern: "^interface (?:addresses|states): eth[0-9]+="
on_match:
finding:
title: "Moxa EDR-G903 device status readable without authentication"
description: "An unauthenticated GET /xml/net_led_xml returned the router's internal status XML (interface values and thermal state). Moxa EDR-G903 firmware 3.4.11 and earlier serves device files without a login, including configuration and log files that hold plain-text passwords (CVE-2016-0875, CVE-2016-0876, CVE-2016-0879), and also has a ping function that leaks memory and can force a cold start (CVE-2016-0877, CVE-2016-0878)."
remediation: "Update the router to Moxa EDR-G903 firmware 3.4.12 or later, then change the router's passwords. Until then, allow access to the router's web interface only from management hosts."
confidence_delta: 0.45
qod: 75
evidence: "GET /xml/net_led_xml (HTTP 200, no login) returned the status XML with a <thermal> element; {{leak.verdict}}"