Exposed Database Dump via Directory Listing on ETH Zurich Infrastructure
A MediaWiki installation on an ETH Zurich subdomain had directory listing enabled, and a 3.6 GB PostgreSQL database dump was sitting in a web-accessible directory. Anyone with a browser could browse the index and download the entire dump without authentication.
While reviewing a subdomain on ETH Zurich’s infrastructure, I found Directory Listing enabled on a MediaWiki installation. Among the exposed files was a 3.6 GB PostgreSQL database dump — freely downloadable with no authentication required.
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 directory listing was left enabled on the web server and a database dump was stored in a web-accessible directory instead of being removed or protected.
Impact
The dump likely contains the full dataset of the application, including user records, configurations and possibly credentials reused elsewhere, and exploiting it requires no technical skill.
What the attacker needed
None
The fix
Directory listing should be disabled across hosted subdomains, dumps should never be placed in web-accessible directories, and automated scanning and periodic audits should catch exposed files; the report states it was resolved by ETH Zurich IT Security.
How it was found
- Find a subdomain on the target's infrastructure and review it.
- Notice that directory listing is enabled on a MediaWiki installation.
- See a 3.6 GB PostgreSQL database dump among the listed files.
- Download the dump without any authentication.
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.
Some web servers can show a list of every file in a folder, like an open filing cabinet, when no index page exists; this is called directory listing. Here a backup copy of the whole database had been left in such a folder, so anyone who found the address could simply click and download it. No password or special tool was needed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.