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
CVE-2025-29927-PoC — Here is a simple but effective exploit for CVE-2025-29927. | Kitploit
Tools/GitHubGitHub/w2hcorp/cve-2025-29927-poc
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRed Teaming
GitHubw2hcorp/cve-2025-29927-poc

CVE-2025-29927-PoC

Here is a simple but effective exploit for CVE-2025-29927.

View Repository
1391 year agoNot yet reviewed
Share

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

This repository contains a Proof of Concept (PoC) exploit for CVE-2025-29927, a critical vulnerability in Next.js that allows attackers to bypass authorization checks by abusing a middleware-specific HTTP header.


Overview

  • CVE ID: CVE-2025-29927
  • Severity: Critical (CVSS 9.1)
  • Affected Framework: Next.js
  • Vulnerability Type: Authorization Bypass
  • Exploitation Vector: HTTP Request Header
  • Exploit Complexity: Low
  • Authentication Required: No

About the Vulnerability

Next.js applications often rely on middleware for authorization and access control. This CVE arises from a logic flaw in how the x-middleware-subrequest header is processed. When this header is set to middleware, the server may incorrectly assume the request originated from internal logic and bypass middleware-based auth.

This can allow attackers to access admin panels, protected APIs, or user data — with no credentials or valid session.


PoC Exploit

We provide a simple Python script to test whether a Next.js application is vulnerable.

▶️ Usage

python3 exploit.py --url https://target.com --path /admin [--proxy http://127.0.0.1:8080]

Sample Output

[+] Sending request to: https://target.com/admin
[+] Using header: x-middleware-subrequest: middleware
[+] Status Code: 200
[+] Response Body (first 500 chars):
<!DOCTYPE html><html><head>...You are logged in as admin...

Dependencies

  • Python 3.6+
  • requests library

Mitigation

  • Upgrade to the latest patched version of Next.js.
  • Avoid using x-middleware-subrequest as a trust signal.
  • Implement server-side session validation and proper authorization checks in protected routes.
  • Consider adding WAF/IDS rules to block or flag suspicious use of this header.

WAF Logic:

if header 'x-middleware-subrequest' == 'middleware':
    block_request()

Disclosure & Credits

This PoC was developed by the Offensive Security Team at W2H Corp. as part of our continuous vulnerability research efforts. The original post for the CVE explanation is here.

Download Tool

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.

    916
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    558
  • 3

    redforge

    cybersecurity91/redforge

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

    370
  • 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.

    360
  • 5

    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.

    317
  • 6

    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.

    289

Explore all tools

Browse our collection of tools

View all tools →