Unauthenticated Access To MongoDB Database of Oracle Corporation
A MongoDB database was exposed without authentication on a staging subdomain, allowing anyone to access it directly. The reporter found it by enumerating subdomains and checking a staging endpoint.
Published on pratikkhalane91.medium.com
Hello everyone, today I will be talking about one of the critical bugs which I found in the Oracle Corporation. Now, let’s start with the recon process
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 MongoDB instance was left without authentication enabled and was reachable from the internet on a non-standard port.
What the attacker needed
None
The fix
The organisation removed the website and blocked all access to the MongoDB database.
How it was found
- Enumerate subdomains of the target domain using a subdomain tool.
- Filter the subdomain list to find live hosts.
- Gather additional endpoints from archived URLs and other sources.
- Search for admin or staging endpoints such as those starting with 'stag-dev'.
- Open the discovered links that led to the MongoDB database.
- Resolve the hostname to an IP address and observe that the database was listening on port 8086.
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 database is where a website stores its data. Normally it should require a password, but here it was left open so anyone who found the address could read or change everything. The finder used tools to list subdomains and spotted a test version of the site that pointed to this open database.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.