Share
## https://sploitus.com/exploit?id=01672FD0-E275-54B2-B602-C30FB1799691
# Next.js-RSC-RCE-Scanner-CVE-2025-66478
CVE-2025-66478 Next.js μ·¨μ½μ μ€μΊλμ
λλ€. μΉμ¬μ΄νΈκ° RSC(React Server Components) RCE μ·¨μ½μ μ μν₯μ λ°λ Next.js λ²μ μ μ¬μ©νκ³ μλμ§ κ°μ§ν©λλ€.
## μ€μΉ λ° μ€ν
### uv μ¬μ© (κΆμ₯)
[uv](https://github.com/astral-sh/uv)λ λΉ λ₯Έ Python ν¨ν€μ§ κ΄λ¦¬μμ
λλ€.
#### 1. uv μ€μΉ
```bash
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```
#### 2. μμ‘΄μ± μ€μΉ λ° μ€ν
```bash
# κ°μνκ²½ μμ± λ° μμ‘΄μ± μ€μΉ
uv venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
uv pip install -r requirements.txt
# Playwright λΈλΌμ°μ μ€μΉ
playwright install chromium
# μ€μΊλ μ€ν
python scanner.py
```
#### λλ uv runμΌλ‘ ν λ²μ μ€ν
```bash
# uv runμ μ¬μ©νλ©΄ κ°μνκ²½ μμ΄ λ°λ‘ μ€ν κ°λ₯
uv run --with playwright scanner.py
# λ¨, Playwright λΈλΌμ°μ λ λ³λλ‘ μ€μΉ νμ
uv run --with playwright playwright install chromium
```
### pip μ¬μ©
```bash
pip install -r requirements.txt
playwright install chromium
python scanner.py
```
## μ¬μ© μμ
```bash
# μΉμ¬μ΄νΈ μ€μΊ
python scanner.py https://example.com
# νμμμ μ€μ (κΈ°λ³Έκ°: 30000ms)
python scanner.py https://example.com --timeout 60000
```
## μ·¨μ½ λ²μ
- Next.js 14.3.0-canary.77 μ΄μμ canary λ²μ
- Next.js 15.0.0 ~ 15.0.4
- Next.js 15.1.0 ~ 15.1.8
- Next.js 15.2.0 ~ 15.2.5
- Next.js 15.3.0 ~ 15.3.5
- Next.js 15.4.0 ~ 15.4.7
- Next.js 15.5.0 ~ 15.5.6
- Next.js 16.0.0 ~ 16.0.6
## μ’
λ£ μ½λ
- `0`: μμ ν¨ (ν¨μΉλ λ²μ λλ Next.js λ―Έμ¬μ©)
- `1`: μ·¨μ½ν¨
- `2`: μ μ μμ (λ²μ νμΈ λΆκ°)