XSS due to CVE-2020-3580 [██████]
A reflected cross-site scripting flaw existed in the SAML assertion consumer endpoint of Cisco ASA/FTD web services, where the SAMLResponse parameter was not properly sanitised. An attacker could trick a user into submitting a crafted form, causing script execution in the context of the vulnerable interface.
- Triaged in 38 hours
- Fixed in 37 days
- Disclosed after 46 days
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.
Steps To Reproduce
Go to this URL
http://www.info-sec.cl/post-xss-███████.html
HTML POC:
<html> <body> <script>history.pushState('', '', '/')</script> <form action='https://'████████'/+CSCOE+/saml/sp/acs?tgname=a' method='POST'> <input type='hidden' name='SAMLResponse' value='"><svg/onload=alert(document.cookies)>'/> </form> <script> document.forms[0].submit(); </script> </body> </html>Impact
- 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.
Supporting Material References https://www.exploit-db.com/exploits/47988 https://twitter.com/sagaryadav8742/status/1275170967527006208
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
Root cause
Likely the SAMLResponse parameter was reflected into the page without proper output encoding, allowing HTML injection.
Impact
An attacker could execute arbitrary script in the context of the interface or access sensitive browser-based information, but only for specific AnyConnect and WebVPN configurations.
What the attacker needed
Victim clicks a crafted link; specific AnyConnect or WebVPN configuration
How it was found
- Open the provided proof-of-concept HTML page.
- The page automatically submits a form to the vulnerable SAML endpoint with a crafted SAMLResponse value.
- The injected SVG element with an onload handler executes in the context of the target site.
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 when a website lets an attacker sneak in their own JavaScript code, which then runs in a victim's browser as if it came from the trusted site. Here, a part of the login page that handles SAML messages did not clean up user input, so a specially crafted form could make the browser run the attacker's script. The attacker has to convince the victim to open a malicious page that automatically submits the form.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.