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

XSS DUE TO CVE-2020-3580

A SAML endpoint was vulnerable to a reflected cross-site scripting flaw (CVE-2020-3580) via a crafted SAMLResponse parameter. An attacker could run script in a victim's browser to steal cookies and potentially take over accounts.

vess_razz Follow

Originally disclosed on HackerOne

  • Triaged in 48 hours
  • Fixed in 24 days
  • Disclosed after 33 days

Hello Team, During my research, I found the following host to be vulnerable to CVE 2020-3580 which is POST BASED XSS.

Vulnerable URL: https://█████/+CSCOE+/saml/sp/acs?tgname=a

Impact

Attackers can steal cookies and even takeover accounts and perform different malicious activities.

System Host(s)

███

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Save Following code as xss.html and open in any browser:

<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;&apos;XSS&apos;&#41;&gt;" /> <input type="hidden" name="" value="" /> <input type="submit" value="Submit request" /> </form> <script> document.forms[0].submit(); </script> </body> </html>

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by vess_razz. 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 consumer endpoint reflected the SAMLResponse parameter into the page without proper output encoding.

Impact

Attackers could steal cookies and potentially take over accounts, though the report does not demonstrate this beyond the alert.

What the attacker needed

Victim visits attacker-controlled page; vulnerable Cisco ASA/FTD SAML endpoint

How it was found

  1. Create an HTML file containing a form that posts to the vulnerable SAML endpoint.
  2. Include a hidden SAMLResponse field with a script payload.
  3. Open the file in a browser and let the form auto-submit.
  4. The endpoint is vulnerable to POST-based XSS via the SAMLResponse parameter.

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) lets an attacker slip their own JavaScript into a page that other people trust. Here the page echoed back part of a form field without cleaning it, so a malicious page could make the victim's browser run the attacker's script on the vulnerable site.

What is XSS?

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

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.