U.S. Dept Of Defense · Report #922496
DOM XSS on https://www.███████
Validstatus
mediumseverity
8upvotes
29 Sept 2020disclosed
How it was found
#Description DOM XSS can be achieved due to missing sanitation when setting the source of an iframe.
#POC
- Visit https://www.████frame.html#javascript:alert(document.domain)
- View alert
#Vulnerable Code
function Load()
{
str=document.location.hash,idx=str.indexOf('#')
if(idx>=0) str=str.substr(1);
if(str) PPTSld.location.replace(str);
}
Impact
An attacker could execute arbitrary javascript on another user.