My First XSS Vulnerability Discovery on WebApp
The search field on the Motorkux web application did not sanitise user input, so a script entered into the search query executed in the browser. An attacker could run script in a victim's browser context, which the author says could be used to steal session data or act as the user.
Published on medium.com
As a bug hunter and penetration tester, finding your first bug can be both thrilling and disappointing — especially when it turns out to be a duplicate. This is exactly what happened to me recently while testing the Motorkux application.
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 inserted back into the page by client-side JavaScript without escaping or sanitising it before rendering.
Impact
Script could run in the context of a victim's browser, which the author says could be used to steal cookies or tokens and lead to session hijacking or account takeover; the report gives no proof of these beyond the alert box.
What the attacker needed
Victim visits a crafted search link
How it was found
- Open the web application and go to its search functionality.
- Enter a script tag as the search query.
- Observe the alert box appear, showing the script executed.
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.
A search box on a website took whatever text a visitor typed and put it back on the page without cleaning it first. Because of that, someone could type code instead of a search term, and the browser would run that code as if the site itself had written it. This lets an attacker do things in a victim's browser, such as read their session or act on their behalf.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.