
مجموعة أدوات أمان لـ CVE-2025-55182 (React2Shell) — مسح، اكتشاف، ربط، واختبار ثغرة RCE في React Server Components
خطر الطيران /flaɪt rɪsk/ — بروتوكول Flight الخاص بـ React هو طبقة التسلسل وراء مكونات خادم React. يستغل CVE-2025-55182 ثغرة في إلغاء التسلسل في Flight لتحقيق تنفيذ تعليمات برمجية عن بعد (RCE) بدون مصادقة. إذا كان تطبيقك يستخدم RSC، فهو خطر طيران.
مجموعة أدوات أمنية لـ CVE-2025-55182 (React2Shell) — ثغرة تنفيذ تعليمات برمجية عن بعد (RCE) بدون مصادقة بتقييم CVSS 10.0 في مكونات خادم React. قم بالمسح والكشف والربط والاختبار.
| الأداة | الوظيفة |
|---|---|
| react2shell-scanner | مسح مؤسسات GitHub ومشاريع GCP للعثور على تبعيات React/Next.js الضعيفة. اختبار استغلال مصرح به (فحص آمن، قراءة ملف، سرد دليل، تنفيذ أمر). |
| gcp-ioc-scanner | الاستعلام عن سجلات GCP Cloud Logging للبحث عن أنماط مؤشرات الاختراق عبر مشاريع متعددة وخدمات K8s. تعريفات مؤشرات قابلة للتوصيل. |
| gcp-log-correlator | ربط أحداث سجلات GCP حسب التقارب الزمني على نفس البود — مثلاً، العثور على طلب HTTP الذي تسبب في خطأ RCE. |
# Clone
git clone https://github.com/YOUR_USER/flight-risk.git
cd flight-risk
# Install dependencies
pip install -r react2shell-scanner/requirements.txt
pip install pyyaml # for gcp-ioc-scanner
# Make scripts executable
chmod +x react2shell-scanner/bin/*
chmod +x gcp-ioc-scanner/gcp-ioc-scanner
chmod +x gcp-log-correlator/gcp-log-correlator
# Authenticate
gh auth login # GitHub scanning
gcloud auth application-default login # GCP scanning + log analysis
جميع الأوامر تُنفذ من جذر المستودع.
react2shell-scanner/bin/scan-github \
--org YOUR_GITHUB_ORG \
--output ./results/github
react2shell-scanner/bin/scan-gcp \
--project YOUR_GCP_PROJECT \
--output ./results/gcp
react2shell-scanner/bin/scan-all \
--org YOUR_GITHUB_ORG \
--project YOUR_GCP_PROJECT \
--output ./results
python3 react2shell-scanner/cli.py https://your-app.example.com
# Dry run — show payload without sending
python3 react2shell-scanner/cli.py --dry-run --verbose https://your-app.example.com
# Read file via RCE
python3 react2shell-scanner/cli.py --method read-file https://your-app.example.com /etc/hostname
# List directory via RCE
python3 react2shell-scanner/cli.py --method list-dir https://your-app.example.com /app
# Execute command via RCE
python3 react2shell-scanner/cli.py --method exec-cmd https://your-app.example.com "id"
# Batch targets
python3 react2shell-scanner/cli.py --targets targets.txt --output results.json
gcp-ioc-scanner/gcp-ioc-scanner \
--targets gcp-ioc-scanner/examples/targets-example.yaml \
--iocs gcp-ioc-scanner/iocs/cve-2025-55182.yaml \
--start 2026-01-01 \
--end 2026-04-01 \
--output ./results/ioc-scan
gcp-log-correlator/gcp-log-correlator \
--project YOUR_GCP_PROJECT \
--namespace frontend \
--pod-pattern "web-app.*" \
--trigger-filter 'severity=ERROR' \
--preceding-filter 'httpRequest.requestMethod:*' \
--window 30s \
--start 2026-04-01T00:00:00Z \
--end 2026-04-02T00:00:00Z \
--format json,markdown \
--output ./results/correlation
cd react2shell-scanner
docker compose -f docker/docker-compose.yml build
docker compose -f docker/docker-compose.yml run scanner-shell
flight-risk/
├── README.md
├── LICENSE
├── react2shell-scanner/
│ ├── bin/ # scan-github, scan-gcp, scan-all
│ ├── cli.py # Exploit testing CLI
│ ├── exploit.py # Exploitation logic
│ ├── utils.py # Shared utilities
│ ├── lib/ # Shell + Python helpers
│ ├── vuln-defs/ # Pluggable vulnerability definitions
│ ├── docker/ # Containerized scanning
│ ├── examples/ # Example scripts
│ ├── test-app/ # Vulnerable Next.js fixture
│ └── requirements.txt
├── gcp-ioc-scanner/
│ ├── gcp-ioc-scanner # IOC log scanner
│ ├── iocs/ # IOC pattern definitions
│ └── examples/ # Target config examples
└── gcp-log-correlator/
├── gcp-log-correlator # Event correlator
└── examples/ # Correlation examples
gh)gcloud)jqللاستخدام المصرح به فقط. تحتوي هذه المجموعة على تعليمات برمجية لاستغلال الثغرات. استخدمها فقط ضد الأنظمة التي تمتلكها أو لديك إذن كتابي صريح لاختبارها. قد يؤدي الاستخدام غير المصرح به إلى انتهاك قانون الاحتيال وإساءة استخدام الكمبيوتر (18 U.S.C. 1030) والقوانين المماثلة.
MIT -- انظر LICENSE.
| CVSS | 10.0 حرج |
| المتجه | شبكة / بدون مصادقة / بدون تفاعل |
| React | 19.0.0 - 19.2.0 (تم الإصلاح في 19.3.0) |
| Next.js | 14.3.0 - 15.3.5, 16.0.0 - 16.0.7 (تم الإصلاح في 15.3.6, 16.0.8) |
| السبب الجذري | إلغاء تسلسل غير آمن في بروتوكول Flight الخاص بـ React |
| التأثير | تنفيذ تعليمات برمجية عن بعد كامل كمستخدم عملية التطبيق |