Using No Redirect Plugins to Defeat 302 Redirect Headers

March 10, 2017 | Views: 5021

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

Naturally, the first question you may have would be WHY would you want to Defeat a 302 Redirect Header?

A 302 Redirect header is designed to direct a browser away from locations on a website that the Administrators do not want you to access. These can be things such as configuration files that contain sensitive data, or even the CMS administrative panel. I have actually even used No Redirect plugins to bypass authentication on poorly designed CMS login page. By requesting the /admin/ page and disallowing redirection to /admin/login.php I was able to access the CMS panel with full privilege without any type of login information whatsoever.

In my time spent penetration testing I have found numerous sites that will use 302 redirect headers to protect access to their CMS admin panels. Obtaining this access anyways can be a critical skill to have in your toolset as a penetration tester. The plugin I use for this also will display the full address path on websites whose Content Management System use shortened URLs. Knowing the GET parameters without resorting to trial and error can be important when trying to test for SQL Injection or Cross-site scripting. Disallowing redirects can also force a site to load manual injection attempts, where normally the behavior would be to redirect you to the homepage rather than executing the additional code you have appended to the URLs get parameter.

I would recommend this plugin: http://code.kliu.org/noredirect/

Usage is very easy! Open the preferences and add the URL you would like to set permissions for and then set the permissions accordingly!

You’re good to go! Start testing … responsibly.

 

Share with Friends
FacebookTwitterGoogle+LinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterGoogle+LinkedInEmail
Ready to share your knowledge and expertise?
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Cybrary On The Go

Get the Cybrary app for Android for online and offline viewing of our lessons.

Get it on Google Play
 

Support Cybrary

Donate Here to Get This Month's Donor Badge

 
Skip to toolbar

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel