Rapid7 Vulnerability & Exploit Database

Siemens FactoryLink 8 CSService Logging Path Param Buffer Overflow

Back to Search

Siemens FactoryLink 8 CSService Logging Path Param Buffer Overflow

Disclosed
03/25/2011
Created
05/30/2018

Description

This module exploits a vulnerability found on Siemens FactoryLink 8. The vulnerability occurs when CSService.exe processes a CSMSG_ListFiles_REQ message, the user-supplied path first gets converted to ANSI format (CodePage 0), and then gets handled by a logging routine where proper bounds checking is not done, therefore causing a stack-based buffer overflow, and results arbitrary code execution.

Author(s)

  • Luigi Auriemma <aluigi@autistici.org>
  • sinn3r <sinn3r@metasploit.com>

Platform

Windows

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/scada/factorylink_csservice
msf exploit(factorylink_csservice) > show targets
    ...targets...
msf exploit(factorylink_csservice) > set TARGET < target-id >
msf exploit(factorylink_csservice) > show options
    ...show and set options...
msf exploit(factorylink_csservice) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;