Skip to content
Open redirect Disclosed report Beginner

Open redirect in securegatewayaccess.com / secure.chaturbate.com via prejoin_data parameter

A GET request to the /post endpoint with a valid weg_digest parameter and a crafted prejoin_data parameter causes the server to build a Location header pointing to an attacker-controlled domain. An attacker could use this to redirect users to a phishing site.

inhibitor181 Follow

Originally disclosed on HackerOne

Bounty$250 Medium 6.4 View original
  • Triaged in 7 hours
  • Fixed in 7 hours
  • Paid in 7 hours
  • Disclosed after 23 days

##Summary## Hello, I have found that if there is a valid weg_digest parameter in the in the GET request to https://secure.chaturbate.com/post and other parameters are invalid, a Location header will be automatically constructor based on the contents of the prejoin_data parameter. This allows someone to change the base root and create an open redirect.

Even more, it has been observed that this specific request also works under the https://securegatewayaccess.com domain and an open redirect can also be created from that domain.

PS : Because this affects both URL's and securegatewayaccess.com seems to be a critical I have marked this as medium instead of low.

Steps To Reproduce:

  • Call in browser this URL :
https://securegatewayaccess.com/post?prejoin_data=domain%2Fevil.com/?=&weg_digest=eacde2b0b10379e9848390da67ed883666fe083a9ad892fae85c590ddd354e8c
  • Or under the secure.chaturbate domain this URL :
https://secure.chaturbate.com/post?prejoin_data=domain%2Fevil.com/?=&weg_digest=eacde2b0b10379e9848390da67ed883666fe083a9ad892fae85c590ddd354e8c
  • This can also be linked with the /external_link request from the root url to create a chained redirect :
https://chaturbate.com/external_link/?url=https%3A%2F%2Fsecure.chaturbate.com%2Fpost%3Fprejoin_data%3Ddomain%252Fevil.com%2F%3F%3D%26weg_digest%3Deacde2b0b10379e9848390da67ed883666fe083a9ad892fae85c590ddd354e8c

All requests will have as answer this header :

Location: http://evil.com/?=/tipping/purchase_tokens/

Supporting Material/References:

N/A

Impact

Open redirect that facilitate potential phishing attacks.

The original report as published on HackerOne, by inhibitor181. 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. 4 min read.

Context

The target is Chaturbate's secure front end, reachable at secure.chaturbate.com and at securegatewayaccess.com. The report focuses on the /post endpoint on both hosts. According to the researcher, that endpoint takes a weg_digest parameter and a prejoin_data parameter, and when the request is otherwise invalid it builds a Location header from the contents of prejoin_data. That behaviour is what turns a normal redirect into an open redirect: the value supplied by the caller ends up controlling where the browser is sent.

The researcher notes that the same request works on both domains, and that securegatewayaccess.com appears to be the more sensitive of the two, which is why the issue was rated medium rather than low.

Setup

The report describes no accounts, roles, tools or versions. The only precondition it states is a valid weg_digest value together with otherwise invalid parameters in a GET request to /post. The steps are written to be run by simply calling a URL in a browser.

Finding it

The researcher observed that when a GET request to https://secure.chaturbate.com/post carries a valid weg_digest parameter and the other parameters are invalid, the application automatically constructs a Location header based on the contents of prejoin_data. Because that value is attacker-controlled, the base root of the redirect can be changed, producing an open redirect. The same request was then observed to work under https://securegatewayaccess.com, so the redirect can also be created from that domain.

Exploitation

Step 1: Trigger the redirect on securegatewayaccess.com

Call the following URL in a browser:

Text
https://securegatewayaccess.com/post?prejoin_data=domain%2Fevil.com/?=&weg_digest=[redacted]

Here prejoin_data is set to domain%2Fevil.com/?= and weg_digest carries a valid digest value. The remaining parameters are invalid, which is the condition under which the endpoint falls back to building the Location header from prejoin_data.

Step 2: Trigger the same redirect on secure.chaturbate.com

The same request works under the secure.chaturbate.com domain:

