POC详情: df4437c00e5469ed7d3ad3bf463527ef45b9ec3e

来源
关联漏洞
标题: Next.js 安全漏洞 (CVE-2025-29927)
描述:Next.js是Vercel开源的一个 React 框架。 Next.js 14.2.25之前版本和15.2.3之前版本存在安全漏洞,该漏洞源于如果授权检查发生在中间件中,可能绕过授权检查。
描述
A basic proof of concept of the CVE-2025-29927 vulnerability that allows to bypass the middleware scripts.
介绍
 A basic proof of concept of the CVE-2025-29927 vulnerability that allows to bypass the middleware scripts. 
 Details: [Read Here](https://zhero-web-sec.github.io/research-and-things/nextjs-and-the-corrupt-middleware)


This uses Next.js version 15.2.2.
The vulnerability allows the user to bypass the middleware script which contains the verification and can access the admin page without login.
This can be done by adding the Header ```x-middleware-subrequest: src/middleware:src/middleware:src/middleware:src/middleware:src/middleware``` to the request

This could be used as CTF challenge.
文件快照

[4.0K] /data/pocs/df4437c00e5469ed7d3ad3bf463527ef45b9ec3e ├── [ 77] jsconfig.json ├── [ 92] next.config.mjs ├── [ 320] package.json ├── [ 28K] package-lock.json ├── [4.0K] public │   ├── [ 391] file.svg │   ├── [1.0K] globe.svg │   ├── [1.3K] next.svg │   ├── [ 128] vercel.svg │   └── [ 385] window.svg ├── [ 594] README.md └── [4.0K] src ├── [4.0K] app │   ├── [4.0K] admin │   │   └── [ 194] page.js │   ├── [4.0K] api │   │   └── [4.0K] auth │   │   └── [4.0K] login │   │   └── [ 894] route.js │   ├── [ 25K] favicon.ico │   ├── [ 608] globals.css │   ├── [ 567] layout.js │   ├── [4.0K] login │   │   └── [1.7K] page.jsx │   ├── [ 774] page.js │   └── [2.7K] page.module.css ├── [ 243] auth.js └── [1.4K] middleware.js 8 directories, 20 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。