How I Made $100 in 5 Minutes | Easy Vulnerability
A government website's error page reflected text taken from the URL path back into the page, allowing an attacker to make the site display arbitrary wording. The author used this to show a fake message pointing visitors to an attacker-chosen domain.
medium.com
Published on medium.com
🔥Free Article Link: Click Here
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 error page echoed user-controlled path content into the response without encoding or validation.
What the attacker needed
Target has a reflected error page; none
How it was found
- Gather subdomains of the target.
- Filter for live subdomains with an HTTP probing tool.
- Crawl the live hosts to collect endpoints.
- Screenshot the endpoints and review them manually.
- Spot a page-not-found URL and add text to the path.
- Observe the injected text reflected on the page.
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 build their 'page not found' message using part of the web address you typed. If they do not clean that text first, whatever you put in the address can appear on the page as if the site itself wrote it. That lets someone make a trusted site show a fake notice, for example telling visitors to go to another site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.