Zavio — 1 vulnerability check

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

← All products · Feeds on GitHub

Zavio IP Camera Hard-Coded Manufacture Account (HTTP)

CVECVE-2013-2567, CVE-2013-2568, CVE-2013-2569, CVE-2013-2570
Severityhigh · CVSS 7.5
Categorydefault-credentials — Default credentials
Serviceshttp, https
Detectionset_var, tcp_connect, script, match · highest QoD 97
Feedtests/vulnerabilities/zavio/CVE-2013-2567.yaml

Zavio IP cameras up to firmware 1.6.03 contain a hidden web account, manufacture / erutcafunam, hard-coded in the Boa web server configuration (CVE-2013-2567). It cannot be removed from the user interface and opens the manufacturing CGIs, including /cgi-bin/mft/wireless_mft whose "ap" parameter is injectable with operating-system commands (CVE-2013-2568). The check requests /cgi-bin/mft/wireless_mft without credentials (it must answer 401), then as "manufacture" with a random password (it must still answer 401), and finally with the hard-coded password: an HTTP 200 on that last request proves the account is present and accepted. Nothing is changed on the camera and the "ap" parameter is never sent.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /cgi-bin/mft/wireless_mft HTTP/1.0
  2. Parses / computes the next value with a Rhai script
  3. Parses / computes the next value with a Rhai script
  4. Raw TCP (TLS on HTTPS), sent verbatim: GET /cgi-bin/mft/wireless_mft HTTP/1.0
  5. Parses / computes the next value with a Rhai script
  6. Raw TCP (TLS on HTTPS), sent verbatim: GET /cgi-bin/mft/wireless_mft HTTP/1.0
  7. Checks login.banner for ^HTTP/1\.[01] 200\b → finding QoD 97: Logged in to the Zavio camera's manufacturing CGI with the hard-coded account manufacture/erutcafunam: GET /cgi-bin/mft/wireless_mft answer…

References:

Feed source — tests/vulnerabilities/zavio/CVE-2013-2567.yaml
# Zavio IP cameras (firmware <= 1.6.03) — hard-coded "manufacture" account in
# the Boa web server (CVE-2013-2567), which opens /cgi-bin/mft/wireless_mft,
# the CGI carrying the "ap" command injection (CVE-2013-2568). The same
# firmware also ships CVE-2013-2569 (RTSP without auth) and CVE-2013-2570
# (post-auth NTP server command injection). Vendor never answered (advisory
# CORE-2013-0302, user release): no fixed firmware exists.
#
# Ported from OpenVAS/Greenbone NVT
# 2013/gb_zavio_ip_cameras_multiple_vulns_05_13.nasl
# (OID 1.3.6.1.4.1.25623.1.0.103721, GPL-2.0-only):
#   needs "Server: Boa/"; GET /cgi-bin/mft/wireless_mft must answer 401
#   without credentials, then 200 with
#   "Authorization: Basic base64(manufacture:erutcafunam)".
#
# Deviations from the NASL (stronger detection, stated in the PR):
#   * Wrong-password control: between the two NASL requests, the same CGI is
#     requested as "manufacture" with a random password. A 200 there means the
#     server does not check the password (open CGI, honeypot, broken auth) and
#     the feed reports nothing — the NASL would report the backdoor. The
#     control must answer 401 (fail-closed) for the backdoor login to count.
#   * No "Server: Boa/" gate: the 401 -> wrong-password 401 -> backdoor 200
#     sequence on this product-specific CGI is the proof, so a camera behind a
#     proxy that rewrites the Server header is not missed.
#
# Like the NASL, the feed never sends the "ap" parameter: wireless_mft
# reconfigures the camera's Wi-Fi with it, and the NASL author reports devices
# dying on command execution. Reaching the CGI with the backdoor account is
# what CVE-2013-2568 needs, but the injection itself is not executed.
#
# CVSS: NVD scores CVE-2013-2567 (the flaw proven) at 7.5 (v3.1); the issue's
# 10.0 is the NASL's (CVSS v2 of CVE-2013-2568).
uid: 1bae6cb7-587b-4c43-a301-657168a94fd6
name: "Zavio IP Camera Hard-Coded Manufacture Account (HTTP)"
description: |
  Zavio IP cameras up to firmware 1.6.03 contain a hidden web account,
  manufacture / erutcafunam, hard-coded in the Boa web server configuration
  (CVE-2013-2567). It cannot be removed from the user interface and opens the
  manufacturing CGIs, including /cgi-bin/mft/wireless_mft whose "ap"
  parameter is injectable with operating-system commands (CVE-2013-2568).
  The check requests /cgi-bin/mft/wireless_mft without credentials (it must
  answer 401), then as "manufacture" with a random password (it must still
  answer 401), and finally with the hard-coded password: an HTTP 200 on that
  last request proves the account is present and accepted. Nothing is changed
  on the camera and the "ap" parameter is never sent.
