RealWin < 2.1.12 Multiple Buffer Overflows - Nessus

Critical   Plugin ID: 53543

This page contains detailed information about the RealWin < 2.1.12 Multiple Buffer Overflows Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 53543
Name: RealWin < 2.1.12 Multiple Buffer Overflows
Filename: scada_realwin_2_1_12.nbin
Vulnerability Published: 2011-03-21
This Plugin Published: 2011-04-25
Last Modification Time: 2022-02-14
Plugin Version: 1.55
Plugin Type: local
Plugin Family: SCADA
Dependencies: scada_app_realwin_detect.nbin
Required KB Items [?]: SCADA/Apps/RealFlex/RealWin/Installed

Vulnerability Information


Severity: Critical
Vulnerability Published: 2011-03-21
Patch Published: 2011-04-20
CVE [?]: CVE-2011-1563, CVE-2011-1564
CPE [?]: N/A

Synopsis

The remote Windows host contains a SCADA application that is affected by multiple buffer overflow vulnerabilities.

Description

The installed version of RealWin is earlier than 2.1.12 (2.1 Build 6.1.12.12) and thus reportedly affected by seven heap- and stack-based buffer overflow vulnerabilities.

Using a specially crafted sequence of packets to the applications services listening on TCP ports 910 and 912, an unauthenticated remote attacker who can leverage this issue to crash the affected service or to execute code on the affected host with SYSTEM-level privileges.

Note that while the vendor claims the vulnerabilities only affect the demo version of RealWin, there is speculation that this is inaccurate and that use of an encryption option in the commercial version only serves to mitigate the risk of attack, not completely eliminate it. Given that new versions of both the demo and commercial versions are available, we feel the prudent course of action is for the plugin to check only the version number.

Solution

Upgrade to RealWin version 2.1.12 (2.1 Build 6.1.12.12) or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, ExploitHub, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the RealWin < 2.1.12 Multiple Buffer Overflows vulnerability:

  1. Metasploit: exploit/windows/scada/realwin_on_fc_binfile_a
    [DATAC RealWin SCADA Server 2 On_FC_CONNECT_FCS_a_FILE Buffer Overflow]
  2. Metasploit: exploit/windows/scada/realwin_on_fcs_login
    [RealWin SCADA Server DATAC Login Buffer Overflow]
  3. Exploit-DB: exploits/windows/dos/17025.txt
    [EDB-17025: DATAC RealWin - Multiple Vulnerabilities]
  4. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-2.zip
    [EDB-17025]
  5. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-3.zip
    [EDB-17025]
  6. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-4.zip
    [EDB-17025]
  7. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-5.zip
    [EDB-17025]
  8. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-6.zip
    [EDB-17025]
  9. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-7.zip
    [EDB-17025]
  10. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-8.zip
    [EDB-17025]
  11. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-adv.tar.gz
    [EDB-17025]
  12. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/17025-poc.tar.tz
    [EDB-17025]
  13. ExploitHub: EH-11-003
  14. Immunity Canvas: White_Phosphorus

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:U/RC:ND
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:9.5 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.5 (High)

Go back to menu.

Plugin Source


The scada_realwin_2_1_12.nbin Nessus plugin is distributed in a propriatory binary format and its source code is protected. This script is Copyright (C) 2011-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/scada_realwin_2_1_12.nbin
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\scada_realwin_2_1_12.nbin
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/scada_realwin_2_1_12.nbin

Go back to menu.

How to Run


Here is how to run the RealWin < 2.1.12 Multiple Buffer Overflows as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select SCADA plugin family.
  6. On the right side table select RealWin < 2.1.12 Multiple Buffer Overflows plugin ID 53543.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl scada_realwin_2_1_12.nbin -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a scada_realwin_2_1_12.nbin -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - scada_realwin_2_1_12.nbin -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state scada_realwin_2_1_12.nbin -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: ICS Alert: See also: Similar and related Nessus plugins:
  • 50687 - RealWin < 2.1.10 Multiple Packet Type Processing Overflows
  • 33201 - CitectSCADA ODBC Server Remote Buffer Overflow
  • 81700 - Advantech ADAMView Multiple Buffer Overflow Vulnerabilities
  • 60084 - Advantech Studio ISSymbol ActiveX Control Multiple Buffer Overflow Vulnerabilities
  • 49694 - BACnet OPC Client < 1.0.25 Buffer Overflow
  • 64296 - Schneider Electric Interactive Graphical SCADA System dc.exe Unspecified Buffer Overflow
  • 51360 - Ecava IntegraXor ActiveX save Method Buffer Overflow
  • 81553 - WellinTech KingSCADA < 3.1.2.13-EN 'kxNetDispose.dll' Buffer Overflow RCE

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file scada_realwin_2_1_12.nbin version 1.55. For more plugins, visit the Nessus Plugin Library.

Go back to menu.