Comment on Authorization Bypass in Next.js MiddlewareComments−cjbprime1yLooks like it was possible to include the `x-middleware-subrequest` header in your request, tricking the state machine into thinking you'd passed auth already.(Don't use the user input itself to encode state!)
Comments
Looks like it was possible to include the `x-middleware-subrequest` header in your request, tricking the state machine into thinking you'd passed auth already.
(Don't use the user input itself to encode state!)