Alt-N WebAdmin — 1 vulnerability check
noctis ships 1 vulnerability check for Alt-N WebAdmin, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Alt-N WebAdmin 2.0.4 and older WebAdmin.dll multiple vulnerabilities
| CVE | CVE-2003-0471, CVE-2003-1463 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Ports | 1000 |
| Detection | script, set_var, http_request, match · highest QoD 70 |
| Feed | tests/vulnerabilities/alt-n-webadmin/webadmin-dll-multiple-vulnerabilities.yaml |
Detects Alt-N WebAdmin, the web administration interface of MDaemon, in a release affected by the WebAdmin.dll USER parameter buffer overflow (CVE-2003-0471), which lets an unauthenticated attacker run code with SYSTEM privileges, and, for 2.0.0 through 2.0.2, by the Name parameter path disclosure and absolute path traversal (CVE-2003-1463). The feed requests WebAdmin.dll in the web root, /scripts and /cgi-bin, and reads the version number that the WebAdmin login page shows. The page must name Alt-N or MDaemon or carry the WebAdmin.dll logon form, and a request for a random .dll name in the same directory must not return a WebAdmin page, so a server that answers every path is not reported. It reports the service when the page shows WebAdmin 2.0.4 or older; versions 2.0.0 to 2.0.2 are also reported for the path traversal. The finding rests on the version only: the overflow is never sent and no login is attempted.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/WebAdmin.dll - HTTP(S) request
GET {{dir}}/{{ctl_name}}.dll - Parses / computes the next value with a Rhai script
- Checks
wa.versionfor^[0-9]→ finding QoD 70: Alt-N WebAdmin … buffer overflow and path traversal - Checks
wa.versionfor^[0-9]→ finding QoD 70: Alt-N WebAdmin … USER buffer overflow
References:
- https://nvd.nist.gov/vuln/detail/CVE-2003-0471
- https://nvd.nist.gov/vuln/detail/CVE-2003-1463
- http://www.securityfocus.com/bid/8024
- http://www.securityfocus.com/bid/7438
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/http/altn_webadmin.rb
Feed source — tests/vulnerabilities/alt-n-webadmin/webadmin-dll-multiple-vulnerabilities.yaml
# Alt-N WebAdmin (WebAdmin.dll) 2.0.4 and older — USER buffer overflow
# (CVE-2003-0471) and, in 2.0.0–2.0.2, Name parameter path disclosure / absolute
# path traversal (CVE-2003-1463).
#
# Ported from OpenVAS/Greenbone NVT `pre2008/webadmin.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.11771, GPL-2.0-only), which only checks that a
# "webadmin.dll" CGI answers (http_is_cgi_installed_ka) and reports both CVEs.
#
# Sources:
# - CVE-2003-0471: buffer overflow in WebAdmin.dll via a long USER argument
# (BID 8024). The public exploits (wirepair's wa_exp.c "2.0.4 version",
# Metasploit altn_webadmin, "WebAdmin <= 2.0.4") target 2.0.1–2.0.4; the
# Metasploit auto-target reads the version from GET /WebAdmin.DLL with
# /WebAdmin.*v(2\..*)$/ — the login page carries "WebAdmin … v2.0.x" on one line.
# - CVE-2003-1463 (BID 7438): 2.0.0 through 2.0.2, admin-only absolute path
# traversal in File:Name / Directory:Name, fixed in 2.0.3.
#
# Detection (QoD 70, version): for /, /scripts and /cgi-bin, GET <dir>/WebAdmin.dll and
# read the first "vX.Y.Z" after "WebAdmin" on one line of the login page (case-sensitive,
# as the Metasploit regex). The page must also name Alt-N or MDaemon or carry the
# WebAdmin.dll?View=Logon form, and a control GET of a random <dir>/<name>.dll must not
# return a WebAdmin page (catch-all servers). 2.0.0–2.0.2 → both CVEs; 2.0.3–2.0.4
# (and any 1.x) → CVE-2003-0471 only. No in-band proof: the overflow can only be
# proven by crashing or hijacking the service, and the traversal needs an
# administrator session — so the version is the best benign signal.
#
# Better than the NASL: the NASL reports any web server that answers a request for
# webadmin.dll (fixed WebAdmin releases included, and any catch-all 200 page). This
# feed requires the WebAdmin login page itself with a vulnerable version number, and
# reports CVE-2003-1463 only for the versions it affects. It also runs on TCP port
# 1000, WebAdmin's default port, whatever service name the port scan gave it.
uid: a4911d51-0ba2-4714-ba40-d45bbe2b8ac8
name: "Alt-N WebAdmin 2.0.4 and older WebAdmin.dll multiple vulnerabilities"
description: |
Detects Alt-N WebAdmin, the web administration interface of MDaemon, in a release
affected by the WebAdmin.dll USER parameter buffer overflow (CVE-2003-0471), which
lets an unauthenticated attacker run code with SYSTEM privileges, and, for 2.0.0
through 2.0.2, by the Name parameter path disclosure and absolute path traversal
(CVE-2003-1463). The feed requests WebAdmin.dll in the web root, /scripts and
/cgi-bin, and reads the version number that the WebAdmin login page shows. The
page must name Alt-N or MDaemon or carry the WebAdmin.dll logon form, and a request
for a random .dll name in the same directory must not return a WebAdmin page, so a
server that answers every path is not reported. It reports the service when the
page shows WebAdmin 2.0.4 or older; versions 2.0.0
to 2.0.2 are also reported for the path traversal. The finding rests on the version
only: the overflow is never sent and no login is attempted.
category: rce
cves: [CVE-2003-0471, CVE-2003-1463]
# NVD has only a CVSS v2 score for these CVEs (7.5 for CVE-2003-0471).
cvss: 7.5
severity: high
confidence_base: 0.30
tags: [alt-n, webadmin, mdaemon, buffer-overflow, path-traversal, version-check, windows]
services: [http, https]
ports: [1000]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2003-0471"
- "https://nvd.nist.gov/vuln/detail/CVE-2003-1463"
- "http://www.securityfocus.com/bid/8024"
- "http://www.securityfocus.com/bid/7438"
- "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/http/altn_webadmin.rb"
steps:
# Random name for the catch-all control request.
- id: gen
action: script
code: |
"noctis" + rand_str(10)
store_as: ctl_name
# Loop group: every following step runs once per directory. Pre-initialise the
# stored result so a failed request never leaves it undefined or holding the
# previous directory's reply.
- id: init-page
action: set_var
var_name: page
var_value: {status: 0, body: ""}
loop:
var: dir
over: ["", "/scripts", "/cgi-bin"]
- id: init-ctl
action: set_var
var_name: ctl
var_value: {status: 0, body: ""}
- id: login-page
action: http_request
method: GET
path: "{{dir}}/WebAdmin.dll"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: page
# Control: a random .dll name in the same directory. A server that answers it
# with a WebAdmin-like page is a catch-all, not WebAdmin.
- id: control
action: http_request
method: GET
path: "{{dir}}/{{ctl_name}}.dll"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "page.status == 200"
store_as: ctl
# Read "WebAdmin … vX.Y.Z" (first version after "WebAdmin" on the same line) from
# a page that names Alt-N / MDaemon or carries the WebAdmin.dll?View=Logon form,
# unless the random control name got a WebAdmin page too.
- id: version
action: script
code: |
let b = if page.status == 200 && type_of(page.body) == "string" { page.body } else { "" };
let cb = if type_of(ctl) == "map" && ctl.status == 200 && type_of(ctl.body) == "string" { ctl.body } else { "" };
let product = ereg("Alt-N|MDaemon|WebAdmin\\.dll\\?View=Logon", b, true);
let catchall = stridx(cb, "WebAdmin") >= 0;
let m = eregmatch("WebAdmin[^\r\n]*?[^A-Za-z0-9.]v([0-9]+)\\.([0-9]+)\\.([0-9]+)", b);
if product && !catchall && type_of(m) == "array" && m.len() > 3 {
let a = int(m[1]);
let c = int(m[2]);
let d = int(m[3]);
let ver = m[1] + "." + m[2] + "." + m[3];
let bof = a < 2 || (a == 2 && c == 0 && d <= 4);
let trav = a == 2 && c == 0 && d <= 2;
#{ ok: true, version: ver, bof: bof, trav: trav }
} else {
#{ ok: false, version: "", bof: false, trav: false }
}
store_as: wa
- id: overflow-and-traversal
action: match
source: wa.version
pattern: "^[0-9]"
condition: "wa.ok == true && wa.trav == true"
on_match:
finding:
cves: [CVE-2003-0471, CVE-2003-1463]
title: "Alt-N WebAdmin {{wa.version}} buffer overflow and path traversal"
description: "The service is Alt-N WebAdmin {{wa.version}}. Its WebAdmin.dll overflows a stack buffer on a long USER login parameter, so an unauthenticated attacker can run code with SYSTEM privileges (CVE-2003-0471). Releases 2.0.0 to 2.0.2 also disclose the installation path and let an administrator read any file through an absolute path in the File:Name and Directory:Name parameters (CVE-2003-1463)."
confidence_delta: 0.40
qod: 70
evidence: "GET {{dir}}/WebAdmin.dll answered 200 with the WebAdmin login page showing version {{wa.version}} (2.0.4 and older: CVE-2003-0471; 2.0.0 to 2.0.2: CVE-2003-1463)."
remediation: "Upgrade Alt-N WebAdmin to a release later than 2.0.4, or restrict access to the WebAdmin port to trusted administrators."
stop: true
- id: overflow
action: match
source: wa.version
pattern: "^[0-9]"
condition: "wa.ok == true && wa.bof == true && wa.trav == false"
on_match:
finding:
cves: [CVE-2003-0471]
title: "Alt-N WebAdmin {{wa.version}} USER buffer overflow"
description: "The service is Alt-N WebAdmin {{wa.version}}. Its WebAdmin.dll overflows a stack buffer on a long USER login parameter, so an unauthenticated attacker can run code with SYSTEM privileges (CVE-2003-0471)."
confidence_delta: 0.40
qod: 70
evidence: "GET {{dir}}/WebAdmin.dll answered 200 with the WebAdmin login page showing version {{wa.version}} (2.0.4 and older: CVE-2003-0471)."
remediation: "Upgrade Alt-N WebAdmin to a release later than 2.0.4, or restrict access to the WebAdmin port to trusted administrators."
stop: true