Skip to content
XSS Write-up Beginner

Cross Site Scripting (XSS) Reflected in one of the subdomains of “General Motors”(Bugbounty)

A subdomain of General Motors reflected unvalidated URL input back into an error page, so a crafted link could run JavaScript in a visitor's browser. An attacker could use this to redirect the legitimate subdomain to a cloned site for phishing.

- Follow

Published on securitytrooper.com

In this post I show you how I found a Cross Site Scripting (XSS) Reflected in one of the subdomains of “General Motors”.

adm1n, on securitytrooper.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 application echoed the raw URL contents into an error page without encoding or filtering them.

Impact

An attacker could redirect the legitimate subdomain to a cloned website to carry out a phishing attack.

What the attacker needed

Target is in a bug bounty programme; victim opens a crafted link

How it was found

  1. Enumerate subdomains of the target domain with a subdomain-listing tool.
  2. Pick an old-looking subdomain and test it for common flaws.
  3. Force an error and notice the full URL text is reflected in the response.
  4. Craft a URL containing JavaScript so the reflected value executes.

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.

When a website puts text from the address bar straight onto the page without cleaning it, an attacker can put code in the link instead of plain text. The victim's browser then runs that code as if the site itself wrote it. This is called reflected cross-site scripting, because the malicious input is bounced straight back to whoever opens the link.

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 -

View all

18 more disclosed reports, best first.

More from General Motors

View all

The newest disclosed reports for this program.

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.