cves: [CVE-2013-2567, CVE-2013-2568, CVE-2013-2569, CVE-2013-2570]
cvss: 7.5
severity: high
category: default-credentials
confidence_base: 0.30
tags: [openvas-migrated, zavio, ip-camera, boa, hardcoded-credentials, backdoor, default-credentials, http]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://www.cve.org/CVERecord?id=CVE-2013-2567"
  - "https://www.cve.org/CVERecord?id=CVE-2013-2568"
  - "https://www.cve.org/CVERecord?id=CVE-2013-2569"
  - "https://www.cve.org/CVERecord?id=CVE-2013-2570"
  - "https://www.exploit-db.com/exploits/25815"
  - "OpenVAS/Greenbone NASL 2013/gb_zavio_ip_cameras_multiple_vulns_05_13.nasl (GPL-2.0-only)"

steps:
  # Pre-init everything later conditions/scripts read, so a failed request
  # never leaves an undefined variable behind.
  - id: init-locked
    action: set_var
    var_name: locked
    var_value: false
  - id: init-ctrl-state
    action: set_var
    var_name: ctrl_state
    var_value: "none"
  - id: init-probe
    action: set_var
    var_name: probe
    var_value: {banner: null}
  - id: init-ctrl
    action: set_var
    var_name: ctrl
    var_value: {banner: null}

  # 1. Without credentials the manufacturing CGI must ask for auth (NASL).
  - id: probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /cgi-bin/mft/wireless_mft HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: probe
  - id: probe-check
    action: script
    code: 'type_of(probe.banner) == "string" && ereg("^HTTP/1\\.[01] 401", probe.banner)'
    store_as: locked

  # 2. Control — the manufacture account with a random password.
  - id: control-auth
    action: script
    code: 'base64_encode("manufacture:" + rand_hex(10))'
    store_as: bad_auth
    condition: "locked"
  - id: control
    action: tcp_connect
    port: "{{port}}"
    send: "GET /cgi-bin/mft/wireless_mft HTTP/1.0\r\nHost: {{target_host}}\r\nAuthorization: Basic {{bad_auth}}\r\n\r\n"
    store_as: ctrl
    condition: "locked"
  - id: control-check
    action: script
    code: |
      let b = ctrl.banner;
      if type_of(b) != "string" { "unknown" }
      else if ereg("^HTTP/1\\.[01] 401", b) { "denied" }
      else if ereg("^HTTP/1\\.[01] 200", b) { "open" }
      else { "unknown" }
    store_as: ctrl_state
    condition: "locked"

  # 3. Hard-coded account manufacture:erutcafunam (NASL request).
  - id: login
    action: tcp_connect
    port: "{{port}}"
    send: "GET /cgi-bin/mft/wireless_mft HTTP/1.0\r\nHost: {{target_host}}\r\nAuthorization: Basic bWFudWZhY3R1cmU6ZXJ1dGNhZnVuYW0=\r\n\r\n"
    store_as: login
    condition: 'locked && ctrl_state == "denied"'
  - id: detect-backdoor
    action: match
    source: login.banner
    pattern: '^HTTP/1\.[01] 200\b'
    condition: 'locked && ctrl_state == "denied"'
    on_match:
      finding:
        confidence_delta: 0.65
        qod: 97
        evidence: "Logged in to the Zavio camera's manufacturing CGI with the hard-coded account manufacture/erutcafunam: GET /cgi-bin/mft/wireless_mft answered 401 without credentials and with a random password, and HTTP 200 with the hard-coded one."
        remediation: "No fixed firmware exists. Block access to the camera's web interface (and to /cgi-bin/mft/ in particular) from untrusted networks with a filtering proxy or firewall, or replace the device."

View these feeds on GitHub