Text
https://secure.chaturbate.com/post?prejoin_data=domain%2Fevil.com/?=&weg_digest=[redacted]

The parameters and their roles are identical to step 1; only the host changes.

Step 3: Chain it through /external_link

The redirect can also be linked with the /external_link request from the root URL to create a chained redirect:

Text
https://chaturbate.com/external_link/?url=https%3A%2F%2Fsecure.chaturbate.com%2Fpost%3Fprejoin_data%3Ddomain%252Fevil.com%2F%3F%3D%26weg_digest%[redacted]

In this variant the /external_link endpoint receives the whole /post URL as its url parameter. The user lands on the root domain, is passed to the secure host, and from there is redirected off-site.

Result

All of the requests above answer with the following header:

HTTP
Location: http://evil.com/?=/tipping/purchase_tokens/

The Location header points at the host supplied in prejoin_data, followed by the application's own path. The browser follows the header to evil.com.

Root cause

The endpoint builds the Location header directly from the prejoin_data parameter when the rest of the request is invalid, instead of validating that the resulting target stays on an expected host. The weg_digest value is what allows the request to reach that code path. The report does not describe the validation performed on weg_digest or on prejoin_data, so the exact check that is missing is not stated; The report does not describe the validation performed on weg_digest or on prejoin_data.

Impact

This is an open redirect that facilitates potential phishing attacks. Because the redirect originates from the trusted secure.chaturbate.com and securegatewayaccess.com domains, a crafted link can send a victim to an attacker-controlled site while appearing to come from a trusted host. The report does not describe any further consequence beyond the redirect itself.

Fix

The behaviour it describes calls for validating the redirect target built from prejoin_data so that it cannot point at an arbitrary host, for example by restricting it to expected values or by constructing the Location header from a fixed base rather than from caller-supplied input.

Variants to test

  1. Try the same prejoin_data manipulation on other endpoints that accept it, on both hosts. A positive result is a Location header pointing at a host you supplied.
  2. Try other values in prejoin_data that change the base root, such as scheme-relative or absolute URLs. A positive result is the same off-site Location header.
  3. Try the /external_link chaining pattern with other internal URLs that themselves redirect. A positive result is a chain that ends on an attacker-controlled host.
  4. Try the request with different invalid parameters alongside a valid weg_digest. A positive result is that the fallback redirect is still constructed from prejoin_data.

Hunting notes

This kind of bug tends to hide in endpoints that build a Location header from request parameters, particularly when a digest or signature parameter gates access to the code path. During recon, look for parameters such as prejoin_data that appear to carry a path or domain, and for endpoints that answer with a Location header when other parameters are malformed. The researcher demonstrated impact by showing the redirect on two separate hosts and by chaining it through the root domain's /external_link endpoint.

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. 12 min read.

What happened, in plain words

A security researcher found a way to make a trusted website send visitors to a different website of the attacker's choosing. The trusted sites here are secure.chaturbate.com and securegatewayaccess.com. When you click a link that points at one of those trusted addresses, you expect to stay on Chaturbate. In this case, a specially crafted link makes the trusted server reply with an instruction that says "go to this other place instead", and that other place is controlled by whoever built the link.

This kind of bug is called an open redirect. The word "redirect" means the server telling your browser "the page you want is somewhere else, go there". The word "open" means the server will accept almost any destination, including one supplied by an outsider, rather than only destinations it trusts.

Why does that matter? Because people trust links that start with a familiar, secure-looking domain. A phishing page is a fake page that pretends to be a real one, usually to steal a password or payment details. If the first hop of a link is a genuine Chaturbate payment address, the victim has less reason to be suspicious, even though the final page is the attacker's. The report rates this as medium severity, and the researcher explains the rating: the same trick works on two addresses, and securegatewayaccess.com looks like the more sensitive of the two, so medium rather than low.

The pieces involved

