Open Redirect via "next" parameter in third-party authentication
The login flow for third-party authentication providers accepted a 'next' parameter that could contain a triple-slash prefix, causing the browser to treat it as a protocol-relative URL. After authenticating, a user could be redirected to an attacker-chosen external site.
- Triaged in under an hour
- Fixed in 27 hours
- Disclosed after 23 days
Hi,
It is currently possible to execute an open redirection attack via the next parameter with the inclusion of a triple-slash prefix.
Proof of Concept
Redirect URL
https://demo.weblate.org/accounts/login/github/?next=///google.com
After authenticating, the user will be immediately redirected to the attacker-specified target. I believe this affects all third-party authentication providers on the Weblate platform.
Please let me know if you require any additional details regarding this vulnerability.
Thanks!
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 accepted a user-supplied redirect target beginning with a triple slash and did not normalise or validate it as a same-site path, so the browser interpreted it as a protocol-relative external URL.
Impact
A user who authenticates through a crafted link could be redirected to an attacker-controlled site, which may aid phishing; the report claims this affects all third-party authentication providers on the platform.
What the attacker needed
Victim clicks a crafted login link; victim completes third-party authentication
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 you log in with a third-party account, the site can send you to another page. The site trusted a value in the link that said where to go next, and it did not check that the destination stayed on its own site. An attacker could craft a login link that sends you to their site after you log in, which is useful for phishing.
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.