Reflected XSS Vulnerability Found on TechHunk.com — A Short but Real Case Study
The search parameter on the site reflected user input without proper sanitisation, allowing a crafted payload to execute script in the browser. An attacker could use this to steal cookies, hijack sessions, or perform phishing.
Published on polashmridha7.medium.com
During one of my routine bug hunting sessions, I came across a website named TechHunk.com. Out of curiosity and a bit of instinct, I decided to give it a quick test.
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 search parameter was reflected into the HTML response without proper output encoding or input sanitisation.
Impact
An attacker could steal cookies, hijack sessions, perform phishing, or inject external JavaScript such as BeEF hooks.
What the attacker needed
Victim clicks a crafted link
The fix
The site should properly sanitise and encode user input before reflecting it in responses.
How it was found
- Open the main website and locate the search bar on the homepage.
- Test the search input with a simple payload to see if it is filtered.
- Use a bypass method to inject a script payload into the search parameter.
- Observe the alert box executing in the browser, confirming the vulnerability.
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.
Reflected XSS is when a website takes something you typed (like a search term) and puts it directly into the page without cleaning it first. An attacker can craft a link that contains malicious code, and when a victim clicks it, the code runs in their browser as if it came from the trusted site. This lets the attacker steal the victim's login session or redirect them to a fake page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.