HexBrain

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

  1. Visit https://www.████frame.html#javascript:alert(document.domain)
  2. 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.

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