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.
Published on web.archive.org
{{media:0}}
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
- Find a subdomain using a Google dork.
- Visit the forgot-password page with a loginUrl parameter.
- View the page source and notice the loginUrl value is placed in a JavaScript variable.
- Inject a payload that breaks out of the string and calls alert.
- 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.