phpMyAdmin - HackTricks Verified

1. Basic Information

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL/MariaDB over the web. It is frequently targeted by attackers due to its prevalence and potential for privilege escalation.

References:

A soft sound of relief escaped her chest. She began the final phase: patching. She hardened the filtering layer, parameterized the queries, and added a strict allowlist to the phpMyAdmin instance. She set up a small cron job to audit role deletion events and email the CIO if anything unusual occurred. Then — because HackTricks had laid bare another danger — she rotated the API keys tied to the payment processor and invalidated session tokens older than a day.

SELECT '' INTO OUTFILE '/var/www/html/shell.php'; Use code with caution.

She logged in.

Verification: When auth_type = 'config', you are automatically logged in on accessing phpMyAdmin. No password prompt. This is a catastrophic misconfiguration.