MockServer's dashboard can reveal the traffic it was asked to imitate
MockServer is a test service that accepts requests, returns configured responses, and can proxy traffic. Its control plane includes a REST API and a dashboard at /mockserver/dashboard. Newer releases also expose an MCP endpoint. Those capabilities make the service useful in development environments and sensitive when it is reachable from a shared network.
The dashboard can show expectations, recorded requests, proxy traffic, and live logs. Authentication on the control plane is therefore not optional decoration. The MockServer documentation says the dashboard and its WebSocket require the same control-plane authentication as other endpoints when authentication is enabled. It also protects against DNS rebinding by checking the named host used to reach the API.
Inventory the control plane, not the mocked port
A service may expose a mocked endpoint on one port and its dashboard or API on another. A title query can identify a dashboard, while an application fingerprint may describe the test service without showing its management route.
No fresh count was collected for this run. A candidate should be validated with a controlled HTTP response that does not submit expectations or open a live log. Record the hostname, port, login boundary, and whether the instance is local, shared, or internet-facing.
Use title="MockServer" as the first query and document its limits. The product can run under a custom hostname, and a test tool may not retain the title. The query is not proof that a control plane is exposed.
Configure authentication and host trust
Enable control-plane basic authentication or a stronger front-end identity layer. Set a unique password outside source control. Keep the control-plane port on a development network, a VPN, or a service mesh identity boundary.
Review controlPlaneTrustedHostSuffixes and CORS settings. A broad trusted host list can weaken the DNS-rebinding defense described in the documentation. Add only the names that are actually used for the dashboard and API, and keep the list under change control.
If the MCP endpoint is enabled, treat it as another control path with the same authority. Do not expose it to an AI client that can reach a production network unless the tool permissions, transport authentication, and request logging are designed for that use.
Response after exposure
Preserve the expectation configuration and request log before cleanup. Determine whether recorded traffic contained authorization headers, cookies, personal data, internal hostnames, or cloud metadata. Rotate any credentials that appear in captured requests.
If an unauthorized client could change expectations, review downstream test jobs that used the service. A modified response can alter test outcomes or make an insecure integration appear healthy. Re-run critical security tests from a clean configuration.
Limits
The product name can match documentation, a local development server, or a protected shared instance. A title match does not show that authentication is disabled. The evidence needs the actual endpoint response and the network context.
Top comments (0)