Peering into the Shadows: How an Empty Domain Led to a Full-Blown
An exposed WireMock admin interface allowed unauthenticated access to configuration mappings, enabling the creation of arbitrary pages that could steal cookies, harvest credentials, and perform SSRF. The same interface exposed endpoints to shut down and reset the server, causing denial of service and log tampering.
Published on medium.com
During a recent engagement, I encountered a peculiar challenge: testing a domain that seemingly had no landing page. No welcome message, no index file, just a blank slate.
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 WireMock admin interface was exposed without authentication, allowing unauthenticated access to sensitive administrative endpoints.
Impact
An attacker could steal session cookies and credentials, perform SSRF to scan internal networks, shut down the server causing denial of service, and reset mappings and logs to cover tracks.
What the attacker needed
No authentication required; Network access to the target domain
The fix
The report does not state that the issue was fixed; it should be fixed by securing all admin interfaces with authentication and restricting access to trusted users.
How it was found
- Brute-force directories on the empty domain to find the /mappings endpoint.
- Visit /mappings to view server configuration and sensitive data.
- Experiment with request formats to inject new mappings and create arbitrary pages.
- Create pages such as /exec to steal cookies and /login to harvest credentials.
- Brute-force further to discover /__admin/swagger-ui and /__admin/shutdown.
- Send a POST request to /__admin/shutdown to take the server offline.
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 server had a hidden control panel left open to anyone on the internet. An attacker could use it to add fake pages that steal passwords or cookies, and even switch the server off completely.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.