Mediahouse Statistics Server — 1 vulnerability check
noctis ships 1 vulnerability check for Mediahouse Statistics Server, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Mediahouse Statistics Server < 5.03 Long GET Request Buffer Overflow
| CVE | CVE-2000-0776 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 70 |
| Feed | tests/vulnerabilities/mediahouse-statistics-server/CVE-2000-0776.yaml |
Detects Mediahouse Statistics Server (LiveStats) releases before 5.03, whose web server overflows a buffer when a GET request carries a very long URL, which lets an unauthenticated attacker run code on the host. The feed sends a plain GET / and requires the "Statistics Server" Server header in the reply. It reads the version from that header or, when the header has none, from the title of the page the server redirects to, and reports versions below 5.03. The check is version-based: no long URL is sent, so the server is never crashed.
How noctis detects it
- HTTP(S) request
GET / - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{hs.loc}} - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Checks
ver.versionfor^[0-9]→ finding QoD 70: Mediahouse Statistics Server < 5.03 Long GET Request Buffer Overflow (CVE-2000-0776)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2000-0776
- https://www.securityfocus.com/bid/1568/info
- https://www.exploit-db.com/exploits/20146
Feed source — tests/vulnerabilities/mediahouse-statistics-server/CVE-2000-0776.yaml
# Mediahouse Statistics Server < 5.03 long GET buffer overflow — CVE-2000-0776
#
# Mediahouse (later DeepMetrix) Statistics Server LiveStats 5.02x overflows a
# stack buffer when a GET request carries a URL of more than about 2030 bytes
# (BID 1568, public exploit spawning a SYSTEM shell); earlier releases have the
# same class of bug in their Server ID handling (BID 734). Version 5.03 fixed
# it. The only behavioural proof is the overflow itself (crash or code
# execution), so the feed reads the version instead and never sends a long URL.
#
# Detection (read-only), QoD 70:
# 1. GET / without following redirects. The reply must carry a
# "Server: Statistics Server" header (product gate).
# 2. The version comes from that header ("Statistics Server 5.02", as nmap's
# service probe reads it); when the header has none, the feed follows the
# Location of the reply once (only a path under 256 bytes) and reads
# "<TITLE>Statistics Server X</TITLE>" from that page, as the reference
# check does, or from / itself when there is no redirect.
# 3. Versions before 5.03 are reported: major < 5, or 5.00–5.02 (a one-digit
# minor such as 5.2 is read as 5.20, i.e. fixed).
#
# Improvements over the source NASL: version also read from the Server header
# (the NASL only reads the redirect target's title), a numeric comparison
# instead of the regex "(([0-4]\.[0-9].*)|5\.0[0-2])" (which also matches inside
# "15.02"), and no finding at all for a fixed or unknown version (the NASL
# reports every Statistics Server it sees).
#
# CVSS: CVE-2000-0776 v2 7.5 (NVD has no v3 score).
#
# Ported from OpenVAS/Greenbone NVT pre2008/mediahouse_statistics_web_server.nasl
# (OID 1.3.6.1.4.1.25623.1.0.10748, GPL-2.0-only).
uid: a70ade7d-ad4d-4289-846f-b895af72ccee
name: "Mediahouse Statistics Server < 5.03 Long GET Request Buffer Overflow (CVE-2000-0776)"
description: |
Detects Mediahouse Statistics Server (LiveStats) releases before 5.03, whose
web server overflows a buffer when a GET request carries a very long URL,
which lets an unauthenticated attacker run code on the host. The feed sends a
plain GET / and requires the "Statistics Server" Server header in the reply.
It reads the version from that header or, when the header has none, from the
title of the page the server redirects to, and reports versions below 5.03.
The check is version-based: no long URL is sent, so the server is never
crashed.
cves: [CVE-2000-0776]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.20
tags: [mediahouse, deepmetrix, statistics-server, livestats, buffer-overflow, version-check]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2000-0776"
- "https://www.securityfocus.com/bid/1568/info"
- "https://www.exploit-db.com/exploits/20146"
# OpenVAS/Greenbone NASL pre2008/mediahouse_statistics_web_server.nasl (GPL-2.0-only)
steps:
- id: init-page
action: set_var
var_name: page
var_value: {status: 0, body: ""}
- id: init-root
action: set_var
var_name: root
var_value: {status: 0, body: ""}
- id: root
action: http_request
method: GET
path: "/"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
store_as: root
# Product gate + version from the Server header; Location path for step 2.
- id: parse-root
action: script
code: |
let r = #{ ok: false, version: "", loc: "" };
if root.status > 0 && type_of(root.headers) == "map" && type_of(root.headers["server"]) == "string" {
let srv = root.headers["server"];
if ereg("^[Ss]tatistics Server", srv) {
r.ok = true;
let v = eregmatch("^[Ss]tatistics Server[ /]*([0-9]+\\.[0-9]+[-.A-Za-z0-9]*)", srv);
if v.len() > 1 { r.version = v[1]; }
if type_of(root.headers["location"]) == "string" {
let l = ereg_replace("^[A-Za-z]+://[^/]*", "", root.headers["location"]);
if l == "" { l = "/"; }
if substr(l, 0, 0) != "/" { l = "/" + l; }
// A real Statistics Server redirects to a short login URL; never
// follow a long one (the bug is a long-URL overflow).
if strlen(l) < 256 { r.loc = l; }
}
}
}
r
store_as: hs
- id: follow-location
action: http_request
method: GET
path: "{{hs.loc}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
condition: 'hs.ok == true && hs.version == "" && hs.loc != ""'
store_as: page
# No redirect: the version may sit in the title of / itself.
- id: use-root-page
action: script
code: 'if hs.ok == true && hs.version == "" && hs.loc == "" { root } else { page }'
store_as: page
# Version from the page title when the header had none, then compare.
- id: verdict
action: script
code: |
let r = #{ version: hs.version, vuln: false };
if hs.ok == true && r.version == "" && type_of(page.body) == "string" {
let t = eregmatch("<title>[ ]*statistics server ([0-9]+\\.[0-9]+[-.A-Za-z0-9]*)", page.body, true);
if t.len() > 1 { r.version = t[1]; }
}
if hs.ok == true && r.version != "" {
let p = eregmatch("^([0-9]+)\\.([0-9]+)", r.version);
if p.len() > 2 {
let major = int(p[1]);
let mi = p[2];
let minor = if strlen(mi) == 1 { int(mi) * 10 } else { int(substr(mi, 0, 1)) };
r.vuln = major < 5 || (major == 5 && minor <= 2);
}
}
r
store_as: ver
- id: report
action: match
source: ver.version
pattern: "^[0-9]"
condition: 'hs.ok == true && ver.vuln == true'
on_match:
finding:
title: "Mediahouse Statistics Server < 5.03 Long GET Request Buffer Overflow (CVE-2000-0776)"
description: "The web server identifies itself as Mediahouse Statistics Server in a version before 5.03. These releases overflow a buffer when a GET request carries a very long URL, and a public exploit uses it to open a remote shell with the server's privileges (SYSTEM in a default installation). The version was read from the server; no long request was sent."
remediation: "Upgrade Statistics Server to 5.03 or later, or replace the product, which is no longer maintained. Until then, block access to its web port from untrusted networks."
confidence_delta: 0.50
qod: 70
evidence: "Statistics Server version {{ver.version}} (fixed in 5.03)"