Vulnerable PHP Configuration
PHP configuration guidelines in test environments for web audit simulations.
0views
Vulnerabilities in action
Sección titulada «Vulnerabilidades puestas en marcha»PHP configuration to make it more vulnerable
We will edit the configuration file to make it less secure (for the subsequent audit):
sudo nano /etc/php/8.X/apache2/php.iniWe will modify these parameters to configure it for a development environment (testing only):
display_errors = On display_startup_errors = On expose_php = On log_errors = Off allow_url_fopen = On
Creating a phpinfo file for verification
We will create a file to check the PHP configuration:
echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/info.php
It is useful for seeing all its features

