Skip to content
SSRF Disclosed report Advanced

DNS Rebinding Enables Unauthorized MCP Tool Access

The IBM watsonx.data MCP server exposed a Streamable HTTP endpoint without a caller secret or effective Host/Origin validation. A malicious web page could use DNS rebinding to reach the local server, start an MCP session, list tools and invoke watsonx.data-backed tools using the server's own IBM IAM credentials.

avishaigonen Follow

Originally disclosed on HackerOne

Critical 9.6 View original
  • Triaged in 11 days
  • Fixed in 4 months
  • Disclosed after 4 months

Summary by the program

DNS Rebinding Enables Unauthorized MCP Tool Access was reported to IBM, analyzed and has been remediated. Thank you to our external researcher @avishaigonen.

Summary by the researcher

The IBM watsonx.data MCP server exposes Streamable HTTP at /mcp without an inbound caller secret or effective Host/Origin validation. A malicious web page can use DNS rebinding to keep the attacker origin while its hostname resolves to 127.0.0.1, initialize the local MCP session, enumerate tools, and invoke watsonx.data-backed tools through the server-held IBM IAM credential path. The attached demo uses fake watsonx.data data, but it runs the genuine upstream MCP server path and proves the browser-origin request reaches tool dispatch and the server-held backend authorization path.

The original report as published on HackerOne, by avishaigonen. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the IBM watsonx.data MCP server. According to the researcher, it exposes Streamable HTTP at the path /mcp without an inbound caller secret and without effective Host or Origin validation. The program's summary states that the issue was reported, analysed and remediated, and credits the external researcher @avishaigonen. The report is rated critical with a CVSS score of 9.6, under the weakness category Improper Authentication (generic). No bounty amount is given.

The researcher's chain is short and specific:

  1. A malicious web page is loaded in the victim's browser. Through DNS rebinding, the page keeps the attacker's origin while its hostname is made to resolve to [redacted].
  2. Because the origin stays the same, the browser treats the page as same-origin with the local service, and the missing Host and Origin checks on the server do not stop the request.
  3. The page initialises an MCP session against the local server at /mcp.
  4. It enumerates the available tools.
  5. It invokes watsonx.data-backed tools, which run through the server-held IBM IAM credential path.

The researcher notes that the attached demo uses fake watsonx.data data, but that it runs the genuine upstream MCP server path. The point of the demo is to show that a request originating from a browser origin reaches tool dispatch and the server-held backend authorisation path. The report does not include the raw HTTP requests, the rebinding setup, the tool names or the responses.

Root cause

The report points to two missing controls on the /mcp endpoint: there is no inbound caller secret, and Host and Origin validation is absent or ineffective. The server therefore cannot tell a request coming from a local, trusted client apart from one forged by a web page that has rebound its hostname to loopback. The endpoint is reachable from a browser origin because the missing checks do not distinguish a rebound page from a local client. DNS rebinding defeats exactly that assumption, because the browser still sees one origin while the name resolves to the victim's own machine. The endpoint also holds an IBM IAM credential, and the invoked tools run through that server-held credential path.

Impact

As described, an attacker who convinces a victim to open a malicious page can reach the local MCP server from that browser, create a session, list tools and invoke watsonx.data-backed tools using the credential the server holds. The report does not state which data or operations were reachable in the real deployment, and the demo data is fake. The report is rated critical with a CVSS score of 9.6.

How this kind of bug works

DNS rebinding attacks services that trust the network location of the caller. A page on attacker.example is served with a very short DNS TTL. Once the browser has loaded the page, the attacker changes the DNS answer so the same hostname resolves to [redacted] (or another internal address). The browser now sends requests to the victim's own machine, but the page's origin is unchanged, so the same-origin policy does not intervene and any cookies or ambient credentials for that origin still apply. Any local service that answers requests without checking the Host header, or without requiring a secret the attacker cannot obtain, is reachable this way.

The same class of issue appears whenever a service assumes that only local software will connect to it: developer tools, admin panels, agent and MCP servers, database consoles, and anything that holds credentials on the user's behalf. Defences are layered: validate the Host header against an allowlist of expected names, reject requests whose Origin is not trusted, require a per-session token or secret that the attacker cannot read, and avoid binding privileged interfaces to all addresses. Modern browsers also restrict some requests to local networks, but that is a mitigation, not a substitute for server-side checks.

