1500$ Open Reduction Bug: Performed Restricted Actions in login p
The login page's state parameter contained base64-encoded JSON with a redirect URL that was not validated, allowing an attacker to change it to an external site. After login, the application redirected the user to the attacker-controlled website.
Published on medium.com
Recently,i found an interesting bug during my testing that allows the Open Redirection on login & Signup page. This issue without proper authorization in an Private HackerOne Program.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application decoded the state parameter and used its redirect value without validating that it pointed to an allowed domain.
Impact
An attacker could redirect users to a malicious site after they log in, which could be used for phishing; the report also shows the same parameter works on password reset and other paths, increasing severity.
What the attacker needed
Victim clicks a crafted login link; victim completes login
How it was found
- Open the login link and inspect the state parameter, which is base64-encoded JSON.
- Decode the state parameter to see a redirect field pointing to a legitimate domain.
- Change the redirect value to an attacker-controlled domain and re-encode it in base64.
- Replace the state parameter in the login URL with the modified value.
- Visit the modified URL and complete login; the application redirects to the attacker-controlled 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 write-up has not been written yet. The Original tab links to the source.
An open redirect is when a website takes a user-supplied address and sends the user there without checking it. Here, a hidden value in the login link told the site where to go after login, and the site trusted it blindly. An attacker could craft a link that looks like the real login page but sends the victim to a fake site after they log in.
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.