Meteocontrol WEB'log — 1 vulnerability check

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

← All products · Feeds on GitHub

Meteocontrol WEB'log admin password disclosure

CVECVE-2016-2296
Severitycritical · CVSS 9.4
Categoryexposure — Exposure
Serviceshttp, https
Detectionset_var, script, http_request, match · highest QoD 75
Feedtests/vulnerabilities/meteocontrol-weblog/CVE-2016-2296.yaml

Requests the WEB'log access-protection configuration page (/html/en/confAccessProt.html) without any credentials. The device is reported when the page answers 200 and its form carries the szWebAdminPassword field with a non-empty value, i.e. the administrator password is handed to an anonymous client. A random absent page is requested first and must not answer with the same field, so catch-all servers report nothing. The password itself is never written to the finding.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET /html/en/{{ctl}}.html
  3. HTTP(S) request GET /html/en/confAccessProt.html
  4. Checks page.body for (?i)name="szWebAdminPassword"[^>]*value="([^"]+)"|value="([^"]+)"[^>]…
  5. Parses / computes the next value with a Rhai script
  6. Checks shown for szWebAdminPassword value disclosed → finding QoD 75: Meteocontrol WEB'log admin password disclosed without authentication

References:

Feed source — tests/vulnerabilities/meteocontrol-weblog/CVE-2016-2296.yaml
# Meteocontrol WEB'log — configuration pages served without authentication,
# including the page that carries the admin password (CVE-2016-2296).
# Credit: detection logic modelled on the public advisory behaviour; the
# password value is never copied into the finding.
uid: 1c9386d1-bde5-44d5-9d29-05b664a66a28
name: "Meteocontrol WEB'log admin password disclosure"
description: >-
  Requests the WEB'log access-protection configuration page
  (/html/en/confAccessProt.html) without any credentials. The device is reported
  when the page answers 200 and its form carries the szWebAdminPassword field with
  a non-empty value, i.e. the administrator password is handed to an anonymous
  client. A random absent page is requested first and must not answer with the same
  field, so catch-all servers report nothing. The password itself is never written
  to the finding.
category: exposure
cves: [CVE-2016-2296]
cvss: 9.4
severity: critical
confidence_base: 0.30
tags: [meteocontrol, weblog, scada, solar, exposure, password-disclosure]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2016-2296"

steps:
  - id: init-control
    action: set_var
    var_name: control
    var_value: {status: 0, body: ""}

  - id: ctl-name
    action: script
    store_as: ctl
    code: |
      "noctis-" + rand_hex(8)

  - id: control-probe
    action: http_request
    method: GET
    path: "/html/en/{{ctl}}.html"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 8
    store_as: control

  - id: probe
    action: http_request
    method: GET
    path: "/html/en/confAccessProt.html"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: page

  # Extract the field value but keep it out of the finding (match copies its source).
  - id: pass-field
    action: match
    condition: "page.status == 200"
    source: page.body
    pattern: "(?i)name=\"szWebAdminPassword\"[^>]*value=\"([^\"]+)\"|value=\"([^\"]+)\"[^>]*name=\"szWebAdminPassword\""
    store_as: pw_m

  - id: proof
    action: script
    code: |
      let ctl_hit = type_of(control.body) == "string" && ereg("szWebAdminPassword", control.body);
      if page.status == 200 && !ctl_hit && type_of(pw_m) == "map" && pw_m.matched {
        "szWebAdminPassword value disclosed (" + page.status + ", <redacted>)"
      } else { "" }
    store_as: shown

  - id: disclosed
    action: match
    condition: 'shown != ""'
    source: shown
    pattern: "szWebAdminPassword value disclosed"
    on_match:
      finding:
        confidence_delta: 0.50
        qod: 75
        title: "Meteocontrol WEB'log admin password disclosed without authentication"
        description: "/html/en/confAccessProt.html is served to an anonymous client and contains the administrator password field with its value."
        remediation: "Restrict access to the WEB'log configuration pages behind authentication or a network ACL and change the administrator password."
        evidence: "GET /html/en/confAccessProt.html answered 200 with a populated szWebAdminPassword field (value redacted)"

View these feeds on GitHub