Before walking through the steps, here are the ideas you need. Each one is explained from scratch.

  • URL: the address you type in a browser, like https://secure.chaturbate.com/post. It has a scheme (https), a host (secure.chaturbate.com), a path (/post), and often a query string after a ?.
  • Query string and parameters: everything after the ? in a URL. It is a list of name=value pairs joined by &. For example, ?a=1&b=2 has two parameters, a with value 1 and b with value 2. Websites read these values to decide what to do. Think of them as the options you tick on an order form.
  • GET request: the ordinary kind of request your browser makes when you open a link. The parameters travel in the URL itself, which is why you can paste the whole thing into the address bar.
  • Endpoint: a specific path on a server that does a specific job, such as /post or /external_link. Think of the host as a building and the endpoint as a particular desk inside it.
  • Location header: when a server wants your browser to go somewhere else, it answers with a special line in its reply called the Location header, containing the address to go to. Your browser reads it and loads that address automatically. It is like a receptionist saying "that department has moved, here is the new address" and walking you there.
  • weg_digest parameter: a long string of letters and numbers that the server expects to see. A digest here is a long value the server expects to see in the request. Think of it as a stamped form; the stamp shows the form came from the right office.
  • prejoin_data parameter: a parameter whose value the server uses when building the redirect. In this bug, it ends up controlling where the browser is sent.
  • URL encoding: some characters are not allowed directly in a URL, so they are written as a percent sign plus two hex digits. %2F means / and %3A means :. When the server reads the URL, it turns these back into the real characters; that is called decoding. Encoding is like writing a word in a code so it survives a trip through a system that would otherwise mangle it.
  • Double encoding: encoding something that is already encoded. If %2F is itself encoded, the % becomes %25, so %2F turns into %252F. This is used when a value has to pass through two decoding steps and still arrive intact.
  • Open redirect: a redirect where the destination is taken from user-supplied input without a proper check, so an outsider can choose any destination.
  • Phishing: tricking someone into visiting a fake page or handing over information by making the approach look legitimate.

Context: where the bug lives

The target is Chaturbate's secure payment and gateway front end, reachable at secure.chaturbate.com and at securegatewayaccess.com. The report focuses on the /post endpoint on both hosts. According to the researcher, that endpoint takes a weg_digest parameter and a prejoin_data parameter, and when the request is otherwise invalid it builds a Location header from the contents of prejoin_data. That behaviour is what turns a normal redirect into an open redirect: the value supplied by the caller ends up controlling where the browser is sent.

The researcher notes that the same request works on both domains, and that securegatewayaccess.com appears to be the more sensitive of the two, which is why the issue was rated medium rather than low.

In plain terms: the /post desk normally has a fixed idea of where to send people. But when the rest of the request does not make sense to it, it falls back to a different behaviour, and in that fallback it copies the destination from a value the visitor supplied. A visitor should never be able to choose the destination of a redirect on a trusted payment site.

Setup: what you need

The report describes no accounts, roles, tools or versions. The only precondition it states is a valid weg_digest value together with otherwise invalid parameters in a GET request to /post. The steps are written to be run by simply calling a URL in a browser.

That is worth pausing on. You do not need to install anything, register anywhere, or log in. You need a browser and the ability to paste an address into it. The report does not explain how the valid weg_digest value was obtained.

Finding it

The researcher observed that when a GET request to https://secure.chaturbate.com/post carries a valid weg_digest parameter and the other parameters are invalid, the application automatically constructs a Location header based on the contents of prejoin_data. Because that value is attacker-controlled, the base root of the redirect can be changed, producing an open redirect. The same request was then observed to work under https://securegatewayaccess.com, so the redirect can also be created from that domain.

The "base root" is the part of an address that identifies the site, such as evil.com. If the server builds the destination by gluing a base root onto a path, and the base root comes from prejoin_data, then whoever sets prejoin_data decides which site the browser ends up on.

Exploitation

Step 1: Trigger the redirect on securegatewayaccess.com

Call the following URL in a browser:

Text
https://securegatewayaccess.com/post?prejoin_data=domain%2Fevil.com/?=&weg_digest=[redacted]

