What is MySQL?
MySQL is one of the most widely deployed relational databases on the internet.
Common security issues
Default or weak passwords.
Anonymous user accounts.
Privilege escalation.
SQL injection from apps.
Remote access without restrictions.
Default ports
3306
Enumeration
Covers MySQL version, auth, databases, users, grants, and data
Vulnerability Discovery
Default creds, FILE privilege, remote access, and weak hash checks
MySQL Anonymous and Default Credential Check
MySQL FILE Privilege Detection
MySQL Remote Access Misconfiguration
MySQL Weak Password Hash Detection
Exploitation
Brute-force, file read/write, UDF abuse, and hash cracking guides
MySQL Credential Brute-Force
MySQL File Read with LOAD_FILE
MySQL File Write and Webshell via INTO OUTFILE
MySQL Hash Extraction and Cracking
Exploit MySQL to extract password hashes from user tables, then crack them offline using tools like Hashcat or John the Ripper to gain credential access.
MySQL UDF Privilege Escalation
Post-Exploitation
Enumerate MySQL internals, harvest creds from app configs
MySQL Credential Harvesting from Application Configs
MySQL Post-Exploitation Enumeration
Covers MySQL enumeration techniques post-compromise, including user privilege extraction, database schema mapping, credential harvesting, and UDF-based privilege escalation paths.
Data Exfiltration
Guides for extracting MySQL data via dumps, queries, and file output