Skip to content

Authorization Bypass in Next.js Middleware

github.com/advisories
25 pointsnilsbunger2 comments
On HN

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.