Skip to content
Access control Write-up Intermediate

Trust Me, I'm Local: Chrome Extensions, MCP, and the Sandbox Escape

Local MCP servers that use SSE transport typically bind to localhost without authentication, so any Chrome extension can connect to them and invoke their tools. The authors demonstrated a filesystem MCP server and a Slack MCP server being accessed by a custom extension, allowing file access and interaction with Slack functionality.

blog.extensiontotal.com

Published on blog.extensiontotal.com

Let’s talk about MCPs. You’ve probably heard of them, and maybe you’ve read the security risks associated with them.

Yuval Ronen, on blog.extensiontotal.com

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 MCP server transport layers do not implement authentication, and developers rarely add access controls, so any local process including a browser extension can connect.

Impact

A malicious Chrome extension could access local MCP servers without authentication and invoke their tools, potentially leading to filesystem access or full machine takeover, though the text only demonstrates access to a filesystem MCP and a Slack MCP.

What the attacker needed

A vulnerable local MCP server running; a Chrome extension (any, no special permissions); the MCP server uses SSE transport on localhost

The fix

MCP server developers should implement authentication and access controls, and organisations should govern MCP usage and monitor extension behaviour.

How it was found

  1. Set up a local SSE-based MCP server, such as a filesystem variant, following its README.
  2. Build a Chrome extension that runs in the background and connects to localhost on a common MCP port.
  3. The extension obtains a session ID and messages endpoint without authentication.
  4. The extension retrieves the list of tools exposed by the MCP server.
  5. The extension invokes the tools, for example to interact with the file system.
  6. Repeat against another MCP server, such as Slack, to show the same access.

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.

MCP servers are small local programs that let AI tools use things like files or chat apps. Many of them listen on a local port and do not check who is connecting. A browser extension can also connect to that local port, so a malicious extension could use the same tools without asking the user.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.