SnapStream PVS — 1 vulnerability check

noctis ships 1 vulnerability check for SnapStream PVS, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

SnapStream PVS Web Interface Directory Traversal

CVECVE-2001-1108
Severityhigh · CVSS 7.5
Categoryfile-read — File read
Serviceshttp, https
Ports8129
Detectionset_var, http_request, match, tcp_connect, script · highest QoD 75
Feedtests/vulnerabilities/snapstream-pvs/CVE-2001-1108.yaml

Tests the web interface of SnapStream PVS (Personal Video Station) for the directory traversal in its URL handling. Without any login, the feed requests "/" followed by eight "../" sequences and windows/win.ini, winnt/win.ini or boot.ini, and reports the server when one of these Windows system files comes back in a 200 reply, which shows that any file on the drive can be read, including the product's own configuration file with its user names and passwords. A control request for an absent random file must not return any of these files, so a server that serves the same content on every request is not reported. On the default PVS port 8129 the probe is always sent; on any other web port only when the home page or the Server header names SnapStream. Only the standard Windows configuration files are read.

How noctis detects it

  1. HTTP(S) request GET /
  2. Checks home_r.body for (?i)snapstream|personal video station
  3. Checks home_r.headers.server for (?i)snapstream
  4. Raw TCP (TLS on HTTPS), sent verbatim: GET /../../../../../../../../windows/win.ini HTTP/1.0
  5. Checks winini_r.banner for (?s)^HTTP/1\.[01] 200\b.*(; for 16-bit app support|\[fonts\])
  6. Raw TCP (TLS on HTTPS), sent verbatim: GET /../../../../../../../../winnt/win.ini HTTP/1.0
  7. Checks winnt_r.banner for (?s)^HTTP/1\.[01] 200\b.*(; for 16-bit app support|\[fonts\])
  8. Raw TCP (TLS on HTTPS), sent verbatim: GET /../../../../../../../../boot.ini HTTP/1.0
  9. Checks bootini_r.banner for (?s)^HTTP/1\.[01] 200\b.*\[boot loader\]
  10. Parses / computes the next value with a Rhai script
  11. Raw TCP (TLS on HTTPS), sent verbatim: GET {{ctrl_path}} HTTP/1.0
  12. Checks ctrl_r.banner for (; for 16-bit app support|\[fonts\]|\[boot loader\])
  13. Checks win_file for ^(windows/win\.ini|winnt/win\.ini|boot\.ini)$ → finding QoD 75: SnapStream PVS Web Interface Directory Traversal (CVE-2001-1108)

References:

Feed source — tests/vulnerabilities/snapstream-pvs/CVE-2001-1108.yaml
# SnapStream PVS web interface directory traversal — CVE-2001-1108
#
# SnapStream PVS (Personal Video Station) 1.2a for Windows ships an HTTP
# interface, by default on TCP 8129, running as the logged-in user. The server
# does not strip "../" from the requested URL path, so a request such as
# GET /../../../../autoexec.bat returns any file on the drive (Interrorem
# advisory, Bugtraq 2001-07-26, BID 3100). The same advisory notes that
# /../ssd.ini, one level above the web root, holds the product's plaintext
# user names and passwords.
#
# Detection (benign, read-only): GET /../ x8 windows/win.ini, then
# winnt/win.ini (Windows NT/2000), then boot.ini, sent verbatim through
# tcp_connect (reqwest would resolve the "../" before sending), and match the
# file CONTENT ("; for 16-bit app support", "[fonts]", "[boot loader]") under
# an HTTP 200 status line. QoD 75 (response analysis).
#
# Improvements over the source NASL:
#   - The NASL reports a 200 status for /../ssd.ini, /../../../../autoexec.bat
#     or /../../../winnt/repair/sam, whatever the body: any server answering
#     200 to every path (catch-all page, login redirect page) is reported. The
#     feed requires the content of a known Windows file instead, and never
#     reads ssd.ini (plaintext passwords) or the SAM hive.
#   - A control request for an absent random file, in a missing directory but
#     ending with the file that hit, must come back WITHOUT any file
#     signature, so a tarpit or honeypot serving the same file on every
#     request is not reported (fail-closed: no control reply → no finding).
#   - A "/../" traversal at the web root is not specific to this product. On
#     a port other than PVS's default 8129 the feed only probes when the
#     server's home page or Server header names SnapStream, so another
#     traversable web server is not reported as CVE-2001-1108.
#
# Ported from OpenVAS/Greenbone NVT pre2008/snapstream_dir_trav.nasl
# (GPL-2.0-only).
uid: f0c2f958-b381-4103-87d8-e58c2d1d792f
name: "SnapStream PVS Web Interface Directory Traversal (CVE-2001-1108)"
description: |
  Tests the web interface of SnapStream PVS (Personal Video Station) for the
  directory traversal in its URL handling. Without any login, the feed
  requests "/" followed by eight "../" sequences and windows/win.ini,
  winnt/win.ini or boot.ini, and reports the server when one of these Windows
  system files comes back in a 200 reply, which shows that any file on the
  drive can be read, including the product's own configuration file with its
  user names and passwords. A control request for an absent random file must
  not return any of these files, so a server that serves the same content on
  every request is not reported. On the default PVS port 8129 the probe is
  always sent; on any other web port only when the home page or the Server
  header names SnapStream. Only the standard Windows configuration files are
  read.
