Zeus — 1 vulnerability check
noctis ships 1 vulnerability check for Zeus, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Zeus Web Server SSL2_CLIENT_HELLO buffer overflow
| CVE | CVE-2010-0359 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 70 |
| Feed | tests/vulnerabilities/zeus/CVE-2010-0359.yaml |
Reads the Zeus Web Server version from the Server header and flags releases before 4.3r5, whose SSLv2 CLIENT-HELLO parser has a heap buffer overflow that lets a remote, unauthenticated attacker execute code. Version check only: triggering the overflow would crash the server.
How noctis detects it
- HTTP(S) request
GET / - Parses / computes the next value with a Rhai script
- Checks
zws.versionfor^[0-9]+\.[0-9]+(r[0-9]+)?$→ finding QoD 70: GET / answered with 'Server: Zeus/…' — below 4.3r5, whose SSLv2 CLIENT-HELLO parser has a heap buffer overflow (version check; the overflow…
References:
Feed source — tests/vulnerabilities/zeus/CVE-2010-0359.yaml
# Zeus Web Server SSL2_CLIENT_HELLO heap overflow — CVE-2010-0359
#
# Zeus Web Server before 4.3r5 overflows a heap buffer while parsing an SSLv2
# CLIENT-HELLO whose cipher-spec length field exceeds the data it carries
# (public PoC: Exploit-DB 33531). A remote, unauthenticated attacker reaches it
# on any SSL-enabled virtual server and can run code as the web server.
#
# Detection is a version check (QoD 70): the only way to exercise the bug is to
# send the oversized CLIENT-HELLO, which corrupts the heap and crashes (or
# worse) the worker — there is no benign, observable side effect a scanner can
# trigger instead. Fingerprint only, per the project rule for bugs that can be
# proven only destructively.
#
# Zeus writes `Server: Zeus/<major>.<minor>[r<revision>]` on every reply
# (e.g. `Zeus/4.3`, `Zeus/4.2r4`, `Zeus/4.3r5`).
#
# Improvements over the NASL:
# - The version is parsed into (major, minor, revision) and compared as
# integers, with a missing revision read as r0 — `4.3` (the original 4.3
# release) is correctly below 4.3r5, and a hypothetical `4.10` is never
# ordered below `4.3` by a string comparison.
# - The Server header must start with `Zeus/<digits>`: a header that merely
# contains "Zeus/" further along (a proxy chain, a renamed product) does
# not match.
#
# Ported from OpenVAS/Greenbone NVT 2010/zeus_webserver_37829.nasl
# (GPL-2.0-only): fixed version 4.3r5 and the Server header marker taken from
# that plugin.
uid: 9ee85c91-077c-452b-9b8b-40355b45e95f
name: "Zeus Web Server SSL2_CLIENT_HELLO buffer overflow (CVE-2010-0359)"
description: |
Reads the Zeus Web Server version from the Server header and flags releases
before 4.3r5, whose SSLv2 CLIENT-HELLO parser has a heap buffer overflow
that lets a remote, unauthenticated attacker execute code. Version check
only: triggering the overflow would crash the server.
cves: [CVE-2010-0359]
cvss: 10.0
severity: critical
category: exposure
confidence_base: 0.30
tags: [zeus, web-server, ssl, buffer-overflow, version-check, openvas, web-servers]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2010-0359"
- "https://www.exploit-db.com/exploits/33531"
# OpenVAS/Greenbone NASL 2010/zeus_webserver_37829.nasl (GPL-2.0-only)
steps:
# Pre-initialise so a failed request never leaves home undefined.
- id: init-home
action: set_var
var_name: home
var_value: {status: 0, body: "", headers: {}}
- id: home-page
action: http_request
method: GET
path: "/"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: home
# Server: Zeus/<major>.<minor>[r<rev>] → compare (major, minor, rev) as integers.
- id: parse-version
action: script
store_as: zws
code: |
let server = home.headers["server"];
let res = #{ found: false, version: "", vulnerable: false };
if type_of(server) == "string" {
let m = eregmatch("^Zeus/([0-9]+)[._]([0-9]+)(?:r([0-9]+))?([^0-9.]|$)", chomp(server));
if m.len() == 5 {
let rev = 0;
if m[3] != "" { rev = int(m[3]); }
let v = [int(m[1]), int(m[2]), rev];
let fixed = [4, 3, 5];
let lt = false;
let decided = false;
for i in 0..3 {
if !decided && v[i] != fixed[i] {
lt = v[i] < fixed[i];
decided = true;
}
}
res.found = true;
res.version = m[1] + "." + m[2];
if m[3] != "" { res.version += "r" + m[3]; }
res.vulnerable = lt;
}
}
res
- id: affected-version
action: match
condition: "zws.found == true && zws.vulnerable == true"
source: zws.version
pattern: "^[0-9]+\\.[0-9]+(r[0-9]+)?$"
on_match:
finding:
confidence_delta: 0.40 # 0.30 + 0.40 = 0.70
qod: 70
evidence: "GET / answered with 'Server: Zeus/{{zws.version}}' — below 4.3r5, whose SSLv2 CLIENT-HELLO parser has a heap buffer overflow (version check; the overflow itself is not triggered)"
remediation: "Upgrade Zeus Web Server to 4.3r5 or later."
stop: true