How I Found My First Bug (RXSS)
A reflected cross-site scripting vulnerability was found in a search input field on a website. An attacker could inject a script that executes in a victim's browser, potentially stealing cookies.
This Writeup shows how important it is to test every single input field on any Website even if it is just a form. So let us start :)
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 input was reflected into the page without proper output encoding, allowing script tags to be injected.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing cookies or performing actions on their behalf.
What the attacker needed
Victim clicks a crafted link
How it was found
- Find input points such as search bars or URL parameters.
- Inject a payload to see if it executes in the browser.
- Observe whether the script executes, 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.
Cross-site scripting (XSS) is a bug where a website takes something you type and puts it directly into the page without cleaning it first. If an attacker types code instead of normal text, the browser runs that code as if the website itself had written it. This can let the attacker read cookies or do things as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.