How I Found a Critical Vulnerability in a Major Streaming Platform (And What It Teaches Us About Web Security)
The returnTo parameter on a subscription confirmation page was reflected without sanitisation into meta tags used for mobile deep linking, allowing JavaScript execution, open redirects, and injection of dangerous URI schemes. An attacker could steal session cookies, redirect users to phishing sites, or trigger actions like auto-dialling on a victim's device.
Published on meetcyber.net
It started with a simple question that probably wouldn’t occur to most people: What happens after you click a confirmation link in one of those streaming service emails?
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
The application placed user-controlled input directly into HTML meta tags without validation, output encoding, or allow-listing of schemes and domains.
Impact
An attacker could execute scripts in the context of the mobile app or WebView, redirect users to phishing sites, and trigger device actions such as auto-dialling or pre-filled messages; the text does not confirm these were actually exploited.
What the attacker needed
Victim clicks a crafted link; mobile app processes deep link
The fix
The application should validate and sanitise the returnTo parameter by allow-listing safe schemes and domains, and add security headers such as Content-Security-Policy.
How it was found
- Send a request to the confirmation endpoint with a returnTo parameter pointing to an external site.
- Observe that the returnTo value is reflected in the HTML meta tags for mobile deep linking.
- Test with a javascript: scheme to see if it is URL-encoded but still present.
- Test with tel: and sms: schemes to see if they are reflected.
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.
A website took a value from the address bar and put it straight into the page without cleaning it. Because that value could be a script or a link to another site, an attacker could make the page run their code or send users to a fake site. This is dangerous because the page belongs to a trusted company.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.