
أداة كشف ثغرات متعددة التقنيات لثغرة CVE-2025-55182 في تطبيقات React/Next.js. تختبر سلاسل الأدوات (gadget chains)، وحمولات تنفيذ الأكواد عن بُعد (RCE)، ومتغيرات تجاوز جدار الحماية (WAF bypass) لتحديد نقاط نهاية Server Actions المعرضة للخطر.
أداة شاملة للكشف عن الثغرات CVE-2025-55182 في تطبيقات React/Next.js مع تقنيات كشف متعددة.
لأغراض الاختبار الأمني المصرح به والبحث فقط
صُممت هذه الأداة من أجل:
الوصول غير المصرح به إلى أنظمة الحاسوب غير قانوني. احصل دائمًا على إذن كتابي قبل الاختبار.
يختبر هذا الكاشف بشكل شامل ما إذا كان التطبيق المستهدف معرضًا لـ CVE-2025-55182 باستخدام تقنيات متعددة:
تختبر الأداة سلاسل أدوات Node.js بعمليات غير ضارة:
1+1)echo test)path)/dev/null)عمليات الاختبار:
echo test, 1+1)/dev/null)لا تفعل:
تستخدم هذه الأداة uv لإدارة التبعيات والتنفيذ.
لا حاجة للتثبيت! فقط استنسخ المشروع وقم بتشغيله:
git clone <repository-url>
cd CVE-2025-55182/poc
uv run check http://target.com:3000
سيقوم البرنامج بتثبيت التبعيات تلقائيًا عند التشغيل الأول.
uv run check <target_url>
# اختبار هدف مع الإعدادات الافتراضية (يختبر نقطة النهاية /formaction)
uv run check http://localhost:3002
# تحديد نقطة نهاية مخصصة
uv run check http://localhost:3002 --endpoint /api/formaction
# اختبار أهداف متعددة من ملف
uv run check --file targets.txt
# حفظ المضيفات المعرضة للخطر في ملف
uv run check --file targets.txt -o vulnerable.txt
# زيادة المهلة للاتصالات البطيئة
uv run check http://localhost:3002 --timeout 15
# تعطيل التحقق من SSL (للشهادات الذاتية)
uv run check http://localhost:3002 --no-ssl-verify
# وضع هادئ (إخراج محدود)
uv run check http://localhost:3002 --quiet
usage: uv run check [-h] [-f FILE] [-e ENDPOINT] [-t TIMEOUT]
[--no-ssl-verify] [-q] [-o OUTPUT] [target]
positional arguments:
target عنوان URL الهدف (مثل http://target.com:3000)
optional arguments:
-h, --help عرض رسالة المساعدة والخروج
-f, --file FILE ملف يحتوي على عناوين URL المستهدفة (واحد لكل سطر)
-e, --endpoint مسار نقطة النهاية لواجهة API (الافتراضي: /formaction)
-t, --timeout مهلة الطلب بالثواني (الافتراضي: 10)
--no-ssl-verify تعطيل التحقق من شهادة SSL
-q, --quiet وضع هادئ (إخراج محدود)
-o, --output OUTPUT ملف الإخراج لكتابة المضيفات المعرضة للخطر
0 - الهدف ليس معرضًا للخطر1 - الهدف معرض للخطر130 - تمت مقاطعة المستخدم (Ctrl+C)# uv run check http://localhost:3002
======================================================================
CVE-2025-55182 Vulnerability Detector - Enhanced Edition
Multiple Detection Techniques | Comprehensive Coverage
======================================================================
[*] Testing http://localhost:3002/formaction
[*] Testing all detection techniques...
→ Gadget: fs#constructor: ✓ VULNERABLE
→ Gadget: vm#runInThisContext: ✓ VULNERABLE
→ Gadget: child_process#execSync: ✓ VULNERABLE
→ Gadget: module#_load: ✓ VULNERABLE
→ Gadget: fs#readFileSync: ✓ VULNERABLE
→ Gadget: util#promisify: ✗ Not vulnerable
→ Safe Side-Channel Detection: ✗ Not vulnerable
→ RCE PoC (Unix/Linux): ✗ Not vulnerable
→ RCE PoC (Windows): ✗ Not vulnerable
→ RCE with WAF Bypass (Unix/Linux): ✗ Not vulnerable
→ RCE with WAF Bypass (Windows): ✗ Not vulnerable
→ Advanced WAF Bypass (Unix/Linux): ✗ Not vulnerable
======================================================================
DETECTION RESULTS
======================================================================
Target: http://localhost:3002
Endpoint: /formaction
Techniques Tested: Multiple
Successful Techniques: 5 techniques detected vulnerability
Status: ⚠️ VULNERABLE
The target appears to be vulnerable to CVE-2025-55182.
Techniques that detected vulnerability:
-> Gadget: fs#constructor
-> Gadget: vm#runInThisContext
-> Gadget: child_process#execSync
-> Gadget: module#_load
-> Gadget: fs#readFileSync
Recommendation: Apply security patches immediately.
======================================================================
# uv run check http://localhost:8000
======================================================================
CVE-2025-55182 Vulnerability Detector - Enhanced Edition
Multiple Detection Techniques | Comprehensive Coverage
======================================================================
[*] Testing http://localhost:8000/formaction
[*] Testing all detection techniques...
→ Gadget: fs#constructor: ✗ Not vulnerable
→ Gadget: vm#runInThisContext: ✗ Not vulnerable
→ Gadget: child_process#execSync: ✗ Not vulnerable
→ Gadget: module#_load: ✗ Not vulnerable
→ Gadget: fs#readFileSync: ✗ Not vulnerable
→ Gadget: util#promisify: ✗ Not vulnerable
→ Safe Side-Channel Detection: ✗ Not vulnerable
→ RCE PoC (Unix/Linux): ✗ Not vulnerable
→ RCE PoC (Windows): ✗ Not vulnerable
→ RCE with WAF Bypass (Unix/Linux): ✗ Not vulnerable
→ RCE with WAF Bypass (Windows): ✗ Not vulnerable
→ Advanced WAF Bypass (Unix/Linux): ✗ Not vulnerable
======================================================================
DETECTION RESULTS
======================================================================
Target: http://localhost:8000
Endpoint: /formaction
Techniques Tested: Multiple
Status: ✓ NOT VULNERABLE
The target does not appear to be vulnerable to CVE-2025-55182.
All detection techniques failed to confirm vulnerability.
======================================================================
يسمح البرنامج النصي باختبار مضيفات متعددة مرة واحدة.
# إنشاء ملف مع عناوين URL المستهدفة (واحد لكل سطر)
echo "http://localhost:3002" > targets.txt
echo "http://localhost:8000" >> targets.txt
# تشغيل الفحص الدفعي
uv run check --file targets.txt -o vulnerable.txt
الإخراج:
======================================================================
CVE-2025-55182 Vulnerability Detector - Enhanced Edition
Multiple Detection Techniques | Comprehensive Coverage
======================================================================
[*] Loaded 2 target(s) from file
[*] Testing target 1/2
[*] Testing http://localhost:3002/formaction
[*] Testing all detection techniques...
→ Gadget: fs#constructor: ✓ VULNERABLE
→ Gadget: vm#runInThisContext: ✓ VULNERABLE
[... additional techniques ...]
======================================================================
DETECTION RESULTS
======================================================================
Target: http://localhost:3002
Endpoint: /formaction
Techniques Tested: Multiple
Successful Techniques: 5 techniques detected vulnerability
Status: ⚠️ VULNERABLE
[... details ...]
======================================================================
[*] Testing target 2/2
[*] Testing http://localhost:8000/formaction
[*] Testing all detection techniques...
→ Gadget: fs#constructor: ✗ Not vulnerable
[... all techniques fail ...]
----------------------------------------------------------------------
Target: http://localhost:8000
Endpoint: /formaction
Techniques Tested: Multiple
Status: ✓ NOT VULNERABLE
----------------------------------------------------------------------
======================================================================
SUMMARY
======================================================================
Total targets tested: 2
Vulnerable: 1
Not vulnerable: 1
======================================================================
[+] Wrote 1 vulnerable host(s) to vulnerable.txt
تختبر هذه التقنيات ما إذا كانت وحدات ووظائف Node.js معينة يمكن الوصول إليها من خلال الثغرة. تستخدم جميعها عمليات آمنة غير تخريبية:
1+1echo test غير ضارpath/dev/null (ملف نظام آمن)echo $((41*271))41*271قد تمنع البيئات المختلفة بعض الأساليب مع السماح بأساليب أخرى:
child_process ولكنها تسمح بوحدة vmCVE-2025-55182 هي ثغرة تؤثر على تطبيقات React/Next.js معينة تستخدم إجراءات الخادم (Server Actions). تسمح الثغرة للمهاجمين بتنفيذ تعليمات برمجية عشوائية على الخادم من خلال إلغاء التسلسل غير الآمن للبيانات التي يتحكم بها المستخدم.
$ACTION_*إذا اكتشفت ثغرات باستخدام هذه الأداة:
للاستفسارات أو الأسئلة أو التحسينات، يرجى الرجوع إلى وثائق المشروع الرئيسية.
هذه الأداة مقدمة للأغراض التعليمية واختبار الأمن المصرح به فقط.
تذكر: مع القوة العظيمة تأتي مسؤولية كبيرة. استخدم هذه الأداة بأخلاقية وقانونية.