Skip to content
XSS Disclosed report Beginner CVE-2020-3580

XSS due to CVE-2020-3580 [███]

The web services interface of Cisco ASA and FTD software failed to sanitise the SAMLResponse parameter, so a crafted POST could inject script into the page. An attacker who persuaded a user to click a crafted link could run arbitrary script in the context of the interface and read browser-based information such as cookies.

fdeleite Follow

Originally disclosed on HackerOne

  • 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='&quot;&gt;&lt;svg&#47;onload&#61;alert&#40;document&#46;cookies&#41;&gt;'/> </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

The original report as published on HackerOne, by fdeleite. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 assertion handler reflected the SAMLResponse parameter into the page without encoding it, so markup in the value was rendered as HTML.

Impact

An attacker could execute arbitrary script in the context of the interface or access sensitive browser-based information, but only on specific AnyConnect and WebVPN configurations and only if the user is persuaded to click a crafted link.

What the attacker needed

Victim clicks a crafted link; specific AnyConnect or WebVPN configuration

How it was found

  1. Open the proof-of-concept page that hosts the crafted form.
  2. The page automatically submits a POST to the device's SAML assertion consumer endpoint with a malicious SAMLResponse value.
  3. The device is expected to reflect the value into its response and the browser executes the injected script.

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 puts attacker-supplied text into a page without cleaning it, so the browser runs it as code. Here the web services interface took a crafted value and placed it into the page, letting a script run when the victim loaded the page. The attacker then acts as the victim inside that site, for example reading their cookies.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by fdeleite

View all

18 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.