Bug Bounty - Information Disclosure through error message + WAF Bypass led to Local File Inclusion
A directory exposed full file paths in error messages, and after bypassing a WAF by finding the origin IP, the attackers accessed the Lucee admin interface and abused its error mapping to read local files such as /etc/passwd and server.xml. This allowed disclosure of sensitive credentials.
Published on arben.sh
This is a writeup about a critical bug that me and 0xcela found while poking around. This bug is undisclosed due to private program so I’m going to refer the company as redacted.com
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 the Lucee admin interface was exposed with default or weak credentials, and its error mapping feature allowed arbitrary local file paths to be set, leading to local file inclusion.
Impact
An attacker could read sensitive files on the server, including system password files and configuration files containing credentials for LDAP and Azure PostgreSQL.
What the attacker needed
Access to the origin IP; Lucee admin interface exposed; Ability to set a new admin password
The fix
The vulnerability was fixed according to the report.
How it was found
- Find a directory that returns an error message revealing full paths.
- Bypass the WAF by locating the origin IP via Censys.
- Access the Lucee admin interface and set a new password.
- Change the 500 error page to point to a local file such as /etc/passwd.
- Trigger a 500 error to read the file contents.
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 web server sometimes shows detailed error messages that reveal where files are stored on the machine. The attackers used that clue to find an admin panel for a component called Lucee, which let them change what file is shown when an error happens, so they could read any file on the server, including one with passwords.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.