
Adminer CVE-2021-43008 PoC
Proof-of-concept exploit for CVE-2021-43008 affecting Adminer.
This vulnerability allows a malicious MySQL server to request arbitrary local files from the client machine when LOAD DATA LOCAL INFILE is enabled.
The repository contains tools to reproduce the attack.
exploit.py
Python script that automates interaction with Adminer.
Features:
LOAD DATA LOCAL INFILEsetup_mysql_server.sh
Helper script that prepares a malicious MySQL/MariaDB server for exploitation.
The script:
local_infilePython 3.x
Libraries: requests beautifulsoup4 lxml
Run the setup script:
sudo ./script.sh <IP> <PORT>
Then run the exploit:
python exploit.py <adminer_url> <mysql_host> <username> <password> <database> <file_path>