Skip to content

Conversation

@fatguru
Copy link

@fatguru fatguru commented Dec 11, 2025

Hi Team,

This PR addresses False Negatives caused by middleware.ts redirects on the root path (/).

The Problem:
Currently, the scanner defaults to probing ["/"]. In many Next.js deployments, the root path redirects (e.g., 307 to /login). This redirection often strips the POST body before the RSC parser processes it, causing the scanner to miss vulnerable targets.

The Fix:
I updated the default logic to probe both / AND /{random_string}.
Hitting a non-existent path triggers the Next.js Global Not Found handler (which is an RSC). This forces the server to parse the payload regardless of authentication middleware or root redirects.

Issue associated: Fixes #27

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[False Negative] Scanner fails on targets with Root Redirects (Next.js Middleware)

1 participant