Skip to content
Open redirect Disclosed report Beginner

Open redirect on chaturbate.com (tipping/purchase_success)

The `prejoin_data` parameter on the purchase success page was not sanitised, allowing an attacker to redirect users to an external site. This could be used for phishing to steal credentials.

glc Follow

Originally disclosed on HackerOne

Bounty$250 Low View original
  • Triaged in 5 hours
  • Fixed in 6 hours
  • Paid in 5 hours
  • Disclosed after 30 days

Hi,

I would like to report an open redirect issue on https://chaturbate.com/

Description

An attacker can redirect a user to any external website using the parameter prejoin_data, this parameter seems to miss sanitization.

Steps to Reproduce

Visit the following url: https://64.38.230.2/tipping/purchase_success/?product_code=4137&prejoin_data=domain%2Fpoc.10degres.net This will redirect you to my website http://poc.10degres.net

Browsers Verified In:

  • Firefox 56.0, Ubuntu 16.04

PoC

20180924-open-redirect.png
20180924-open-redirect.png From the original on HackerOne

Impact

By modifying untrusted URL input to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts may have a more trustworthy appearance.

Remediation

Use a whitelist approach to allow redirection to trusted domains.

See also

https://www.owasp.org/index.php/Unvalidated_Redirects_and_Forwards_Cheat_Sheet

Best regards,

Gwen

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 3 min read.

Context

Chaturbate is a live streaming site. The report concerns a single endpoint on chaturbate.com, the tipping purchase success page:

The report concerns the tipping purchase success page on chaturbate.com. It accepts a product_code parameter and a prejoin_data parameter. The researcher found that prejoin_data is reflected into a redirect, so a crafted link on the legitimate domain can send the visitor to an arbitrary external site.

Setup

No accounts, roles or special tooling are described. The only precondition is a browser: the researcher verified the behaviour in Firefox 56.0 on Ubuntu 16.04. The proof of concept uses a domain the researcher controls, poc.10degres.net, as the redirect destination.

Finding it

The researcher identified prejoin_data as a parameter that appears to lack sanitisation. Because the value is used to build a redirect target, an attacker who controls it can choose where the victim ends up, while the link the victim clicks still points at the trusted chaturbate.com host.

Exploitation

Step 1: request the purchase success page with a crafted prejoin_data

Visit the following URL:

HTTP
https://[redacted]/tipping/purchase_success/?product_code=4137&prejoin_data=domain%2Fpoc.10degres.net

The path is the tipping purchase success endpoint. product_code=4137 is a product identifier carried in the query string. The interesting part is prejoin_data=domain%2Fpoc.10degres.net: the value is URL-encoded, with %2F standing for a forward slash, so the decoded value is domain/poc.10degres.net. The report says the parameter seems to miss sanitisation, and the request redirects to the researcher's site.

Step 2: observe the redirect

The response redirects the browser to the researcher's site:

Text
http://poc.10degres.net

The victim starts on the Chaturbate host and ends up on an attacker-controlled domain. The screenshot below shows the redirect in the browser.

20180924-open-redirect.png
20180924-open-redirect.png From the original on HackerOne

Root cause

The prejoin_data parameter is used as, or as part of, the redirect target without validation. The report states that the parameter seems to miss sanitisation; the exact server-side construction is not shown. The report does not show how the server builds the redirect target. The report says the parameter seems to miss sanitisation.

Impact

An attacker can craft a link on the legitimate chaturbate.com domain that forwards the victim to a malicious site. As the researcher puts it, by modifying untrusted URL input to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts may have a more trustworthy appearance. The impact depends on the victim following the crafted link and then trusting the destination page; the report does not demonstrate credential theft itself.

Fix

The report recommends a whitelist approach: allow redirection only to trusted domains. The report does not say what change, if any, was made to the endpoint.

Variants to test

  1. Other parameters on the same endpoint. A positive result is a Location pointing at a domain you control.
  2. Encoding tricks. A positive result is the same off-site redirect after decoding.
  3. Absolute versus relative targets. A positive result is a redirect to your host rather than to a path on Chaturbate.
  4. Other post-purchase and return pages. A positive result is any of them honouring an external destination.

Hunting notes

The signal is a redirect response whose target contains part of your input.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

What happened, in plain words

Chaturbate is a live streaming site. The report concerns a page on chaturbate.com: That page lives at a fixed address on chaturbate.com:

The address in the report carries extra pieces of information called parameters. Those extra pieces are called parameters. One of them is called product_code and another is called prejoin_data. The researcher found that prejoin_data seems to miss sanitisation, and the crafted link redirected to an external site.

