Skip to content
XSS Write-up Beginner

Reflected XSS In AT&T

A reflected cross-site scripting flaw existed in the loginUrl parameter of a password-reset page, where the value was inserted into a JavaScript variable without proper escaping. An attacker could craft a link that executes arbitrary script in the victim's browser.

Myo Min Thu Follow

Published on web.archive.org

{{media:0}}

Myo Min Thu, on web.archive.org

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 loginUrl parameter was inserted into a JavaScript string without escaping or validation, allowing an attacker to break out of the string and inject code.

What the attacker needed

Victim clicks a crafted link

The fix

The bug was resolved after being reported.

How it was found

  1. Find a subdomain using a Google dork.
  2. Visit the forgot-password page with a loginUrl parameter.
  3. View the page source and notice the loginUrl value is placed in a JavaScript variable.
  4. Inject a payload that breaks out of the string and calls alert.
  5. Observe the alert executing in the browser.

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 when a website puts user-supplied text into a page without cleaning it, so an attacker can make the page run their own JavaScript. Here, a URL parameter was placed directly inside a script variable, so a crafted link could run code in the victim's browser.

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 Myo Min Thu

View all

7 more disclosed reports, best first.

More from AT&T

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.