POC详情: d56b611987b6c5586ca50e1778416159be131f3c

来源
关联漏洞
标题: Next.js 安全漏洞 (CVE-2025-29927)
描述:Next.js是Vercel开源的一个 React 框架。 Next.js 14.2.25之前版本和15.2.3之前版本存在安全漏洞,该漏洞源于如果授权检查发生在中间件中,可能绕过授权检查。
介绍
# Test app to exploit CVE-2025-29927

The NextJS app has cookie based authentification and a middleware to prevent unauthorized access to /admin page.

To start the app run

```bash
yarn
# then
yarn dev
```

To get unauthorized access to /admin page by using CVE-2025-29927 vulnerability run a proxy-server which adds special headers to requests.

```bash
node scripts/proxy.js
```

Then go to http://localhost:8000/admin
文件快照

[4.0K] /data/pocs/d56b611987b6c5586ca50e1778416159be131f3c ├── [ 118] next.config.mjs ├── [ 647] package.json ├── [4.0K] public │   └── [ 25K] favicon.ico ├── [ 422] README.md ├── [4.0K] scripts │   └── [3.0K] proxy.js ├── [4.0K] src │   ├── [4.0K] features │   │   └── [4.0K] login │   │   └── [3.3K] LoginForm.tsx │   ├── [1.5K] middleware.ts │   ├── [4.0K] pages │   │   ├── [6.8K] admin.tsx │   │   ├── [4.0K] api │   │   │   ├── [4.0K] auth │   │   │   │   └── [ 577] logout.ts │   │   │   └── [1.3K] login.ts │   │   ├── [1.2K] _app.tsx │   │   ├── [ 459] _document.tsx │   │   ├── [4.0K] fonts │   │   │   ├── [ 66K] GeistMonoVF.woff │   │   │   └── [ 65K] GeistVF.woff │   │   ├── [8.9K] index.tsx │   │   └── [ 673] login.tsx │   ├── [4.0K] styles │   │   ├── [ 608] globals.css │   │   └── [2.7K] Home.module.css │   ├── [4.0K] ui │   │   └── [2.1K] Layout.tsx │   └── [4.0K] utils │   └── [ 562] auth.ts ├── [ 492] tsconfig.json └── [ 34K] yarn.lock 12 directories, 22 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。