Compaq Wbem — 1 vulnerability check
noctis ships 1 vulnerability check for Compaq Wbem, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Compaq Web-Based Management agent open HTTP proxy
| CVE | CVE-2001-0374 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | exposure — Exposure |
| Services | http, https |
| Ports | 2301 |
| Detection | http_request, set_var, script, tcp_connect, wait_oob, match · highest QoD 97 |
| Feed | tests/vulnerabilities/compaq-wbem/CVE-2001-0374.yaml |
Detects Compaq web-enabled management agents (Foundation, Survey, Power Manager, Availability agents, Intelligent Cluster Administrator, Insight Manager) whose web server, identified by its `CompaqHTTPServer` Server header, forwards proxy-style requests for any unauthenticated client (CVE-2001-0374). When OOB is configured, the feed asks the agent to fetch a per-run callback URL and reports the forwarding once the callback arrives. Otherwise it requests `http://127.0.0.1:2301/` through the agent and requires the agent's home page in the reply, while a control request for a closed loopback port must not return it — so a server that simply ignores the host part of an absolute URL is not reported.
How noctis detects it
- HTTP(S) request
GET / - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{oob_url}} HTTP/1.0 - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: Compaq management web server (…) forwarded `GET …` to the OOB server (HTTP callback received): it acts as an open HTTP proxy
- Raw TCP (TLS on HTTPS), sent verbatim:
GET http://127.0.0.1:2301/ HTTP/1.0 - Raw TCP (TLS on HTTPS), sent verbatim:
GET http://127.0.0.1:1/ HTTP/1.0 - Checks
probe.bannerforCompaq WBEM Device Home→ finding QoD 75: Compaq management web server (…) returned the agent home page for `GET http://127.0.0.1:2301/` but not for the control `GET http://127.0.0.…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2001-0374
- http://www.compaq.com/products/servers/management/SSRT0758.html
Feed source — tests/vulnerabilities/compaq-wbem/CVE-2001-0374.yaml
# Compaq Web-Based Management agent — the management web server is an open HTTP proxy
# (CVE-2001-0374, Compaq advisory SSRT0758)
#
# Ported from OpenVAS/Greenbone NVT `pre2008/DDI_Compaq_Mgmt_Proxy.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.10963, GPL-2.0-only, © 2002 Digital Defense Inc.) and
# its detection dependency `compaq_wbem_detect.nasl` (Server: CompaqHTTPServer/).
#
# The HTTP server shipped with the Compaq Foundation / Survey / Power Manager /
# Availability agents, Intelligent Cluster Administrator and Insight Manager
# (management port 2301, HTTPS 2381) accepts proxy-style requests
# (`GET http://host:port/path`) and fetches the URL for any unauthenticated
# client — firewall bypass, source hiding.
#
# Detection — plain GETs only, nothing is written on the target:
# 0. Fingerprint gate, as the NASL's dependency: `GET /` must answer with a
# `Server: CompaqHTTPServer/…` header. Generic open proxies are not this CVE.
# 1. OOB (QoD 97, only when OOB is configured): `GET <oob_url> HTTP/1.0` through
# the agent. The per-run callback proves the agent fetched an arbitrary
# external URL.
# 2. In-band (QoD 75): the NASL request `GET http://127.0.0.1:2301/ HTTP/1.0`
# must return the agent's "Compaq WBEM Device Home" page, AND a control
# request `GET http://127.0.0.1:1/ HTTP/1.0` (a port nothing listens on) must
# answer without that page.
#
# Better than the NASL: an HTTP/1.1 origin server must accept absolute-URI
# requests and serve its *own* resource, ignoring the authority — so a fixed or
# proxy-disabled agent asked for `http://127.0.0.1:2301/` returns its own home
# page, and the NASL reports it although nothing was proxied. The control request
# separates the two: a server that ignores the authority returns the same page for
# port 1, a real proxy fails to reach port 1. The OOB branch also proves forwarding
# to an outside host, which the loopback-only NASL cannot.
uid: 114daff2-1d96-4c90-9160-072f27c41a5c
name: "Compaq Web-Based Management agent open HTTP proxy (CVE-2001-0374)"
description: |
Detects Compaq web-enabled management agents (Foundation, Survey, Power Manager,
Availability agents, Intelligent Cluster Administrator, Insight Manager) whose web
server, identified by its `CompaqHTTPServer` Server header, forwards proxy-style
requests for any unauthenticated client (CVE-2001-0374). When OOB is configured,
the feed asks the agent to fetch a per-run callback URL and reports the forwarding
once the callback arrives. Otherwise it requests `http://127.0.0.1:2301/` through
the agent and requires the agent's home page in the reply, while a control request
for a closed loopback port must not return it — so a server that simply ignores
the host part of an absolute URL is not reported.
cves: [CVE-2001-0374]
cvss: 7.5 # NVD publishes only a CVSS v2 score (7.5) for this CVE
severity: high
confidence_base: 0.30
category: exposure
tags: [compaq, hp, wbem, insight-manager, open-proxy]
services: [http, https]
ports: [2301] # 2381 (HTTPS) is covered when nmap names it https; under another name the scheme would be http
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2001-0374"
- "http://www.compaq.com/products/servers/management/SSRT0758.html"
steps:
- id: home
action: http_request
method: GET
path: "/"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: home
- id: init-compaq
action: set_var
var_name: compaq
var_value: false
# Server: CompaqHTTPServer/<version> — a missing header leaves compaq false.
- id: fingerprint
action: script
condition: "ereg(\"^\\\\s*CompaqHTTPServer/\", home.headers[\"server\"], true)"
code: "true"
store_as: compaq
# 1. Forward to the per-run OOB URL.
- id: proxy-oob
action: tcp_connect
port: "{{port}}"
timeout_secs: 10
condition: "compaq && oob_enabled"
send: "GET {{oob_url}} HTTP/1.0\r\nHost: {{oob_host}}:{{oob_port}}\r\n\r\n"
store_as: oob_req
- id: wait-callback
action: wait_oob
oob_timeout_secs: 15
condition: "compaq && oob_enabled"
store_as: oob_result
on_success:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Compaq management web server ({{home.headers.server}}) forwarded `GET {{oob_url}}` to the OOB server (HTTP callback received): it acts as an open HTTP proxy"
stop: true
# 2. The NASL request, then the control towards a closed loopback port.
- id: proxy-loopback
action: tcp_connect
port: "{{port}}"
timeout_secs: 10
condition: "compaq"
send: "GET http://127.0.0.1:2301/ HTTP/1.0\r\n\r\n"
store_as: probe
- id: proxy-control
action: tcp_connect
port: "{{port}}"
timeout_secs: 10
condition: "compaq"
send: "GET http://127.0.0.1:1/ HTTP/1.0\r\n\r\n"
store_as: ctrl
- id: confirm-loopback
action: match
source: probe.banner
pattern: "Compaq WBEM Device Home"
condition: "compaq && probe.connected == true && type_of(ctrl.banner) == \"string\" && stridx(ctrl.banner, \"Compaq WBEM Device Home\") < 0"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "Compaq management web server ({{home.headers.server}}) returned the agent home page for `GET http://127.0.0.1:2301/` but not for the control `GET http://127.0.0.1:1/`: it forwards absolute-URI requests (open HTTP proxy)"
stop: true