The result is called an open redirect. In everyday terms, imagine a trusted shop assistant who will walk you to any address you name, even a fake shop across the street. The link you click still starts with the real shop's name, so it looks safe, but you end up somewhere the shop does not control. In this case, a link on the real chaturbate.com address sent the visitor to an external website.

Setup

The report describes no accounts, no special roles and no special tools. The only thing needed is a browser. The researcher checked the behaviour in Firefox 56.0 on Ubuntu 16.04.

For the proof, the researcher used a website they control, poc.10degres.net, as the place the browser would be sent to. Having your own site as the destination is useful because you can see for yourself that the browser really left Chaturbate and arrived at a page you own.

Finding it

The researcher spotted that the prejoin_data parameter appears to lack sanitisation. Sanitisation means cleaning up or checking input before the site uses it, the way a receptionist might check that a delivery address is real before forwarding a parcel. Because the value of prejoin_data is used to build the place the browser is sent to, anyone who controls that value can choose the destination. Meanwhile, the link the victim clicks still shows the trusted chaturbate.com address at the start.

Exploitation

Step 1: request the purchase success page with a crafted prejoin_data

The researcher visited this address in the browser:

HTTP
https://[redacted]/tipping/purchase_success/?product_code=4137&prejoin_data=domain%2Fpoc.10degres.net

Line by line, in plain words:

  • https:// is the usual prefix for a secure web address.
  • [redacted] is the address of the server being contacted in this test.
  • /tipping/purchase_success/ is the path, the part that names the purchase confirmation page.
  • ? marks the start of the parameters, the extra pieces of information sent along with the request.
  • product_code=4137 is one parameter: its name is product_code and its value is 4137, a product identifier.
  • & separates one parameter from the next.
  • prejoin_data=domain%2Fpoc.10degres.net is the interesting parameter. Its value is written in URL encoding, a way of writing characters that would otherwise be awkward in an address. %2F stands for a forward slash, so the decoded value is domain/poc.10degres.net.

The report says the parameter seems to miss sanitisation.

Step 2: observe the redirect

The response sends the browser to the researcher's site:

Text
http://poc.10degres.net

In plain words, the victim starts on the Chaturbate address and ends up on a domain controlled by the attacker. The screenshot below shows the redirect happening in the browser.

20180924-open-redirect.png
20180924-open-redirect.png From the original on HackerOne

Root cause

The prejoin_data parameter is used as, or as part of, the destination of the redirect, without being validated. The report says the parameter seems to miss sanitisation; the exact way the server builds the redirect is not shown. The report does not show how the server builds the redirect target.

Impact

An attacker can build a link on the legitimate chaturbate.com domain that forwards the victim to a malicious site. In the researcher's words, by modifying untrusted URL input to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts may have a more trustworthy appearance.

Phishing means tricking someone into handing over information, such as a password, by pretending to be a site they trust. The impact depends on the victim following the crafted link and then trusting the page they land on. The report does not demonstrate credential theft itself.

Fix

The report recommends a whitelist approach: allow redirection only to trusted domains. A whitelist is a list of things that are allowed, and anything not on the list is refused. The report does not say what change, if any, was made to the page.

Variants to test

  1. Other parameters on the same page. The Location header is the part of a web response that tells the browser where to go next. A positive result is a Location pointing at a domain you control.
  2. Encoding tricks. A positive result is the same off-site redirect after decoding.
  3. Absolute versus relative targets. The payload supplies a host-like fragment without a scheme. A scheme is the http or https part at the start of an address. Try values that include a scheme and host directly. A positive result is a redirect to your host rather than to a path on Chaturbate.
  4. Other post-purchase and return pages. A positive result is any of them honouring an external destination.

Hunting notes

The signal is a redirect response whose target contains part of your input.

Glossary

  • Open redirect: a flaw where a trusted site sends visitors to an address chosen by the visitor, including external sites.
  • Endpoint: a specific address on a website that handles a particular request, such as the purchase success page.
  • Parameter: an extra piece of information attached to a web address, written as a name and a value.
  • Query string: the part of a web address after the ? that carries parameters.
  • Sanitisation: checking or cleaning input before a site uses it.
  • URL encoding: a way of writing characters in a web address using codes such as %2F for a forward slash.
  • Redirect: an instruction from a server telling the browser to go to a different address.
  • Location header: the part of a web response that names where the browser should go next.
  • Host: the part of a web address that names the server, such as chaturbate.com.
  • Scheme: the http or https part at the start of a web address.
  • Phishing: tricking someone into giving away information by pretending to be a trusted site.
  • Whitelist: a list of allowed things, with everything else refused.
  • Severity: a rating of how serious a security issue is.
  • Bounty: a reward paid to a researcher for reporting a security issue.
  • Recon: the early stage of looking around a target to find things worth testing.

More by glc

View all

5 more disclosed reports, best first.

More from Chaturbate

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.