How to test for it

  1. Identify services that are meant to be local or that hold server-side credentials, especially ones exposing HTTP APIs, streaming endpoints or agent protocols. Look for documentation, client configuration files and default ports.
  2. Check whether the endpoint requires any secret. Send a request with no authentication and see whether it is accepted.
  3. Inspect how the server treats the Host header. Send a request with a Host value that is not the expected name and observe whether it is rejected.
  4. Inspect how it treats Origin. Send a request with an Origin from an unrelated site and see whether it is refused.
  5. If both checks pass through, set up a rebinding test: serve a page from a domain you control with a short TTL, let the browser load it, then repoint the name to [redacted] and have the page issue the same requests. A positive result is a response from the local service that the page can read, for example a successful session initialisation or a tool listing.
  6. Confirm impact by reaching an operation that uses the server-held credential, not just a health check.

Common false positives: the server rejects the request but the browser still shows a network error that looks like success; the endpoint is reachable but every meaningful action requires a token the page cannot obtain; the rebinding fails because the browser caches the DNS answer or the service checks the resolved address; or the request only works from the same machine because of a client certificate or a local socket, which a browser page cannot use.

How it is fixed

The standard fixes are: require an inbound secret or per-session token on the endpoint, validate the Host header against an allowlist, validate Origin and reject untrusted values, and avoid exposing privileged endpoints on interfaces reachable from the browser. The program states the issue was remediated; the report does not describe the specific fix applied.

Hunting notes

This bug class tends to hide in local helper services, desktop application backends, agent and MCP servers, development proxies, and admin interfaces that assume loopback is safe. Recon signals include endpoints documented as local-only, default ports, client configuration that points at [redacted], and APIs that accept requests without any credential. To make a report accepted, show the full chain from a browser origin to a privileged action, keep the proof minimal and reproducible, and be explicit about which credential or data the server exposes. If the demonstration uses synthetic data, say so and show that the real code path is exercised, as this report does.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 8 min read.

What happened, in plain words

This report is about a security weakness in IBM watsonx.data, a data platform. Part of that product is an MCP server. MCP stands for Model Context Protocol: a standard way for AI assistants and other programs to ask a service what it can do and then ask it to do those things. Think of it as a waiter who takes orders to a kitchen: the assistant says "what is on the menu?", gets a list of tools, and then orders one.

The server listens for those orders over HTTP (the same protocol your browser uses) at the path /mcp. According to the researcher, it accepts requests without asking the caller for any secret, and it does not properly check the Host or Origin values that a browser sends with every request. The program's summary says the issue was reported, analysed and fixed, and thanks the external researcher @avishaigonen. The report is rated critical, with a CVSS score of 9.6, in the weakness category Improper Authentication (generic). No bounty amount is given.

The danger comes from a technique called DNS rebinding. To understand it, you need two ideas. First, a hostname (like example.com) is just a name that a DNS server translates into a numeric address, such as [redacted], which always means "this very computer". Second, browsers enforce the same-origin policy: a page from one site is not allowed to read responses from a different site. An origin is the combination of scheme, hostname and port, so http://a.example and http://b.example are different origins.

DNS rebinding abuses the fact that the browser decides whether two things are the same origin by looking at the name, not at the address the name currently resolves to. The attacker serves a page from a domain they control, with a very short DNS lifetime. The victim opens the page. Then the attacker changes the DNS answer so that the same name now points at [redacted], the victim's own machine. The browser still believes the page is on the attacker's origin, so it happily sends requests to that name, and those requests now land on the local MCP server. Because the server does not check Host or Origin and asks for no secret, it cannot tell this forged request from a genuine local client.

The researcher's chain is short:

  1. A malicious web page is loaded in the victim's browser. Through DNS rebinding, the page keeps the attacker's origin while its hostname is made to resolve to [redacted].
  2. Because the origin stays the same, the browser treats the page as same-origin with the local service, and the missing Host and Origin checks on the server do not stop the request.
  3. The page initialises an MCP session against the local server at /mcp.
  4. It enumerates the available tools.
  5. It invokes watsonx.data-backed tools, which run through the server-held IBM IAM credential path.

Step 3 matters because a session is the handshake that tells the server "a client is here, let us talk". Step 4 matters because listing tools tells the attacker exactly what the server can do. Step 5 is where the tools run through the server-held IBM IAM credential path. IAM (Identity and Access Management) is the system that decides who may do what; a credential is like a key card the server carries so it can act on the user's behalf. The report does not say whether the attacker can read the credential; the tools run through the server-held credential path.

The researcher notes that the attached demo uses fake watsonx.data data, but that it runs the genuine upstream MCP server path. The point of the demo is to show that a request originating from a browser origin reaches tool dispatch and the server-held backend authorisation path. The report does not include the raw HTTP requests, the rebinding setup, the tool names or the responses.

