Reflected HTML Injection in ████████ Login Page via infotext/signintext Parameters
The login page's custom theme script reads the infotext and signintext URL parameters and inserts them into the page using innerHTML, allowing arbitrary HTML injection. An attacker could craft a link that adds phishing instructions and an attacker-controlled link to the authentication page, potentially tricking users into following malicious links or entering credentials.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 48 days
- Disclosed after 48 days
Summary:
A reflected HTML injection vulnerability was identified on the ████████████████ login page. The page includes a custom JavaScript theme script that reads the URL parameters infotext and signintext and inserts them into the DOM using innerHTML.
An attacker can craft a link to the ████████ endpoint that injects arbitrary HTML into the authentication page (for example, adding phishing instructions and an attacker-controlled link). This can be abused for UI redress and credential phishing against users attempting to sign in to the relying party (for example, ████████).
Steps To Reproduce:
Endpoint - https://████████/adfs/ls
Open the following endpoint with HTML injection payload in the browser
https://████████/adfs/ls?wa=wsignin1.0&wtrealm=https%3A%2F%2Fwww.████████.ro%2Fconnect&whr=AD%20AUTHORITY&portalui=████████extdev&signintext=SIGNIN_MIN_93470&infotext=%3Ch2%20id%3Dphish93470%3ESecurity%20notice%3C%2Fh2%3E%3Cp%3EContinue%20to%20verify.%3C%2Fp%3E%3Ca%20id%3Dlink93470%20href%3Dhttps%3A%2F%2Fexample.com%2F%3EContinue%3C%2Fa%3E
████████ The string SIGNIN_MIN_93470 appears in the login message area and new “Security notice” header and a “Continue” link appear below the login form. Confirming that HTML was injected via the URL input paramter. ████████ Hovering over the “continue” button leads to an arbitrary attacker domain(example.com). Clicking on continue button will redirect us to the external website ████████
Note - Even though the ████████ subdomain is out of scope, it drastically increase the risk to the ████████customers when provided with the above link which belongs to ████████. Putting customers in direct threat of credential harvesting, fake pages, brand reputation damage.
Impact
The issue enables attacker-controlled content to be rendered on a live authentication page used for federated sign-in. This can be used to: Cause users to follow attacker-controlled links presented as part of the legitimate login page (phishing / malware delivery). Capture credentials by socially engineering users into entering credentials into attacker-injected content (e.g., injected form elements or instructions).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The custom theme script inserts URL parameters into the DOM using innerHTML without sanitisation.
Impact
The issue enables attacker-controlled content to be rendered on a live authentication page, which could be used for phishing, malware delivery, or credential capture through social engineering.
What the attacker needed
Victim clicks a crafted link
How it was found
- Open the login endpoint with a crafted URL containing HTML in the infotext parameter.
- Observe that the injected HTML (a header and a link) appears on the login page.
- Hover over the injected link to see it points to an attacker-controlled domain.
- Click the link to be redirected to the external site.
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 report has not been written yet. The Original tab links to the source.
When a website takes text from the address bar and puts it directly into the page without cleaning it, an attacker can make the page show their own content. Here, the login page did this with two parameters, so a crafted link could display fake security notices and links. This is dangerous because users trust the login page and might follow the fake instructions.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.