
CVE-2025-55182 (React2Shell) ماسح
A security assessment toolkit developed by the Rapticore Security Research Team for detecting React Server Components (RSC) vulnerabilities including CVE-2025-55182 (React2Shell) - a critical Remote Code Execution vulnerability.
توفر هذه المجموعة أداتين متخصصتين:
| الأداة | الوصف |
|---|---|
ore_rsc.py | ماسح سريع لنقاط نهاية RSC للتقييمات السريعة |
ore_react2shell.py | مجموعة تقييم كاملة مع تعداد النطاقات الفرعية وإعداد التقارير |
https://github.com/user-attachments/assets/5be7661b-515c-46b4-ade4-8e88fdff6528
الماسح يكتشف ثغرات CVE-2025-55182 (React2Shell) في تطبيق Next.js اختباري.
CVE-2025-55182 (React2Shell) هي ثغرة RCE حرجة تؤثر على مكونات خادم React:
| الحزم المتأثرة | الإصدارات الضعيفة | الإصدارات المُصلحة |
|---|---|---|
| react-server-dom-webpack | 19.0.0, 19.1.0, 19.1.1, 19.2.0 | 19.0.1, 19.1.2, 19.2.1+ |
| react-server-dom-parcel | 19.0.0, 19.1.0, 19.1.1, 19.2.0 |
المرجع: GHSA-fv66-9v8q-g76r
ore_rsc.py)ore_react2shell.py)# Clone the repository
git clone https://github.com/rapticore/ore_react2shell_scanner.git
cd ore_react2shell_scanner
# Create virtual environment
python3 -m venv env
source env/bin/activate # On Windows: env\Scripts\activate
# Install dependencies
pip install aiohttp jinja2
# Optional: Install subfinder for subdomain enumeration
go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
ore_rsc.py# Single domain scan
python ore_rsc.py example.com
# Multiple domains
python ore_rsc.py example.com api.example.com
# Scan from file
python ore_rsc.py -f subdomains.txt
# Deep scan with extended paths
python ore_rsc.py example.com --deep
# Active verification (sends PoC payload)
python ore_rsc.py example.com --verify
# Safe side-channel check (non-exploitative)
python ore_rsc.py example.com --safe-check
# JSON output
python ore_rsc.py example.com --format json -o results.json
ore_react2shell.py# Full assessment with subdomain enumeration
# Results saved to: results/example_com_{timestamp}/
python ore_react2shell.py --domain example.com
# Use existing subdomain list
python ore_react2shell.py --domain example.com -f subdomains.txt
# Multiple root domains
python ore_react2shell.py --domain example.com --domain example.org
# With active verification
python ore_react2shell.py --domain example.com --verify
# Safe side-channel check
python ore_react2shell.py --domain example.com --safe-check
# Skip subdomain enumeration
python ore_react2shell.py --domain example.com --skip-enum
# Custom output directory
python ore_react2shell.py --domain example.com -o ./reports
Reports are automatically organized by domain and timestamp:
results/
└── example_com_20250106_143052/
├── rsc_assessment.html # Interactive HTML report
├── rsc_assessment.json # Machine-readable JSON
├── rsc_assessment.csv # Spreadsheet format
└── rsc_assessment_executive_summary.txt # Text summary
ore_rsc.pyore_react2shell.pyينفذ الماسح منطق تحقق قوي للتعامل مع الخوادم غير المستقرة:
تكتشف الماسحات نقاط نهاية RSC من خلال:
text/x-component, text/x-rsc, text/x-flightx-nextjs-cache, rsc, next-action, إلخ.0:, 1:)، مراجع React ($)$ACTION_ID، formAction| مستوى المخاطرة | المعيار |
|---|---|
| حرج | تم تأكيد الاستغلال عبر --verify |
| عالٍ | يحتمل أن يكون ضعيفًا عبر --safe-check |
| متوسط |
إذا تم اكتشاف نقاط نهاية ضعيفة:
react-server-dom-* إلى الإصدارات المُصلحة (19.0.1, 19.1.2, 19.2.1+)هذه الأداة مخصصة لتقييمات الأمن المصرح بها فقط. استخدمها فقط على النطاقات التي تملكها أو لديك إذن كتابي صريح لاختبارها.
فريق أبحاث أمن Rapticore لا يتحمل أي مسؤولية عن سوء الاستخدام.
طوره فريق أبحاث أمن Rapticore
| 19.0.1, 19.1.2, 19.2.1+ |
| react-server-dom-turbopack | 19.0.0, 19.1.0, 19.1.1, 19.2.0 | 19.0.1, 19.1.2, 19.2.1+ |
| الخيار | الوصف |
|---|
domains | النطاق(ات) المراد فحصها |
-f, --file | ملف يحتوي على النطاقات (واحد في كل سطر) |
-c, --concurrency | الطلبات المتزامنة (الافتراضي: 20) |
-t, --timeout | مهلة الطلب بالثواني (الافتراضي: 25) |
--deep | الفحص العميق بمسارات موسعة |
--verify | التحقق النشط - يرسل حمولة إثبات المفهوم RCE |
--safe-check | تحقق أمني عبر القناة الجانبية |
--waf-bypass | وضع تجاوز WAF ببيانات غير مفيدة |
-o, --output | مسار ملف المخرجات |
--format | تنسيق المخرجات: console, json, csv |
| الخيار | الوصف |
|---|
-d, --domain | النطاق(ات) المستهدفة للتقييم (مطلوب) |
-f, --file | ملف يحتوي على النطاقات الفرعية |
--skip-enum | تخطي تعداد النطاقات الفرعية |
-c, --concurrency | الطلبات المتزامنة (الافتراضي: 30) |
--deep | الفحص العميق بمسارات موسعة |
--verify | وضع التحقق النشط |
--safe-check | تحقق أمني عبر القناة الجانبية |
-o, --output | دليل المخرجات الأساسي (الافتراضي: results) |
--format | تنسيق المخرجات: html, json, csv, txt, all |
| نقطة نهاية RSC مع إجراءات خادم |
| منخفض | تم اكتشاف نقطة نهاية RSC |
| معلومات | وجود مؤشرات RSC |