How I Earned $$$ | Open Redirection
A parameter called 'forword_url' in a redirect URL was not validated, allowing an attacker to redirect users to an arbitrary external site. The author changed the parameter value to a malicious link and was redirected there.
medium.com
Published on medium.com
After conducting thorough research on the website and testing several vulnerabilities such as XSS and IDOR, I found a page that allows the user to modify their account data. Upon completing the changes and clicking the “Continue” button, I was redirected to another page.
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 accepted a user-supplied destination in the 'forword_url' parameter without validating that it pointed to a trusted internal page.
Impact
An attacker could redirect users to malicious or phishing destinations, which may help steal credentials or distribute malware.
What the attacker needed
A user account; victim clicks a crafted link
The fix
The application should validate the redirect destination against an allowlist of trusted internal paths or reject external URLs.
How it was found
- Find a page that lets the user modify account data.
- Complete the changes and click the Continue button, which redirects to another page.
- Notice a parameter named 'forword_url' in the redirected page's URL.
- Change the value of 'forword_url' to a malicious link and observe the redirect.
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 web address from the URL and sends you there without checking it. Here, after changing account details, the site used a parameter to decide where to go next, and it accepted any address. An attacker could share a link that looks like it belongs to the real site but sends people to a fake login page.
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.