Gửi #887137: bsmi021 mcp-file-context-server 1.0.0 Arbitrary File Readthông tin

tiêu đềbsmi021 mcp-file-context-server 1.0.0 Arbitrary File Read
Mô tảThe bsmi021/mcp-file-context-server MCP server exposes file context tools such as read_context that accept a caller-controlled path argument. The server resolves the supplied path against process.cwd() and checks whether it is accessible, but it does not enforce that the resolved path remains inside an intended workspace or project directory. In a local reproduction, a test file was created outside the repository directory and the read_context tool was invoked with a traversal path such as ../outside-poc/outside-secret.txt. The tool returned the marker contained in that external file, confirming that the MCP server read a file outside the intended working directory. This demonstrates an arbitrary file read / workspace escape issue. An MCP client or agent that can control tool arguments may cause the server process to read local files accessible to its operating-system user. Depending on deployment configuration and filesystem permissions, this may expose sensitive files such as configuration files, credentials, source code, or user-profile data.
Nguồn⚠️ https://github.com/bsmi021/mcp-file-context-server/issues/15
Người dùng
 cccccccti (UID 96695)
Đệ trình12/07/2026 17:20 (cách đây 2 các tháng)
Kiểm duyệt26/08/2026 22:20 (2 months later)
Trạng tháiđược chấp nhận
Mục VulDB395980 [bsmi021 mcp-file-context-server 1.0.0 Path Resolution src/index.ts read_context path duyệt thư mục]
điểm20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!