Line by line, in plain words:

  • https://securegatewayaccess.com is the trusted host. This is the address the victim would see first.
  • /post is the endpoint that builds the redirect.
  • ? starts the query string, the list of parameters.
  • prejoin_data=domain%2Fevil.com/?= sets the prejoin_data parameter. The value is domain%2Fevil.com/?=. Because %2F decodes to /, the server reads it as domain/evil.com/?=. The important part is the evil.com inside it: that is the site the attacker wants the browser to end up on.
  • & separates this parameter from the next one.
  • weg_digest=[redacted] supplies the digest value the endpoint expects. This is the digest value the endpoint expects.
  • The remaining parameters are invalid, which is the condition under which the endpoint falls back to building the Location header from prejoin_data.

Why this step: it shows the bug on securegatewayaccess.com. If the trusted payment gateway itself can be made to send a visitor to evil.com, the impact is at its clearest.

Step 2: Trigger the same redirect on secure.chaturbate.com

The same request works under the secure.chaturbate.com domain:

Text
https://secure.chaturbate.com/post?prejoin_data=domain%2Fevil.com/?=&weg_digest=[redacted]

The parameters and their roles are identical to step 1; only the host changes.

  • secure.chaturbate.com replaces securegatewayaccess.com as the host.
  • Everything after /post? is the same: the same prejoin_data value, the same weg_digest value, the same invalid remainder.

Why this step: it shows the same request also works on secure.chaturbate.com.

Step 3: Chain it through /external_link

The redirect can also be linked with the /external_link request from the root URL to create a chained redirect:

Text
https://chaturbate.com/external_link/?url=https%3A%2F%2Fsecure.chaturbate.com%2Fpost%3Fprejoin_data%3Ddomain%252Fevil.com%2F%3F%3D%26weg_digest%[redacted]

In this variant the /external_link endpoint receives the whole /post URL as its url parameter. The user lands on the root domain, is passed to the secure host, and from there is redirected off-site.

Line by line, in plain words:

  • https://chaturbate.com is the root domain, the ordinary address people know.
  • /external_link/ is an endpoint on the root domain that takes a url parameter.
  • ?url= starts the query string and names the single parameter, url.
  • The value of url is the entire /post URL from step 2, but written in encoded form. %3A is :, %2F is /, %3F is ?, %3D is =, %26 is &, and %252F is a double-encoded / (the % of %2F became %25).
  • The url parameter carries the encoded /post URL, including its prejoin_data value.

Why this step: it shows the redirect can be chained through the root domain's /external_link endpoint.

Result

All of the requests above answer with the following header:

HTTP
Location: http://evil.com/?=/tipping/purchase_tokens/
  • Location: is the header that tells the browser where to go next.
  • http://evil.com is the attacker-controlled host taken from prejoin_data.
  • /?=/tipping/purchase_tokens/ is the rest of the address, which the application appends itself. The /tipping/purchase_tokens/ path is the application's own path, glued onto whatever base the attacker supplied.

The Location header points at the host supplied in prejoin_data, followed by the application's own path. The browser follows the header to evil.com.

Root cause

The endpoint builds the Location header directly from the prejoin_data parameter when the rest of the request is invalid, instead of validating that the resulting target stays on an expected host. The weg_digest value is what allows the request to reach that code path. The report does not describe the validation performed on weg_digest or on prejoin_data, so the exact check that is missing is not stated; The report does not describe the validation performed on weg_digest or on prejoin_data.

In everyday terms: the receptionist has a rule that says "if the form is stamped, use the address written on it". The stamp is checked, but nobody checks whether the address on the form is one of ours. An allow-list is a list of things that are permitted, and a same-origin check means confirming the destination belongs to the same site as the one you are on. Either would have stopped this.

Impact

This is an open redirect that facilitates potential phishing attacks. Because the redirect originates from the trusted secure.chaturbate.com and securegatewayaccess.com domains, a crafted link can send a victim to an attacker-controlled site while appearing to come from a trusted host.

Put simply: the redirect comes from a trusted secure domain, and the destination is the attacker's site.

Fix

