
CVE-2025-55182 (React2Shell) के लिए सुरक्षा टूलकिट — React Server Components RCE भेद्यता को स्कैन करें, पता लगाएं, सहसंबंधित करें और परीक्षण करें
flight risk /flaɪt rɪsk/ — React का Flight protocol React Server Components के पीछे सीरियलाइज़ेशन परत है। CVE-2025-55182 Flight में एक डिसीरियलाइज़ेशन दोष का शोषण करके प्री-ऑथ RCE हासिल करता है। यदि आपका ऐप RSC का उपयोग करता है, तो यह एक flight risk है।
CVE-2025-55182 (React2Shell) के लिए सुरक्षा टूलकिट — React Server Components में एक CVSS 10.0 प्री-ऑथेंटिकेशन रिमोट कोड निष्पादन भेद्यता। स्कैन करें, पता लगाएं, सहसंबंधित करें और परीक्षण करें।
| टूल | यह क्या करता है |
|---|---|
| react2shell-scanner | GitHub orgs और GCP projects को असुरक्षित React/Next.js निर्भरताओं के लिए स्कैन करें। अधिकृत एक्सप्लॉइट परीक्षण (safe-probe, file read, dir list, command exec)। |
| gcp-ioc-scanner | कई projects और K8s services में Indicator of Compromise पैटर्न के लिए GCP Cloud Logging को क्वेरी करें। प्लग करने योग्य IOC परिभाषाएँ। |
| gcp-log-correlator | समय निकटता के आधार पर एक ही pod पर GCP log events को सहसंबंधित करें — उदाहरण के लिए, पता लगाएं कि किस HTTP request ने 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केवल अधिकृत उपयोग। इस टूलकिट में एक्सप्लॉइट कोड है। इसका उपयोग केवल उन्हीं सिस्टम पर करें जिनके आप मालिक हैं या जिनके परीक्षण के लिए आपके पास स्पष्ट लिखित प्राधिकरण है। अनधिकृत उपयोग Computer Fraud and Abuse Act (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 में ठीक किया गया) |
| मूल कारण | React Flight protocol में असुरक्षित डिसीरियलाइज़ेशन |
| प्रभाव | एप्लिकेशन प्रोसेस उपयोगकर्ता के रूप में पूर्ण RCE |