BrowserOS icon indicating copy to clipboard operation
BrowserOS copied to clipboard

Linux: server proxy listens on 0.0.0.0:9010/9011 by default

Open MikeBrigante opened this issue 4 weeks ago • 1 comments

Summary

On Linux the browser's server proxy listens on all interfaces: 0.0.0.0:9010 (browseros.server.proxy_port) and 0.0.0.0:9011 (browseros.server.proxy_https_port). The CDP port (9110) and the claw-server (9210) bind to 127.0.0.1 as expected. The docs describe the MCP endpoint as local to the machine ("Nothing crosses the network"), but these proxy ports are reachable from the LAN. This looks like the Linux counterpart of #2424 (Windows: MCP listens on all interfaces).

Environment

  • BrowserOS neo v0.52.1.1 (BrowserOS_neo_v0.52.1.1_amd64.deb), package browserclaw 155.0.8318.26, claw-server 0.0.93
  • Debian 12 x86_64 host and a debian:trixie-slim container; same result in both
  • Started with defaults; no remote-access setting changed

Observed

$ ss -ltnp | grep browserclaw
LISTEN 127.0.0.1:9110   users:(("browserclaw",...))
LISTEN 0.0.0.0:9011     users:(("browserclaw",...))
LISTEN 0.0.0.0:9010     users:(("browserclaw",...))

Local State:

browseros.server.proxy_port        9010
browseros.server.proxy_https_port  9011
browseros.server.cdp_port          9110
browseros.server.mcp_port          9210

Expected

Bind the proxy ports to 127.0.0.1 by default, and listen on other interfaces only when remote access is explicitly enabled.

MikeBrigante avatar Nov 05 '26 10:11 MikeBrigante

Status update on the proxy side, which is not yet covered by the server fix.

The loopback default for the Node agent HTTP server is being addressed in #3278, but on current main the Chromium-side MCP proxy still binds all interfaces by default — the listeners reported in this issue (the HTTP and HTTPS proxy sockets on 9010/9011) both bind 0.0.0.0 in packages/browseros/chromium_patches/chrome/browser/browseros/server/browseros_server_proxy.cc, and when remote access is disabled non-loopback peers are only rejected after the connection is accepted. So on Linux the sockets stay exposed on every interface.

We had a fix for exactly this half in PR #3253. It was closed when the server-side files were folded into #3278 and we understood the remaining "allow remote" behavior would move behind a user-facing setting; that settings PR has not appeared yet, and it is not clear whether it will change the proxy's default bind at all. The diff of the proxy-side commit (3 files, +44/−20) is still viewable at https://github.com/browseros-ai/BrowserOS/pull/3253/files :

  • bind 127.0.0.1 by default; bind 0.0.0.0 only when the allow_remote_in_mcp preference is enabled;
  • call SetAllowRemote() before Start() so the first bind already uses the current preference value (previously the first bind used a stale value because SetAllowRemote() ran after Start());
  • rebuild the proxy (stop + start) when the preference changes, so a runtime toggle actually re-binds the listeners.

Happy to resubmit these three Chromium patch files as a standalone PR if the user-facing setting does not land with a loopback default on the proxy side, or now if that would help. Leaving this note here so #3156 is not silently considered resolved by #3278 alone.

WindriseAI avatar Nov 11 '26 05:11 WindriseAI