ServletExec — 1 vulnerability check
noctis ships 1 vulnerability check for ServletExec, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Unify eWave ServletExec 3.0C UploadServlet Unauthenticated File Upload
| CVE | CVE-2000-1024 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 70 |
| Feed | tests/vulnerabilities/servletexec/CVE-2000-1024.yaml |
Checks whether the ServletExec UploadServlet (com.unify.servletexec.UploadServlet or com.unify.ewave.servletexec.UploadServlet) can be invoked through the /servlet/ invoker without authentication, using a random-servlet control and a same-package non-existent class control. An invocable UploadServlet lets an attacker upload any file to any directory (e.g. a JSP in the web root), leading to remote command execution.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /servlet/vt-test.{{tok}} - HTTP(S) request
GET /servlet/{{pkg}}.NoctisMissing{{tok}} - HTTP(S) request
GET /servlet/{{pkg}}.UploadServlet - Parses / computes the next value with a Rhai script
- Checks
hitfor^UPLOADSERVLET_INVOCABLE \d{3}$→ finding QoD 70: GET /servlet/….UploadServlet on …:… answered HTTP … while /servlet/vt-test.… and /servlet/….NoctisMissing… answered 404: the ServletExec Up…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2000-1024
- https://seclists.org/bugtraq/2000/Nov/8
- https://www.securityfocus.com/bid/1876
Feed source — tests/vulnerabilities/servletexec/CVE-2000-1024.yaml
# Unify eWave ServletExec 3.0C — UploadServlet invocable without authentication
# (CVE-2000-1024).
#
# Ported from OpenVAS/Greenbone NASL pre2008/ewave_servlet_upload.nasl
# (OID 1.3.6.1.4.1.25623.1.0.10570, GPL-2.0-only), after the Foundstone advisory
# FS-103100-16-SRVX (Bugtraq, 2000-10-31).
#
# ServletExec 3.0C ships an unregistered `UploadServlet` class that the
# /servlet/<class> invoker still runs. A multipart POST with an `uploadDir`
# field and a `File1` file writes any file to any directory (e.g. a JSP into the
# web root → command execution). Fixed in ServletExec 3.0E.
#
# Detection — endpoint reachability with a differential control, as the NASL:
# 1. GET /servlet/vt-test.<random>: an invoker that answers anything with
# non-404 makes the check meaningless → stop (the NASL's own control).
# 2. GET /servlet/<pkg>.UploadServlet and a non-existent sibling class
# /servlet/<pkg>.NoctisMissing<random> in the same package.
# 3. Report only when both controls answer exactly 404 and UploadServlet
# answers 200 / 400 / 405 / 500 (the servlet was loaded and ran).
#
# Why no exploitation proof (QoD 70): the only way to prove the bug is to write a
# file on the target. The upload directory that maps to the web root is unknown
# (ServletExec runs as an IIS / Netscape / Apache plug-in with any doc root), so a
# marker could not be read back, and nothing could delete it afterwards — a
# guessed path would leave files on the host. Read-only GET requests only.
#
# Better than the NASL:
# - also probes the advisory's class name com.unify.ewave.servletexec.UploadServlet
# (the NASL only knows com.unify.servletexec.UploadServlet);
# - a same-package sibling control rejects invokers that answer every class
# of the package (e.g. 500 "class not found") — the NASL would flag them;
# - fail-closed controls (must be an actual 404, not just "not 200"), and
# 401/403/3xx on UploadServlet are not reported (servlet not reachable);
# - HTTPS covered.
uid: 6da639f1-6c7c-42e9-8bca-8571482b6d41
name: "CVE-2000-1024 — Unify eWave ServletExec 3.0C UploadServlet Unauthenticated File Upload"
description: |
Checks whether the ServletExec UploadServlet (com.unify.servletexec.UploadServlet
or com.unify.ewave.servletexec.UploadServlet) can be invoked through the
/servlet/ invoker without authentication, using a random-servlet control and a
same-package non-existent class control. An invocable UploadServlet lets an
attacker upload any file to any directory (e.g. a JSP in the web root), leading
to remote command execution.
cves: [CVE-2000-1024]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [servletexec, unify, ewave, upload, file-upload, servlet, openvas]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2000-1024"
- "https://seclists.org/bugtraq/2000/Nov/8"
- "https://www.securityfocus.com/bid/1876"
- "OpenVAS/Greenbone NASL pre2008/ewave_servlet_upload.nasl (OID 1.3.6.1.4.1.25623.1.0.10570, GPL-2.0-only)"
steps:
# Per-run random suffix (12 hex chars, valid in a Java class name).
- id: token
action: script
code: |
oob_token.sub_string(0, 8) + oob_token.sub_string(9, 4)
store_as: tok
- id: ctl-init
action: set_var
var_name: ctl
var_value: {status: 0}
# 1 — the NASL's control: a random servlet name must be a real 404.
- id: ctl-random
action: http_request
method: GET
path: "/servlet/vt-test.{{tok}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: ctl
# 2 — per class name: same-package missing-class control + UploadServlet.
- id: pair-init
action: set_var
var_name: sib
var_value: {status: 0}
loop:
over:
- "com.unify.servletexec"
- "com.unify.ewave.servletexec"
var: pkg
- id: up-init
action: set_var
var_name: up
var_value: {status: 0}
- id: ctl-sibling
action: http_request
condition: "ctl.status == 404"
method: GET
path: "/servlet/{{pkg}}.NoctisMissing{{tok}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: sib
- id: upload-servlet
action: http_request
condition: "ctl.status == 404 && sib.status == 404"
method: GET
path: "/servlet/{{pkg}}.UploadServlet"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: up
- id: verdict
action: script
code: |
let s = up.status;
if ctl.status == 404 && sib.status == 404 && (s == 200 || s == 400 || s == 405 || s == 500) {
"UPLOADSERVLET_INVOCABLE " + s
} else {
""
}
store_as: hit
- id: report
action: match
source: hit
pattern: '^UPLOADSERVLET_INVOCABLE \d{3}$'
on_match:
finding:
confidence_delta: 0.40
qod: 70
evidence: "GET /servlet/{{pkg}}.UploadServlet on {{target_host}}:{{port}} answered HTTP {{up.status}} while /servlet/vt-test.{{tok}} and /servlet/{{pkg}}.NoctisMissing{{tok}} answered 404: the ServletExec UploadServlet is invocable without authentication (arbitrary file upload, fixed in ServletExec 3.0E)"
stop: true