SerVision — 1 vulnerability check

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

← All products · Feeds on GitHub

SerVision HVG video gateway default web credentials

CVECVE-2015-0930
Severitycritical · CVSS 10.0
Categorydefault-credentials — Default credentials
Serviceshttp, https
Detectionset_var, tcp_connect, match, script · highest QoD 70
Feedtests/vulnerabilities/servision/CVE-2015-0930.yaml

Logs in to the SerVision HVG web interface with the default credentials and reports when the session opens /top.htm with a Logout link.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /index.htm HTTP/1.0
  2. Checks gate.banner for (?s)user_username.*user_password
  3. Raw TCP (TLS on HTTPS), sent verbatim: POST /index.htm HTTP/1.0
  4. Checks login.banner for (?s)^HTTP/1\.[01] 201\b.*Set-Cookie: ([0-9a-zA-Z=]+);
  5. Parses / computes the next value with a Rhai script
  6. Raw TCP (TLS on HTTPS), sent verbatim: GET /top.htm HTTP/1.0
  7. Checks resp.banner for (?s)^HTTP/1\.[01] 200\b.*Logout → finding QoD 70: Default credentials confirmed (servision): authenticated session returned /top.htm with Logout: …

References:

Feed source — tests/vulnerabilities/servision/CVE-2015-0930.yaml
uid: 1c84cace-3382-4f49-89ec-db9f459e7cff
name: "SerVision HVG video gateway default web credentials (CVE-2015-0930)"
description: "Logs in to the SerVision HVG web interface with the default credentials and reports when the session opens /top.htm with a Logout link."
cves: [CVE-2015-0930]
cvss: 10.0
severity: critical
category: default-credentials
confidence_base: 0.3
tags: [openvas-migrated, http, servision]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2015-0930"
  - "OpenVAS NASL 2016/gb_servision_hvg_default_cred_vuln.nasl (GPL-2.0-only)"

# Ported from OpenVAS/Greenbone NASL 2016/gb_servision_hvg_default_cred_vuln.nasl (GPL-2.0-only).
steps:
  - id: seed_product
    action: set_var
    var_name: product
    var_value: false
  - id: seed_authed
    action: set_var
    var_name: authed
    var_value: false
  # Product gate: the login form must carry BOTH fields (as the NASL checks).
  - id: gate_probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /index.htm HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: gate
  - id: gate_match
    action: match
    source: gate.banner
    pattern: "(?s)user_username.*user_password"
    on_match:
      set_vars:
        product: true
  # POST the default credentials. A vulnerable HVG answers 201 + Set-Cookie.
  - id: login
    action: tcp_connect
    port: "{{port}}"
    send: "POST /index.htm HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 68\r\nConnection: close\r\n\r\nuser_username=admin&user_password=Bantham&LOADED=1&TO_LOAD=index.htm"
    store_as: login
    condition: "product"
  # Require HTTP 201 and capture the session cookie (the NASL's eregmatch + 201 check).
  - id: cookie_match
    action: match
    source: login.banner
    pattern: '(?s)^HTTP/1\.[01] 201\b.*Set-Cookie: ([0-9a-zA-Z=]+);'
    store_as: ck
    condition: "product"
    on_match:
      set_vars:
        authed: true
  - id: cookie_store
    action: script
    code: 'ck["captures"][0]'
    store_as: cookie
    condition: "authed"
  # Confirm the session is authenticated: GET /top.htm with the cookie -> 200 + Logout.
  - id: confirm
    action: tcp_connect
    port: "{{port}}"
    send: "GET /top.htm HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: {{cookie}}\r\n\r\n"
    store_as: resp
    condition: "authed"

  - id: detect
    action: match
    source: resp.banner
    pattern: "(?s)^HTTP/1\\.[01] 200\\b.*Logout"
    condition: "authed"
    on_match:
      finding:
        confidence_delta: 0.5
        qod: 70
        evidence: "Default credentials confirmed (servision): authenticated session returned /top.htm with Logout: {{resp.banner}}"
      stop: true

View these feeds on GitHub