Reflected XSS | US Department of Education Recognition
A parameter reflected user input into the page without proper encoding, allowing HTML injection. The author then got script execution by swapping the blocked alert() call for confirm(), achieving reflected cross-site scripting.
codingninjablogs.tech
Published on codingninjablogs.tech
First I have started Basic Recon like Subdomain Enumeration. Then I start for Google Dorking to find things Easily.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the parameter value was inserted into the HTML response without output encoding, and the site's filter only blocked the specific alert() call rather than the underlying injection.
Impact
An attacker could run script in a victim's browser via a crafted link, though the text does not show what data or actions that script could reach.
What the attacker needed
Victim clicks a crafted link; no login needed
How it was found
- Find candidate URLs with search-style parameters using a dork.
- Test a parameter with a simple HTML tag and confirm it renders.
- Try a script-executing payload and observe it is blocked.
- Swap the blocked function for a different one and confirm script execution.
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 write-up has not been written yet. The Original tab links to the source.
Some websites take text from the address bar and paste it straight into the page. If that text can include HTML tags, an attacker can add their own elements, and if script can run, they can act as the logged-in user. This is called reflected cross-site scripting because the malicious input bounces back from the link the victim opens.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.