Anthropic Filesystem MCP Server: Directory Access Bypass via Improper Path Validation
A few months ago I was looking at the filesystem MCP server from Anthropic.
The server allows to give an AI, like Claude Desktop, access to the local filesystem to read files or edit them and so forth.
I was curious about access control and in the documentation there is a configuration setting to set allowedDirectories, which the AI should be allowed access to:
As you can see the example shows two folders being allowlisted for access.