XSS in Cisco Endpoint
The web services interface of Cisco ASA and FTD software did not properly validate user-supplied input, allowing an unauthenticated remote attacker to conduct cross-site scripting attacks. An attacker could persuade a user to click a crafted link, potentially executing arbitrary script code in the context of the interface or accessing sensitive browser-based information.
- Triaged in 2 hours
- Fixed in 4 days
- Disclosed after 18 days
Description: Multiple vulnerabilities in the web services interface of Cisco Adaptive Security Appliance (ASA) Software and Cisco Firepower Threat Defense (FTD) Software could allow an unauthenticated, remote attacker to conduct cross-site scripting (XSS) attacks against a user of the web services interface of an affected device. The vulnerabilities are due to insufficient validation of user-supplied input by the web services interface of an affected device. An attacker could exploit these vulnerabilities by persuading a user of the interface to click a crafted link. A successful exploit could allow the attacker to execute arbitrary script code in the context of the interface or allow the attacker to access sensitive, browser-based information. Note: These vulnerabilities affect only specific AnyConnect and WebVPN configurations. For more information, see the Vulnerable Products section.
References
Impact
With this vulnerability, an attacker can steal users cookies, redirect users to a malicious website, or execute arbitrary javascript.
System Host(s)
███
Affected Product(s) and Version(s)
CVE Numbers
CVE-2023-3580
Steps to Reproduce
1.) Perform the following post request.
POST /+CSCOE+/saml/sp/acs?tgname=a HTTP/1.1 Host: ███████ User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Connection: close Hackerone: R00tdaddy Content-Length: 72 Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate, br
SAMLResponse=%22%3E%3Csvg/onload=alert(/2XUkWJ29OE88uyTbdZ3a2UmA828/)%3E
SAML Response pops up in the browser.
Suggested Mitigation/Remediation Actions
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary script code in the context of the interface or access sensitive, browser-based information, and could steal users' cookies or redirect them to a malicious website.
What the attacker needed
Victim clicks a crafted link; specific AnyConnect or WebVPN configuration
The fix
A patch is referenced in the Cisco security advisory.
How it was found
- Send a crafted POST request to the SAML assertion consumer service endpoint with a malicious SAMLResponse parameter.
- Observe that the injected script executes and an alert box pops up in the browser.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is a flaw where a website displays user input without cleaning it, so an attacker can sneak in their own script. Here, the Cisco device's web interface failed to check input properly, so a crafted link could run malicious code in a victim's browser. This could let an attacker steal cookies or redirect the user to a harmful site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.