Phpmyadmin Hacktricks
For MySQL ≥ 5.0 (Linux):
| CVE | Impact | Fixed in | |-----|--------|----------| | CVE-2016-5734 | Brute force using $cfg['AllowArbitraryServer'] | 4.6.3 | | CVE-2018-12613 | File inclusion via target=db_sql.php?/../../ | 4.8.1 | | CVE-2019-12922 | CSRF + RCE | 4.9.0.1 |
LOAD DATA INFILE '/etc/passwd' INTO TABLE temp_table FIELDS TERMINATED BY '\n';
A flaw in the Core::checkPageValidity function allows validation bypass via double URL encoding. An authenticated user can leverage this to include arbitrary files on the server. phpmyadmin hacktricks
phpMyAdmin is the most widely deployed MySQL/MariaDB administration tool on the planet. For system administrators, it is a blessing—a clean, web-based GUI to manage databases, run queries, and import/export data. For penetration testers and attackers, it is often a : a direct, user-friendly interface to the application’s most sensitive asset—the database.
Knowing the absolute web path is critical for many exploits. Common methods include: Checking phpinfo() pages if accessible.
: Enable PMA's built-in 2FA support.
If the logged-in user possesses FILE privileges, database commands can be leveraged to write files directly to the web root. Writing a Web Shell (SELECT INTO OUTFILE)
privilege, an attacker can write a PHP web shell directly to the web server's document root using a SQL query: '' '/var/www/html/shell.php' Use code with caution. Copied to clipboard Variable Manipulation : Vulnerabilities like CVE-2016-5734
allowed for remote code execution via specially crafted table/database names that triggered issues in PHP's preg_replace Post-Exploitation Reading Files LOAD DATA LOCAL INFILE LOAD_FILE() to read sensitive system files like /etc/passwd Privilege Escalation For MySQL ≥ 5
A flaw in the page redirection and inclusion handling allows an authenticated user to include arbitrary files from the server.
(Administrators should consult official phpMyAdmin documentation, vendor security advisories, and database hardening guides for implementation details and CVE histories.)
Once valid credentials are secured, your objective shifts from database access to Remote Code Execution (RCE) on the underlying web server. Exploiting SELECT ... INTO OUTFILE (RCE) For system administrators, it is a blessing—a clean,
: Use LOAD_FILE() to read system files like /etc/passwd or /var/www/html/config.php to find further credentials. Security Recommendations