Please note that the following setting is enabled in the php.ini file. register_globals = On The application can be accessed from the following URL. http://192.168.56.101/webapps/globals/index.php Source code can be accessed from http://192.168.56.101/webapps/globals/source/ Review the application and its code. Report if any vulnerabilities are identified. Before diving into code analysis, let us understand how the application behaves. When the following link is opened, http://192.168.56.101/webapps/globals/index.php It shows a login page where we need to enter the password. If the user enters a wrong password, the following message will be shown.
If the correct password is entered, the user will be greeted with the following message. Note: p@ssw0rd is the correct password to log in.
Now, let us check the source code of this application and see what’s happening. Let’s begin with index.php. The user is asked to enter his password on this page. When he enters the password, it will be passed to validate.php as a post parameter for further validation.