Find OpenRedirect Trick
"I apply this everytime while testing web applications and found many Open Redirects and even an XSS using this trick!"
Steps:
If the Applictaion have a user Sign-In/Sign-Up feature, then register a user and log in as the user.
Go to your user profile page , for example : samplesite.me/accounts/profile
Copy the profile page's URL
Logout and Clear all the cookies and go to the homepage of the site.
Paste the Copied Profile URL on the address bar
If the site prompts for a login , check the address bar , you may find the login page with a redirect parameter like the following
Try to exploit the parameter by adding an external domain and load the crafted URL eg:- https://samplesite.me/login?next=https://evil.com/ (or) https://samplesite.me/login?next=https://samplesite.me@evil.com/ #(to beat the bad regex filter)
If it redirects to evil.com , thers's your open redirection bug.
Try to leverage it to XSS eg:- https://samplesite.me/login?next=javascript:alert(1);//
Author: febinrev
Last updated