XSS DUE TO CVE-2020-3580
Multiple Cisco ASA VPN hosts were vulnerable to a reflected cross-site scripting flaw in the SAML service, triggered by a crafted POST request to a specific endpoint. An attacker could steal users' cookies or redirect them to a malicious website.
- Triaged in 3 days
- Fixed in 24 days
- Disclosed after 3 months
Hello Team, During my research, I found multiple hosts to be vulnerable to Cisco ASA XSS CVE-2020-3580, This vulnerability targets the saml service within the VPN. It is triggered via a POST request to domain/+CSCOE+/saml/sp/acs?tgname=a
References
Impact
With this vulnerability, an attacker can for example steal users cookies or redirect users on malicious website.
System Host(s)
█████
Affected Product(s) and Version(s)
Cisco ASA
CVE Numbers
CVE-2020-3580
Steps to Reproduce
<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('XSS')>" /> <input type="hidden" name="" value="" /> <input type="submit" value="Submit request" /> </form> <script> document.forms[0].submit(); </script> </body> </html>Suggested Mitigation/Remediation Actions
Patch Cisco ASA : https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-asaftd-xss-multiple-FCB3vPZe
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 SAML response parameter is reflected into the page without proper output encoding, allowing injected HTML and JavaScript to execute.
Impact
An attacker could steal users' cookies or redirect them to a malicious website.
What the attacker needed
Victim clicks a link or visits a malicious page; target runs vulnerable Cisco ASA version
The fix
The vulnerability should be fixed by applying the patch referenced in the Cisco security advisory.
How it was found
- Create an HTML page with a form that posts to the vulnerable SAML endpoint.
- Include a hidden field named SAMLResponse containing a malicious SVG payload.
- Automatically submit the form to the target.
- The payload is submitted to the target endpoint.
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.
This is an XSS bug in Cisco's VPN appliance. An attacker can craft a page that posts to the VPN site and runs their JavaScript in the victim's browser, letting them steal cookies or redirect them.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.