Reflected XSS through ClickJacking
A reflected cross-site scripting flaw existed in a URL parameter that accepted a javascript: scheme, and the reporter chained it with clickjacking to make the malicious page look like the legitimate site. An attacker could run script in the victim's browser after the victim interacted with the disguised page.
- Triaged in under an hour
- Fixed in 43 days
- Disclosed after 55 days
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"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
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
Impact
An attacker could run malicious code in the victim's browser, but the exploit required the victim to interact with the disguised page.
What the attacker needed
Victim visits attacker page; victim interacts with hidden iframe
How it was found
- Host the provided page with the background image.
- Send the page to the victim.
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.
A reflected cross-site scripting (XSS) bug lets an attacker slip their own JavaScript into a page the victim loads, so the script runs as if the real site had sent it. Here the page took a URL from the address and used it without checking that it was a safe web address, so a javascript: link could run code. The reporter also used clickjacking, which hides a real page under a fake image so the victim clicks something without realising.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.