Skip to content
XSS Write-up Beginner

Reflected XSS using Google Dorking on webmail application powered

A webmail application reflected the value of a colour parameter into its HTML response without encoding it. An attacker could craft a link that runs script in a victim's browser under the webmail origin, which the author says could lead to session hijacking, phishing or unauthorised actions.

Yash Pawar Follow

Published on yashpawar1199.medium.com

While hunting for reflected XSS, instead of blindly testing random parameters, search engines can be used as a passive reconnaissance tool. Google dorking helps identify specific applications and technologies that historically contain reflection points.

Yash Pawar @HackersParadise, on yashpawar1199.medium.com

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 colour parameter was written into the HTML response without output encoding, so markup in the value was interpreted by the browser.

Impact

An attacker could send a crafted link that runs script in the victim's browser under the webmail origin, which could lead to session hijacking, phishing or unauthorised actions.

What the attacker needed

Victim clicks a crafted link; target runs the affected webmail product

How it was found

  1. Use a search engine dork to find webmail instances of the product.
  2. Open a result and add a plain test value to the colour parameter.
  3. Check the page source to confirm the value is reflected.
  4. Send a URL-encoded script payload in the parameter and open the URL.
  5. Observe the alert popup, confirming script execution.

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 web pages take a value from the address bar and paste it straight into the page. If that value is treated as code rather than text, a link can carry a small script that runs in the visitor's browser. This is called reflected cross-site scripting, because the script bounces off the server and runs in the victim's session.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Yash Pawar

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.