Open redirect in switch account functionality
The account-switch.php endpoint accepted an unrestricted return_url parameter, allowing redirection to any external domain. An attacker could craft a link that, after login, sends the user to a phishing site to steal credentials.
- Triaged in 2 days
- Fixed in 7 months
- Disclosed after 9 months
Summary by the program
A user having access to the UI of a Revive Adserver instance could be tricked into clicking on a specifically crafted admin account-switch.php URL that would eventually lead them to another (unsafe) domain, potentially used for stealing credentials or other phishing attacks.
The report
To reproduce this vulnerability:
- You have to be logged in user
- Enter address: http://<your_local_installation>/www/admin/account-switch.php?return_url=http://127.0.0.1:12345/test
This is due to unrestricted redirection url passed in in the return_url parameter. I would recommend to use some kind of whitelisting or a check if you are redirecting to the same domain you were before.
Impact
This kind of open redirect vulnerabilities are used in fishing campaigns. I assume that in this case a support request containing a crafted url would have a higher chances of success. For additional malicious url obfuscation you can:
- add some unused parameters that would suggest identifiers of campaigns, other accounts and other revive specific information
- register a domain name similar to the attacked one
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
Impact
An attacker could use this open redirect in phishing campaigns to lead users to unsafe domains, potentially stealing credentials.
What the attacker needed
Logged-in user; victim clicks a crafted link
The fix
The return_url should be validated against a whitelist or checked to ensure it points to the same domain.
How it was found
- Log in as a user.
- Visit the account-switch.php URL with a return_url pointing to an external site.
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 when a website lets you specify where to go next using a link parameter, and it does not check that the destination is safe. Here, the return_url parameter could be set to any website, so a victim clicking a crafted link would end up on an attacker's page that looks like the real site. This is dangerous because attackers can use it to steal passwords by making the fake page look trustworthy.
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.