PhpMyAdmin page Available Publicly

Introduction

phpMyAdmin is an application written in the PHP language that provides a web-based interface for the administration of MySQL databases.

Impact

An attacker can access, modify or delete all MySQL databases.

How to test

We have to put the phpMyAdmin after the URL

Above Screenshot is the PHPMYADMIN page of the application

How to Fix

PHP

Solution 1

To prevent public access to the phpMyAdmin directory we have to add this $cfg['Servers'][$i]['AllowRoot'] = FALSE; in phpMyAdminàconfig.inc.php file.

Solution 2

Do not allow access from the outside world!

phpMyAdmin default Apache configuration:

References

Last updated

Was this helpful?