SMC Networks — 1 vulnerability check

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

← All products · Feeds on GitHub

SMC Networks SMC8024L2 Switch Web Interface Authentication Bypass

CVECVE-2012-2974
Severitycritical · CVSS 10.0
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionset_var, http_request, match · highest QoD 75
Feedtests/vulnerabilities/smc-networks/CVE-2012-2974.yaml

Detects the authentication bypass in the web interface of the SMC Networks SMC8024L2 switch (CVE-2012-2974): the switch only asks for the login on its entry page, so any administration page requested directly by URL is served without credentials. The feed first checks that /index.html is the SMC Networks web interface, then requests /status/status_ov.html without any session or credentials. It reports the switch when that reply is a 200 "Status Overview" page that carries the switch's MAC address, firmware version and system name fields, which shows that administration pages are readable without logging in. Both requests only read pages; nothing is changed on the switch.

How noctis detects it

  1. HTTP(S) request GET /index.html
  2. HTTP(S) request GET /status/status_ov.html
  3. Checks status_page.body for <title>Status Overview → finding QoD 75: SMC8024L2 authentication bypass confirmed: GET /status/status_ov.html without a session answered 200 with the Status Overview page carrying…

References:

Feed source — tests/vulnerabilities/smc-networks/CVE-2012-2974.yaml
# SMC Networks SMC8024L2 switch — web interface authentication bypass (CVE-2012-2974)
#
# Ported from OpenVAS/Greenbone NVT `2012/gb_smc8024l2_54390.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.103513, GPL-2.0-only). The NASL requests
# /index.html, and when its title is "SMC Networks Web Interface" it requests
# /status/status_ov.html without credentials and reports when the reply holds
# "<title>Status Overview" plus the macAddress, opVersion and systemName fields.
# The switch only checks the login on its entry page: every .html page under
# status/, system/, ports/, vlans/, security/, snmp/… is served to anyone who
# asks for it directly (US-CERT VU#377915, BID 54390).
#
# Detection (QoD 75, read-only: two GETs, no cookie or credential sent):
#   1. GET /index.html — must carry the "SMC Networks Web Interface" title.
#   2. GET /status/status_ov.html without a session — the finding fires when the
#      reply is a 200 "Status Overview" page that carries the macAddress,
#      opVersion and systemName fields of the switch.
#
# Differences from the NASL: the status page must answer 200 (the NASL also
# accepted any status, so a login page or error page quoting those words
# would match), and all three switch fields must be present together with
# the title. Getting the switch's MAC address, firmware version and system
# name without logging in is the bypass itself, so no further proof is needed.
uid: 65fc17b1-f994-46cc-80b8-34ce211e9ae5
name: "SMC Networks SMC8024L2 Switch Web Interface Authentication Bypass (CVE-2012-2974)"
description: |
  Detects the authentication bypass in the web interface of the SMC Networks
  SMC8024L2 switch (CVE-2012-2974): the switch only asks for the login on its
  entry page, so any administration page requested directly by URL is served
  without credentials. The feed first checks that /index.html is the SMC
  Networks web interface, then requests /status/status_ov.html without any
  session or credentials. It reports the switch when that reply is a 200
  "Status Overview" page that carries the switch's MAC address, firmware
  version and system name fields, which shows that administration pages are
  readable without logging in. Both requests only read pages; nothing is
  changed on the switch.
cves: [CVE-2012-2974]
cvss: 10.0
severity: critical
confidence_base: 0.30
category: auth-bypass
tags: [smc-networks, smc8024l2, switch, network-device, auth-bypass]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2012-2974"
  - "https://www.kb.cert.org/vuls/id/377915"
  - "http://www.securityfocus.com/bid/54390"

steps:
  # Pre-initialise both stored results so the conditions below never read an
  # undefined variable when a request fails.
  - id: init-index
    action: set_var
    var_name: index
    var_value: {status: 0, body: "", headers: {}}

  - id: init-status
    action: set_var
    var_name: status_page
    var_value: {status: 0, body: "", headers: {}}

  - id: index
    action: http_request
    method: GET
    path: "/index.html"
    tls_insecure: true
    port: "{{port}}"
    timeout_secs: 10
    store_as: index

  # Protected status page, requested without any session — only on an SMC
  # Networks web interface.
  - id: status-overview
    action: http_request
    method: GET
    path: "/status/status_ov.html"
    tls_insecure: true
    port: "{{port}}"
    timeout_secs: 10
    condition: "stridx(index.body, \"<title>SMC Networks Web Interface\") >= 0"
    store_as: status_page

  - id: confirm-bypass
    action: match
    source: status_page.body
    pattern: "<title>Status Overview"
    condition: "status_page.status == 200 && stridx(index.body, \"<title>SMC Networks Web Interface\") >= 0 && stridx(status_page.body, \"macAddress\") >= 0 && stridx(status_page.body, \"opVersion\") >= 0 && stridx(status_page.body, \"systemName\") >= 0"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "SMC8024L2 authentication bypass confirmed: GET /status/status_ov.html without a session answered 200 with the Status Overview page carrying the switch macAddress, opVersion and systemName fields"

View these feeds on GitHub