eMule — 1 vulnerability check
noctis ships 1 vulnerability check for eMule, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
eMule web interface DecodeBase16 stack overflow (eMule 0.42d and earlier)
| CVE | CVE-2004-1892 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Ports | 4711 |
| Detection | http_request, script, match · highest QoD 70 |
| Feed | tests/vulnerabilities/emule/CVE-2004-1892.yaml |
Requests the eMule web interface login page and confirms the product from its 'Server: eMule' header, then reads the version from the page title ('eMule 0.42d - Web Control Panel'). Reports eMule 0.42d and earlier, whose DecodeBase16 function copies an over-long hex string onto the stack (fixed in 0.42e). Version-based: no overflow payload is sent.
How noctis detects it
- HTTP(S) request
GET / - Parses / computes the next value with a Rhai script
- Checks
em.versionfor^[0-9]→ finding QoD 70: eMule web interface (Server: eMule) reports version …, affected by the DecodeBase16 stack overflow (fixed in 0.42e)
Feed source — tests/vulnerabilities/emule/CVE-2004-1892.yaml
# eMule web interface DecodeBase16 stack overflow (CVE-2004-1892).
# Source: OpenVAS NASL pre2008/eMuleWebServer_detect.nasl (GPL-2.0-only,
# OID 1.3.6.1.4.1.25623.1.0.12233), which reports any HTTP banner containing
# "eMule" on port 4711, whatever the version. This feed reads the version the
# eMule web server prints in the login page <title> ("eMule 0.42d - Web Control
# Panel", template TMPL_LOGIN "[eMuleAppName] [version] - [WebControl]") and
# reports only releases up to 0.42d (fixed in 0.42e, Bugtraq "eMule v0.42d
# Buffer Overflow", 2004-04-03: "eMule v0.42d (and probably earlier
# versions)"; the same DecodeBase16 code predates 0.42). The overflow is a stack smash with no benign
# trigger, so the check stays version-based (QoD 70).
# eMule Plus is a separate code base that neither NVD nor the advisory names:
# its "eMule Plus <ver>" title does not match the version regex below.
# cvss: NVD only has a v2 score (7.5) for this CVE.
uid: 788d1244-bd5b-4b5e-a1fc-aa76273c3788
name: "eMule web interface DecodeBase16 stack overflow (eMule 0.42d and earlier)"
description: "Requests the eMule web interface login page and confirms the product from its 'Server: eMule' header, then reads the version from the page title ('eMule 0.42d - Web Control Panel'). Reports eMule 0.42d and earlier, whose DecodeBase16 function copies an over-long hex string onto the stack (fixed in 0.42e). Version-based: no overflow payload is sent."
cves: [CVE-2004-1892]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.20
tags:
- rce
- buffer-overflow
- version-fingerprint
- p2p
- emule
services:
- http
- https
ports:
- 4711
author: noctis
version: "1.0.0"
steps:
- id: probe
action: http_request
method: GET
path: "/"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
store_as: resp
# Product gate on the Server header (the web server always sends
# "Server: eMule"), then the first "eMule X.Y[letter]" in the <title>.
- id: version
action: script
store_as: em
condition: "resp.status == 200"
code: |
let body = "";
if type_of(resp.body) == "string" { body = resp.body; }
let srv = "";
if type_of(resp.headers) == "map" && "server" in resp.headers { srv = resp.headers["server"]; }
if type_of(srv) != "string" || ereg("^eMule\\b", srv) != true {
#{ ok: false, version: "", vuln: false }
} else {
let m = eregmatch("<title>\\s*eMule ([0-9]+)\\.([0-9]+)([a-z]?)(?:[^0-9a-z.]|$)", body, true);
if type_of(m) != "array" || m.len() < 4 {
#{ ok: false, version: "", vuln: false }
} else {
let a = int(m[1]); let b = int(m[2]); let l = tolower(m[3]);
let vuln = a == 0 && (b < 42 || (b == 42 && (l == "" || stridx("abcd", l) >= 0)));
#{ ok: true, version: m[1] + "." + m[2] + l, vuln: vuln }
}
}
- id: check_version
action: match
source: em.version
pattern: "^[0-9]"
condition: "em.ok == true && em.vuln == true"
on_match:
finding:
confidence_delta: 0.55
qod: 70
evidence: "eMule web interface (Server: eMule) reports version {{em.version}}, affected by the DecodeBase16 stack overflow (fixed in 0.42e)"