Open redirection at https://chaturbate.com/auth/login/
The login endpoint's `next` parameter was not properly validated, allowing an attacker to redirect a victim to an external site. The existing protection only checked for lowercase `http` and could be bypassed using a capitalised scheme and a decimal IP address.
Originally disclosed on HackerOne
- Triaged in 10 hours
- Fixed in 19 hours
- Paid in 11 hours
- Disclosed after 32 days
Hi,
##Summary##
An attacker can redirect vicitm on an external website using https://chaturbate.com/auth/login/ endpoint because next parameter is not being validated properly. There is a protection existed but it's weak and can be bypassed.
http keyword is detected and protection works if payload contains http at beginning but that check can be bypassed using Http keyword. Though, only numeric is allowed after Http: so we can use decimal form of external domain/IP-address. In PoC, 3627732462 is decimal form of IP address of google.com.
Steps To Reproduce:
- Open https://chaturbate.com/auth/login/?next=Http:3627732462
- Get logged in
- You will be redirected on https://google.com instead of a chaturbate website
- Done
###Suggested Fix: Use more strong regular expression at this endpoint.
Impact
- Simplifies phishing attacks
- Reflected File Download
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 redirect validation used a weak check that only looked for lowercase `http` at the start of the value and did not normalise the scheme or resolve numeric IP forms.
Impact
This could simplify phishing attacks and enable reflected file download, as the victim is sent to an attacker-chosen external site after login.
What the attacker needed
Victim clicks a crafted login link; victim logs in
The fix
The endpoint should be fixed by using a stronger regular expression check.
How it was found
- Open the login endpoint with a crafted `next` value.
- Log in.
- Observe the redirect to an external site instead of a Chaturbate page.
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.
After logging in, a website often sends you back to the page you came from using a `next` parameter in the link. This site tried to block links to other websites but only checked for the exact lowercase word `http`, so a slightly different spelling slipped through. An attacker could craft a login link that sends you to a fake site after you log in, which makes phishing easier.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.