TinyWeb — 1 vulnerability check
noctis ships 1 vulnerability check for TinyWeb, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
TinyWeb <= 1.9 cgi-bin Request CPU Exhaustion DoS
| CVE | CVE-2003-1510 |
|---|---|
| Severity | high · CVSS 7.8 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | tcp_connect, script, match · highest QoD 70 |
| Feed | tests/vulnerabilities/tinyweb/CVE-2003-1510.yaml |
TinyWeb (RIT Research Labs, a small Windows web server) 1.9 and older lets a remote unauthenticated attacker exhaust the server's CPU with a crafted GET request to the cgi-bin directory that contains a `.%00.` sequence (for example `GET /cgi-bin/.%00./dddd.html`), which makes the web server unresponsive.
The test sends one plain `GET / HTTP/1.0` request (over TLS on HTTPS services), reads the `Server:` response header and reports the host when it advertises TinyWeb 1.9 or older (`TinyWeb/0.x` and `TinyWeb/1.0` to `TinyWeb/1.9`). Later releases (1.91 and up, such as 1.93 or 1.94) and other servers are not reported.
This is a version check, on purpose: the only way to confirm the flaw is to send the denial-of-service request itself, which would tie up the server's CPU, so it is never sent. The test only reads the response headers of the home page.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET / HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
ver.versionfor^[0-9]→ finding QoD 70: Server header '…': TinyWeb … is 1.9 or older (CPU exhaustion via GET /cgi-bin/.%00./...; not sent, it would hang the server).
References:
- https://nvd.nist.gov/vuln/detail/CVE-2003-1510
- http://www.securityfocus.com/bid/8810
- https://exchange.xforce.ibmcloud.com/vulnerabilities/13402
Feed source — tests/vulnerabilities/tinyweb/CVE-2003-1510.yaml
# Ported from OpenVAS/Greenbone NASL pre2008/tinyweb.nasl
# (OID 1.3.6.1.4.1.25623.1.0.11894, GPL-2.0-only), which reports
# `^Server:.*TinyWeb/(0\..*|1\.[0-9]([^0-9]|$))` in the response headers.
#
# Same version scope as the NASL (0.x and 1.0 to 1.9; 1.91 and later are not
# reported). Better than the NASL: only Server: lines of the header block are
# searched (a TinyWeb string in the body or another header is ignored), raw
# tcp_connect so a non-conformant reply is not dropped by an HTTP client, and
# HTTPS services are covered too.
#
# No benign proof exists: the bug is a CPU-consumption denial of service
# (GET /cgi-bin/.%00./<file>), so triggering it would hang the server. This feed
# never sends it.
uid: ee6a7507-7323-4146-a26b-aeb2c04ad416
name: "TinyWeb <= 1.9 cgi-bin Request CPU Exhaustion DoS (CVE-2003-1510)"
description: |
TinyWeb (RIT Research Labs, a small Windows web server) 1.9 and older lets a
remote unauthenticated attacker exhaust the server's CPU with a crafted GET
request to the cgi-bin directory that contains a `.%00.` sequence (for example
`GET /cgi-bin/.%00./dddd.html`), which makes the web server unresponsive.
The test sends one plain `GET / HTTP/1.0` request (over TLS on HTTPS services),
reads the `Server:` response header and reports the host when it advertises
TinyWeb 1.9 or older (`TinyWeb/0.x` and `TinyWeb/1.0` to `TinyWeb/1.9`). Later
releases (1.91 and up, such as 1.93 or 1.94) and other servers are not
reported.
This is a version check, on purpose: the only way to confirm the flaw is to send
the denial-of-service request itself, which would tie up the server's CPU, so
it is never sent. The test only reads the response headers of the home page.
cves: [CVE-2003-1510]
cvss: 7.8
severity: high
confidence_base: 0.30
category: exposure
tags: [tinyweb, ritlabs, dos, windows, version-check, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2003-1510"
- "http://www.securityfocus.com/bid/8810"
- "https://exchange.xforce.ibmcloud.com/vulnerabilities/13402"
steps:
# 1 — one plain request; only its response headers are used.
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: resp
# 2 — look for TinyWeb/<version> in every Server: header of the header block.
- id: version
action: script
store_as: ver
code: |
let out = #{ vulnerable: false, version: "", server: "" };
if type_of(resp.banner) == "string" {
let head = resp.banner;
let cut = stridx(head, "\r\n\r\n");
if cut < 0 { cut = stridx(head, "\n\n"); }
if cut >= 0 { head = substr(head, 0, cut); }
for raw in split(head, "\n") {
let line = eregmatch("^server:[ \\t]*([^\\r]*)", raw, true);
if line.len() < 2 { continue; }
let m = eregmatch("TinyWeb/(0\\.[0-9.]*|1\\.[0-9])([^0-9]|$)", line[1], true);
if m.len() < 2 { continue; }
out.vulnerable = true;
out.version = m[1];
out.server = line[1];
break;
}
}
out
- id: vulnerable_version
action: match
condition: "ver.vulnerable == true"
source: ver.version
pattern: "^[0-9]"
on_match:
stop: true
finding:
confidence_delta: 0.45
qod: 70
evidence: "Server header '{{ver.server}}': TinyWeb {{ver.version}} is 1.9 or older (CPU exhaustion via GET /cgi-bin/.%00./...; not sent, it would hang the server)."
remediation: "Upgrade TinyWeb to its latest release, or disable the cgi-bin directory and restrict access to the web server until it is upgraded."