Skip to content
XSS Disclosed report Intermediate

Unvalidated redirect on team.badoo.com

The team subdomain reflected a carriage-return/line-feed sequence from the URL into the Location response header, allowing header injection. Because the server blocked external redirects and response splitting, the reporter used a data URI to turn the injected header into reflected cross-site scripting in Firefox.

tsug0d Follow

Originally disclosed on HackerOne

Bounty$140 Medium View original
  • Triaged in 25 hours
  • Fixed in 2 days
  • Paid in 2 days
  • Disclosed after 41 days

#Domain affected: https://team.badoo.com/ (corp.badoo.com)

#PoC (Tested on Firefox): https://team.badoo.com/%0d%0adata:text/html;text,%3Csvg%2fonload%3Dprompt%281%29%3E

poc.png
poc.png From the original on HackerOne

#Describe: team.badoo.com may vulnerable to CRLF injection, when we inject %0d%0a into url, the Location header, entire content after %0d%0a and '/' will appear in Response header:

crlf.png
crlf.png From the original on HackerOne

Since your server is configured pretty good that i can't do attack like HTTP response splitting or redirect to external url, i decided to test XSS on it.

Using Data URI scheme which is a uniform resource identifier (URI) scheme that provides a way to include data in-line in web pages as if they were external resources can bypass it and triggered XSS:

xss.png
xss.png From the original on HackerOne

The original report as published on HackerOne, by tsug0d. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely the application placed user-controlled URL input into the Location header without stripping carriage-return and line-feed characters, permitting header injection.

Impact

An attacker could run script in the context of the affected subdomain for a victim who opens the crafted link, though the report notes the server configuration blocked external redirects and response splitting, and the proof of concept was only shown in Firefox.

What the attacker needed

Victim opens a crafted link; Firefox browser

How it was found

  1. Open the crafted URL containing an encoded carriage-return/line-feed sequence followed by a data URI in Firefox.
  2. Observe that the injected content appears in the response headers after the Location header.
  3. The browser follows the injected data URI and executes the embedded SVG onload handler, showing a prompt.

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 site redirects, it puts the destination in a Location header. If it copies URL input into that header without cleaning it, an attacker can inject extra characters. Here the attacker added a data URI, which carries a page inside it, so the browser rendered attacker content and ran script.

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 tsug0d

View all

1 more disclosed report, best first.

More from Bumble

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.