cves: [CVE-2001-1108]
cvss: 7.5
severity: high
category: file-read
confidence_base: 0.30
tags: [snapstream, pvs, personal-video-station, path-traversal, file-read, windows]
services: [http, https]
ports: [8129]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2001-1108"
  - "https://seclists.org/bugtraq/2001/Jul/606"
  - "https://www.exploit-db.com/exploits/21030"
  # OpenVAS/Greenbone NASL pre2008/snapstream_dir_trav.nasl (GPL-2.0-only)

steps:
  - id: init-pvs
    action: set_var
    var_name: pvs
    var_value: false

  - id: init-win-file
    action: set_var
    var_name: win_file
    var_value: ""

  - id: init-winini-r
    action: set_var
    var_name: winini_r
    var_value: {connected: false, banner: ""}

  - id: init-winnt-r
    action: set_var
    var_name: winnt_r
    var_value: {connected: false, banner: ""}

  - id: init-bootini-r
    action: set_var
    var_name: bootini_r
    var_value: {connected: false, banner: ""}

  - id: init-ctrl-path
    action: set_var
    var_name: ctrl_path
    var_value: ""

  - id: init-ctrl-r
    action: set_var
    var_name: ctrl_r
    var_value: {connected: false, banner: ""}

  - id: init-ctrl-hit
    action: set_var
    var_name: ctrl_hit
    var_value: false

  # ── Product gate: default PVS port, or a page / header naming SnapStream ──
  - id: default-port
    action: set_var
    var_name: pvs
    var_value: true
    condition: "port == 8129"

  - id: home
    action: http_request
    method: GET
    path: "/"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: true
    timeout_secs: 10
    condition: "pvs == false"
    store_as: home_r

  - id: home-body
    action: match
    source: home_r.body
    pattern: "(?i)snapstream|personal video station"
    condition: "pvs == false && home_r.status > 0"
    on_match:
      set_vars:
        pvs: true

  - id: home-server
    action: match
    source: home_r.headers.server
    pattern: "(?i)snapstream"
    condition: "pvs == false && home_r.status > 0"
    on_match:
      set_vars:
        pvs: true

  # ── c:\windows\win.ini (Windows 9x/ME/XP and later) ──────────────────────
  - id: read-winini
    action: tcp_connect
    port: "{{port}}"
    send: "GET /../../../../../../../../windows/win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: "pvs == true"
    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: "pvs == true && winini_r.connected == true"
    on_match:
      set_vars:
        win_file: "windows/win.ini"

  # ── c:\winnt\win.ini (Windows NT / 2000) ─────────────────────────────────
  - id: read-winnt
    action: tcp_connect
    port: "{{port}}"
    send: "GET /../../../../../../../../winnt/win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: 'pvs == true && win_file == "" && winini_r.connected == true'
    store_as: winnt_r

  - id: winnt-content
    action: match
    source: winnt_r.banner
    pattern: "(?s)^HTTP/1\\.[01] 200\\b.*(; for 16-bit app support|\\[fonts\\])"
    case_insensitive: true
    condition: 'pvs == true && win_file == "" && winnt_r.connected == true'
    on_match:
      set_vars:
        win_file: "winnt/win.ini"

  # ── c:\boot.ini (Windows NT / 2000 / XP) ─────────────────────────────────
  - id: read-bootini
    action: tcp_connect
    port: "{{port}}"
    send: "GET /../../../../../../../../boot.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: 'pvs == true && win_file == "" && winini_r.connected == true'
    store_as: bootini_r

  - id: bootini-content
    action: match
    source: bootini_r.banner
    pattern: "(?s)^HTTP/1\\.[01] 200\\b.*\\[boot loader\\]"
    case_insensitive: true
    condition: 'pvs == true && win_file == "" && bootini_r.connected == true'
    on_match:
      set_vars:
        win_file: "boot.ini"

  # ── Control: absent random file, in a missing directory but ENDING with the
  # file that hit, so a honeypot keyed on that name answers it too ─────────
  - id: control-path
    action: script
    code: |
      "/../../../../../../../../noctis-absent-" + oob_token + "/" + win_file
    condition: 'win_file != ""'
    store_as: ctrl_path

  - id: control
    action: tcp_connect
    port: "{{port}}"
    send: "GET {{ctrl_path}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: 'win_file != ""'
    store_as: ctrl_r

  - id: control-content
    action: match
    source: ctrl_r.banner
    pattern: "(; for 16-bit app support|\\[fonts\\]|\\[boot loader\\])"
    case_insensitive: true
    condition: 'win_file != "" && ctrl_r.connected == true'
    on_match:
      set_vars:
        ctrl_hit: true

  # ── Finding (control answered and stayed clean) ──────────────────────────
  - id: report
    action: match
    source: win_file
    pattern: "^(windows/win\\.ini|winnt/win\\.ini|boot\\.ini)$"
    condition: 'ctrl_r.connected == true && type_of(ctrl_r.banner) == "string" && ctrl_r.banner != "" && ctrl_hit == false'
    on_match:
      finding:
        title: "SnapStream PVS Web Interface Directory Traversal (CVE-2001-1108)"
        description: "An unauthenticated request whose URL path climbs out of the web root with \"../\" sequences returned the content of a Windows system file, while the same request for an absent file did not. Any file readable by the account running the SnapStream PVS web server can be read this way, including the product's configuration file (ssd.ini) and its plaintext user names and passwords."
        remediation: "SnapStream PVS 1.2a is no longer supported: stop the PVS web server or remove the product, and never expose its web interface (TCP 8129 by default) to untrusted networks."
        confidence_delta: 0.55
        qod: 75
        evidence: "GET /../ (x8) {{win_file}} returned the content of c:/{{win_file}} under HTTP 200; control for an absent file returned no file content"
      stop: true

View these feeds on GitHub