In general, how this kind of bug works

DNS rebinding attacks services that trust the network location of the caller. A page on attacker.example is served with a very short DNS TTL (time to live, how long a DNS answer may be cached). Once the browser has loaded the page, the attacker changes the DNS answer so the same hostname resolves to [redacted] or another internal address. The browser now sends requests to the victim's own machine, but the page's origin is unchanged, so the same-origin policy does not intervene and any cookies or ambient credentials for that origin still apply. Any local service that answers requests without checking the Host header, or without requiring a secret the attacker cannot obtain, is reachable this way.

The same class of issue appears whenever a service assumes that only local software will connect to it: developer tools, admin panels, agent and MCP servers, database consoles, and anything that holds credentials on the user's behalf. Defences are layered: validate the Host header against an allowlist of expected names, reject requests whose Origin is not trusted, require a per-session token or secret that the attacker cannot read, and avoid binding privileged interfaces to all addresses. Modern browsers also restrict some requests to local networks, but that is a mitigation, not a substitute for server-side checks.

How to test for it

  1. Identify services that are meant to be local or that hold server-side credentials, especially ones exposing HTTP APIs, streaming endpoints or agent protocols. Look for documentation, client configuration files and default ports.
  2. Check whether the endpoint requires any secret. Send a request with no authentication and see whether it is accepted.
  3. Inspect how the server treats the Host header. Send a request with a Host value that is not the expected name and observe whether it is rejected.
  4. Inspect how it treats Origin. Send a request with an Origin from an unrelated site and see whether it is refused.
  5. If both checks pass through, set up a rebinding test: serve a page from a domain you control with a short TTL, let the browser load it, then repoint the name to [redacted] and have the page issue the same requests. A positive result is a response from the local service that the page can read, for example a successful session initialisation or a tool listing.
  6. Confirm impact by reaching an operation that uses the server-held credential, not just a health check.

Common false positives: the server rejects the request but the browser still shows a network error that looks like success; the endpoint is reachable but every meaningful action requires a token the page cannot obtain; the rebinding fails because the browser caches the DNS answer or the service checks the resolved address; or the request only works from the same machine because of a client certificate or a local socket, which a browser page cannot use.

How it is fixed

The standard fixes are: require an inbound secret or per-session token on the endpoint, validate the Host header against an allowlist, validate Origin and reject untrusted values, and avoid exposing privileged endpoints on interfaces reachable from the browser. The program states the issue was remediated; the report does not describe the specific fix applied.

Hunting notes

This bug class tends to hide in local helper services, desktop application backends, agent and MCP servers, development proxies, and admin interfaces that assume loopback is safe. Recon signals include endpoints documented as local-only, default ports, client configuration that points at [redacted], and APIs that accept requests without any credential. To make a report accepted, show the full chain from a browser origin to a privileged action, keep the proof minimal and reproducible, and be explicit about which credential or data the server exposes. If the demonstration uses synthetic data, say so and show that the real code path is exercised, as this report does.

Glossary

  • MCP (Model Context Protocol): a standard way for AI assistants and other programs to discover and call the capabilities a service offers.
  • MCP server: the program that exposes those capabilities over a network protocol.
  • HTTP: the request and response protocol browsers and servers use to exchange web content.
  • Endpoint: a specific address (path) on a server that accepts requests, here /mcp.
  • Host header: a field in an HTTP request naming which site the client believes it is talking to.
  • Origin: the combination of scheme, hostname and port that identifies where a web page came from.
  • Origin header: a field in an HTTP request telling the server which origin the request came from.
  • Same-origin policy: the browser rule that a page may not read responses from a different origin.
  • DNS: the system that translates human-readable hostnames into numeric IP addresses.
  • DNS rebinding: an attack that changes a hostname's DNS answer so the same name starts pointing at a different machine, such as the victim's own computer.
  • TTL (time to live): how long a DNS answer may be cached before it must be looked up again.
  • Loopback / [redacted]: the address that always refers to the local machine itself.
  • Credential: a secret, such as a key or token, that proves an identity and grants access.
  • IBM IAM: IBM's Identity and Access Management system, which decides who may perform which actions.
  • Session: a short-lived conversation state between a client and a server, started by a handshake.
  • Tool dispatch: the part of the server that receives a tool request and routes it to the code that performs it.
  • CVSS: a standard scoring system for the severity of a security issue, from 0 to 10.
  • Improper Authentication: a weakness category where a system fails to verify who the caller is.
  • False positive: a test result that looks like a vulnerability but is not one in practice.

More from IBM

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.