Settings

Theme

Authorization Bypass in Next.js Middleware

github.com

25 points by nilsbunger 9 months ago · 4 comments

Reader

theschmed 9 months ago

More details here: https://zhero-web-sec.github.io/research-and-things/nextjs-a...

Hat tip ash: https://news.ycombinator.com/item?id=43451485

cjbprime 9 months ago

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!)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection