When 404 Said No… But I Said Yes — The Curious Case of 404 Bypass!
The server returned 404 for admin paths but a URL-encoded traversal sequence reached a hidden admin panel with a 200 response. An attacker could access internal admin endpoints, download old user database backups, read debug logs, and use an open file upload feature that could lead to remote code execution.
It started as a boring test on a private bug bounty target — an internal SaaS tool that responded to every /admin, /config, /backup with a beautiful... 404 Not Found.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely poor URL normalisation in server routing, where encoded characters are double-decoded or misinterpreted and a reverse proxy forwards the broken path to the backend without proper validation.
Impact
The bypass could allow access to hidden admin endpoints, downloadable old user database backups, exposed debug logs, and an open file upload feature that could have led to remote code execution.
What the attacker needed
Access to the target web application; ability to send crafted HTTP requests
The fix
The server should normalise and validate URL paths consistently, avoid double-decoding encoded characters, and ensure the reverse proxy does not blindly forward malformed paths to backend applications.
How it was found
- Send requests to admin paths and observe 404 responses with varying response times.
- Test deeper path variations with encoded characters and separators, still getting 404.
- Try a path with a semicolon and test suffix, which returns 403 instead of 404.
- Try encoded dot and encoded slash sequences, which cause a 500 error.
- Try a URL-encoded traversal sequence, which returns 200 and reveals the admin panel.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A website normally hides private pages like /admin by saying 'not found' (a 404 error). The tester found that by encoding special characters in the address, the server decoded them and showed the hidden admin page instead. This means the server's way of cleaning up web addresses was flawed, letting someone reach pages meant to be private.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.