// TL;DR


The core flaw: a poisonable reset link

When you reset your password on redbull.com, the request to the identity backend (uim.redbull.com) included a targetUrl parameter that determined the link embedded in the reset email. That parameter accepted any subdomain of redbull.com — and the password-reset token was appended to whatever URL it produced.

This is password-reset link poisoning: by tampering with targetUrl in the reset request, I control where the victim’s reset link (token and all) points. On its own, pointing the link at a different Red Bull subdomain isn’t game over — the token still lands on a Red Bull page. The danger is what happens if I can get that page to hand the token to me.

The replication was always the same first few steps:

  1. Go to redbull.com → “Continue with email” → reset password.
  2. Intercept the request to uim.redbull.com in Burp.
  3. Modify targetUrl, forward the request, turn off intercept.
  4. The victim receives a reset email with a poisoned link.

The only thing that changed across the four rounds was how the poisoned destination leaked the token.

Why it leads to account takeover

A password-reset token is a temporary credential: possess it, and you can set a victim’s password and take their account. So the whole game is getting the token off the Red Bull page it lands on and over to the attacker. Two classic primitives do that, and both existed on Red Bull subdomains:

  • XSS on the landing subdomain → script reads the token from the URL and exfiltrates it.
  • Open redirect on the landing subdomain → the page bounces the browser (token in the URL) to the attacker’s server, which logs it.

Because targetUrl let me choose which subdomain the token was delivered to, any such bug anywhere under *.redbull.com became a token-theft chain.

Round 1 — Token theft via XSS

I’d actually reported the core issue by email, got two replies, then silence — and the bug stayed live. So I re-reported it properly with a full PoC.

I chained the poisonable targetUrl with a reflected XSS I found on a Red Bull subdomain (addons-ridealong.redbull.com), where the lang parameter reflected unsanitised (URL-encoded </script><script>… broke out and executed). Point targetUrl at that XSS, and the reset token arrives on a page already running my script — which reads and exfiltrates it. Account takeover.

rb1
rb2

Red Bull fixed it — but they fixed the XSS delivery, not the targetUrl behaviour.

Round 2 — Bypassing the HTML restriction with URL encoding

They then blocked HTML special characters in the reset request. I tested it again and found the filter only checked the raw characters — so URL-encoding the payload sailed straight through. Once Red Bull decoded it downstream, it was live HTML again. The payload I used in targetUrl:

https://addons-shared-panels.redbull.com/panels/generic/countdown/index.php?title=hello%3Cimg%20src=x%20onerror=alert(document.location)%3E

%3C…%3E is just <img src=x onerror=alert(document.location)> URL-encoded — the filter saw encoded bytes, not <img>, and passed it; the app decoded it and the onerror fired. Token stolen, yet again. Reported fix: check and restrict URL-encoded HTML too, not only the literal characters.

rb7
rb8
rb9

Round 3 — XSS without angle brackets

By now they’d started sanitising the reset request — but only partially. They were stripping angle brackets (< >) in the targetUrl, assuming that kills XSS.

It doesn’t. They left single and double quotes unsanitised, so I chained the flaw with an XSS that doesn’t need angle brackets at all (breaking out via quotes into an existing tag/handler). The token theft worked again. My reported fix: sanitise quotes too, not just angle brackets.

rb5
rb6

Round 4 — Same flaw, via open redirect

With the XSS path closed, the core targetUrl flaw was still there — so I just needed a different way to get the token off the page. I found an open redirect on another subdomain and I can poison the reset link and steal the token again. They have fixed now you can’t add parameters so last I found path based open redirect without need of parameters (can10.redbull.com/@example.com/).

rb3
rb4

Chaining targetUrl → that open redirect meant the reset link loaded a Red Bull page that immediately redirected the victim’s browser — token in the URL — to an external server. Same outcome, different primitive. Reported and resolved.

This round the triage team explicitly complimented the bypass, accepted it, and it was resolved — rewarded with Red Bull trays that arrived in several shipments. Here’s the first one:

redbull reward

The real lesson: fix the root, not the symptom

Four rounds, one underlying bug. Every fix Red Bull shipped targeted the symptom of that round — this XSS, this redirect, these angle brackets, these literal HTML characters — while the root cause never changed: the password-reset flow trusted a user-controlled targetUrl and attached a sensitive token to it.

As long as the token could be delivered to an attacker-influenced location, any client-side bug on any Red Bull subdomain resurrected the whole chain. Patching the delivery method is whack-a-mole; patching the token-handling is the actual fix.

The fix

The durable remediation is at the reset-flow level, not the per-payload level:

  • Don’t let user input control the reset-link destination. Pin the reset URL server-side to a single, fixed, trusted endpoint — ignore or strictly allow-list targetUrl against one exact value.
  • Never place the reset token where client-side code or redirects can reach it on an arbitrary subdomain. Keep token handling on one locked-down page.
  • If you must filter, decode-then-validate and use allow-lists — the Round 3/4 bypasses both came from blacklist filtering that checked the wrong representation (quotes missed, URL-encoding missed).
  • Treat reset tokens like credentials: short expiry, single use, and bound to the request that created them.

Takeaways

  • Password-reset link poisoning is high-impact and under-tested. If any parameter steers where the reset link/token goes, that’s a token-theft chain waiting for a client-side bug to pair with.
  • One design flaw + a subdomain bug = account takeover. On a big *.redbull.com-style scope, you only need one XSS or open redirect anywhere to weaponise a poisonable token.
  • When a fix targets your exact payload, test the next representation. Angle brackets blocked? Try quotes. Characters blocked? Try URL-encoding. Blacklists fail at the edges, and a partial fix is an invitation to find the next bypass.
  • Re-test resolved reports. Three of these four rounds came from going back and checking that a “fixed” issue was actually dead at the root. It usually isn’t.

Thanks for reading — hope it was useful. Happy hacking!

Anas Mahmood

Web & API penetration tester and bug bounty hunter. I write up the bugs I find and the methods that found them.

Leave a Reply

Your email address will not be published. Required fields are marked *