The culture of security within FAANG could not be more opposite than the way that vercel handled this. In big tech, this would have been looked at in 48 hours, and across thousands of systems all oncalls would have been paged to do an emergency deploy. Probably within 5 days, almost the whole company would have deployed the patch. Vercel to me seems like it is run by hype men, and the CEO is certainly technical, but…
Next.js and the corrupt middleware: the authorizing artifact
11–20 of 38 posts
Re: Next.js and the corrupt middleware: the authorizing artifact
#12Earlier quoted context omitted.
What is intersting?
The lag & missing key details
Re: Next.js and the corrupt middleware: the authorizing artifact
#13Re: Next.js and the corrupt middleware: the authorizing artifact
#14Auth middleware is used for _routing_ (e.g. if you're not signed-in, you'll be redirected to the sign-in page).
This just means a 500 is thrown due to the auth() call returning null on the server.
Re: Next.js and the corrupt middleware: the authorizing artifact
#15The culture of security within FAANG could not be more opposite than the way that vercel handled this. In big tech, this would have been looked at in 48 hours, and across thousands of systems all oncalls would have been paged to do an emergency deploy. Probably within 5 days, almost the whole company would have deployed the patch. Vercel to me seems like it is run by hype men, and the CEO is certainly technical, but…
Re: Next.js and the corrupt middleware: the authorizing artifact
#16Can someone tl;dr: why there is even logic to bypass middleware in the first-place, I feel like I'm missing something obvious here...
Re: Next.js and the corrupt middleware: the authorizing artifact
#17Most don't understand this issue: Auth middleware is used for _routing_ (e.g. if you're not signed-in, you'll be redirected to the sign-in page). This just means a 500 is thrown due to the auth() call returning null on the server.
This vulnerability also isn't explicitly about auth: it's about attackers being able to send a colon separated list of middleware to skip. That could affect applications in all kinds of unexpected ways depending on what they are using middleware for and how they designed their application.
Re: Next.js and the corrupt middleware: the authorizing artifact
#18Maybe im misunderstanding how people are building endpoints these days, but every post about this I see how it can bypass auth. Wouldn’t this bypass auth only for sites where auth is true/false? I’ve never worked on a site were auth is a boolean. Auth is always a relative. The middleware is only there to identify the user. Then when querying for objects, you query objects related to that user. Or if you are serving a…
For example it’s common to write middleware on /admin so that all of your /admin/* handlers don’t have to repeat the same authz logic. And the platform breaking invariants that you should be able to depend on is why it’s a security bug.
Re: Next.js and the corrupt middleware: the authorizing artifact
#19I don't seem to be able to find a promise from Vercel, but https://endoflife.date/nextjs mentions that 15 and 14 gets security support.
Re: Next.js and the corrupt middleware: the authorizing artifact
#20Maybe im misunderstanding how people are building endpoints these days, but every post about this I see how it can bypass auth. Wouldn’t this bypass auth only for sites where auth is true/false? I’ve never worked on a site were auth is a boolean. Auth is always a relative. The middleware is only there to identify the user. Then when querying for objects, you query objects related to that user. Or if you are serving a…