Template Report Bug Bounty (Bahasa Indonesia)
The report claims a reflected cross-site scripting flaw in the search parameter of a test PHP site, where user input is not validated or encoded. An attacker could inject script that runs in a victim's browser, potentially stealing cookies or credentials.
medium.com
Published on medium.com
Halo nama saya Ikhlasul Amal (Bug Bounty) dan saya menemukan kerentanan pada domain/subdomain http://testphp.vulnweb.com/search.php?test=query
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 is reflected into the page without context-aware output encoding or validation.
Impact
The injected script could steal sensitive information such as cookies or login credentials, or perform actions on behalf of the user.
What the attacker needed
Victim clicks a crafted link; target is a test site
How it was found
- Open the search page on the test site.
- Enter a script payload into the search bar.
- Submit the search and observe the script executing in the browser.
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.
Cross-site scripting (XSS) is when a website takes something a user typed and puts it into the page without cleaning it first. If that text contains code, the browser runs it as if the site itself had written it. Here the search box is the weak point, so a crafted link could make a victim's browser run the attacker's script.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.