DEV Community

SorrelThorncroft
SorrelThorncroft

Posted on

Public MCP Surfaces Need a Narrow Query and an Auth Check

Public MCP Surfaces Need a Narrow Query and an Auth Check

Model Context Protocol servers expose tools and resources to AI clients. A local MCP server may have file access, shell execution or authenticated SaaS sessions. A remote MCP server may sit behind a gateway and act as a shared tool broker. CVE-2026-137188 showed how a URL-fetching tool could be turned into server-side request forgery when the MCP process followed internal addresses and redirects without destination checks.

A count-only ZoomEye probe on 1 December 2026 found 347 matches for title="Model Context Protocol", 25,610 for http.body="Model Context Protocol", 548,044 for http.body="MCP server" and 392,192 for app="MCP". Each query used sub_type=all, page 1 and page size 1.

The gap between the exact title and the short term is large. "MCP" is used by many products and communities, and a page can mention MCP servers without exposing a tool endpoint. A broad body query is useful for finding candidate documentation or portals, but it is not a population count for reachable MCP services. The exact title is narrower and still may identify a documentation page.

Ask whether a tool is reachable

For each owned MCP deployment, record the transport, bind address, authentication mode and tool set. A localhost bind is not automatically safe if a web page can reach it through DNS rebinding or if a reverse proxy exposes it. A remote MCP gateway needs client authentication, per-tool authorization and an allowlist of destinations for any fetch or network tool.

Inspect the URL-fetching tools first. They should reject loopback, private, link-local, metadata and NAT64 local-use ranges at every redirect hop. A page that returns content to the model creates a disclosure path even when the tool is intended only for images or SVG imports. Prompt injection can supply the URL without the user seeing a suspicious request.

Controlled discovery

Use a narrow title or product fingerprint to identify candidate management pages, then require ownership confirmation. A broad body search helps find an unmanaged documentation page or an exposed tool broker, but the analyst should not send arbitrary prompts or requests to third-party systems. For owned services, test authentication with an unauthenticated request, an expired token and a token scoped to a different tenant.

Review MCP logs for tool name, client identity, destination and whether the request came from explicit user input or from content the model read. Avoid logging full arguments when they may contain secrets. Preserve enough metadata to reconstruct a redirect chain and the destination host.

Patch and design

Upgrade PinePaper MCP to 1.6.22 or later if that package is in use. For other MCP servers, apply the vendor's fix for destination validation. Add an egress proxy with destination policy and disable URL-import tools where they are not needed.

The public search counts are a reminder that the phrase "MCP server" is not an asset identity. A useful inventory records the service, owner, transport, auth mode and tool authority. ZoomEye can help find exposed pages, but only an authenticated configuration review can show whether a tool broker is safe.

References

Top comments (0)