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.
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.
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
- Use a search engine dork to find webmail instances of the product.
- Open a result and add a plain test value to the colour parameter.
- Check the page source to confirm the value is reflected.
- Send a URL-encoded script payload in the parameter and open the URL.
- 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.