The behaviour it describes calls for validating the redirect target built from prejoin_data so that it cannot point at an arbitrary host, for example by restricting it to expected values or by constructing the Location header from a fixed base rather than from caller-supplied input.

In plain words: either check the destination against a list of allowed places, or stop taking the destination from the visitor at all and always build it from a fixed starting point.

Variants to test

These are follow-up ideas in the same spirit as the original finding. Each one describes what a positive result would look like.

  1. Try the same prejoin_data manipulation on other endpoints that accept it, on both hosts. A positive result is a Location header pointing at a host you supplied.
  2. Try other values in prejoin_data that change the base root, such as scheme-relative or absolute URLs. A positive result is the same off-site Location header. A scheme-relative URL starts with // and borrows the current scheme, so //evil.com means "same scheme, different host". An absolute URL includes the scheme and host in full, like https://evil.com.
  3. Try the /external_link chaining pattern with other internal URLs that themselves redirect. A positive result is a chain that ends on an attacker-controlled host.
  4. Try the request with different invalid parameters alongside a valid weg_digest. A positive result is that the fallback redirect is still constructed from prejoin_data.

Hunting notes

This kind of bug tends to hide in endpoints that build a Location header from request parameters, particularly when a digest or signature parameter gates access to the code path. During recon, look for parameters such as prejoin_data that appear to carry a path or domain, and for endpoints that answer with a Location header when other parameters are malformed. The researcher demonstrated impact by showing the redirect on two separate hosts and by chaining it through the root domain's /external_link endpoint.

Recon means the early information-gathering stage of security testing: browsing a site, watching which requests it makes, and noting which parameters it accepts. The lesson here is to pay attention whenever a server's reply contains a Location header whose value seems to echo something you sent.

Glossary

  • URL: the address of something on the web, made of a scheme, a host, a path and often a query string.
  • Scheme: the first part of a URL, such as https, which says how to talk to the server.
  • Host: the site part of a URL, such as secure.chaturbate.com.
  • Path: the part of a URL after the host, such as /post, naming a specific resource or endpoint.
  • Query string: the part of a URL after ?, holding name=value parameters joined by &.
  • Parameter: one name=value pair in a query string, used to pass information to the server.
  • GET request: the ordinary browser request made when you open a link, with parameters carried in the URL.
  • Endpoint: a specific path on a server that performs a specific job.
  • Header: an extra line of information in an HTTP request or reply, separate from the page content.
  • Location header: the reply header that tells the browser to load a different address.
  • Redirect: a server instruction that sends the browser to another address.
  • Open redirect: a redirect whose destination comes from user-supplied input without a proper check, letting an outsider choose where the browser goes.
  • Digest: a value produced by an application that acts as a fingerprint or signature, showing a request was formed in the expected way.
  • weg_digest: the parameter in this report that carries such a digest value to the /post endpoint.
  • prejoin_data: the parameter in this report whose value ends up controlling the redirect destination.
  • URL encoding: writing characters that are not allowed in a URL as % plus two hex digits, such as %2F for /.
  • Decoding: turning encoded characters back into their real form when a URL is read.
  • Double encoding: encoding a value that is already encoded, so it survives two decoding steps; %2F becomes %252F.
  • Base root: the site-identifying part of an address, such as evil.com, onto which a path is appended.
  • Allow-list: a list of values that are explicitly permitted.
  • Same-origin check: confirming that a destination belongs to the same site as the one making the request.
  • Scheme-relative URL: an address starting with // that keeps the current scheme and changes only the host.
  • Absolute URL: a full address including scheme and host, such as https://evil.com.
  • Phishing: tricking someone into visiting a fake page or giving up information by making the approach look legitimate.
  • CVSS: a standard scoring system for rating the severity of a security issue.
  • Severity: a label for how serious an issue is, here medium.
  • Recon: the information-gathering stage of security testing, where you observe how a site behaves and which parameters it accepts.
  • Chaining: combining two or more issues or behaviours so that one leads into the next.

More by inhibitor181

View all

10 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.