You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ ETHICAL USE ONLY – AUTHORIZED SECURITY TESTING
This repository provides tools for authorized security professionals, blue teams, and penetration testers only.
Unauthorized access to computer systems is illegal under CFAA (US), Computer Misuse Act (UK), TCK 243/244 (Turkey), and similar laws worldwide.
📖 Vulnerability Overview
CVE‑2026‑58048 is a critical SQL injection vulnerability in cPanel & WHM versions 11.x that allows an authenticated cPanel user to execute arbitrary SQL commands with MySQL root privileges via the database rename functionality.
How it works
Authenticated access required – the attacker must have a valid cPanel account (username/password) on the target server.
SQL mode manipulation – the exploit sets the MySQL session to ANSI_QUOTES mode, which changes the parsing behavior.
Database rename injection – when renaming a database, the new name is not properly sanitized, allowing the attacker to inject arbitrary SQL statements.
Root privileges – because the rename operation runs with MySQL root privileges, the injected SQL is executed with the highest database permissions.
Impact – full database takeover, privilege escalation, server compromise, data theft, backdoors, and lateral movement. Upgrade immediately!
Affected Versions
cPanel & WHM 11.110 and earlier – vulnerable
11.111 – 11.118 – vulnerable
11.119 – 11.126 – vulnerable
11.127 – 11.134 – vulnerable
11.135 – 11.136 – vulnerable
11.137.x – vulnerable below 11.137.1.6
11.138.1.6 and later – patched
Patch
Upgrade to cPanel & WHM 11.138.1.6 or newer.
If upgrade is not possible, disable MySQL rename operations for cPanel users as a temporary workaround.
🧰 Tools
Tool
Purpose
Intended User
exploit.py
Full weaponized toolkit with reverse shell, persistence, UDF RCE, file read/write, database operations, proxy support, and mass scanning.
Red teams / authorized pentesters
safecheck.py
Non‑intrusive vulnerability checker that detects cPanel version and assesses risk without executing any malicious payload. Generates detailed reports.
Blue teams / security auditors
📊 Feature Comparison
Feature
exploit.py
safecheck.py
Vulnerability detection
✅
✅
Version detection
✅
✅
MySQL root SQL injection
✅
❌
Reverse shell
✅
❌
Persistence (cPanel user creation)
✅
❌
UDF RCE (command execution)
✅
❌
File read/write
✅
❌
Database operations (any SQL)
✅
❌
Proxy support
✅
✅
Mass scanning (multi‑thread)
✅
❌
Interactive shell
✅
❌
Non‑intrusive (safe) mode
❌
✅
Verbose/Debug mode
✅
✅
SSL verification control
✅
✅
Custom User‑Agent
✅
✅
Request delay / retries
✅
❌
JSON / report output
✅
✅
Endpoint accessibility check
❌
✅
SQL mode leakage detection
❌
✅
🎯 Use Case Summary
Scenario
Recommended Tool
Blue Team – verifying if your cPanel installation is vulnerable