Skip to content
Xianzhi Community (Aliyun)·Indexed by this site · Originally published· Event →· Its place in the scan record →SelectedAttention40

When git_status is no longer read-only: an analysis of the MCP Git Server configuration execution chain and patch bypass

AI summary

The author compared mcp-server-git 2026.11.4 with the fixed version 2026.11.11 in experiments and found that although the fixed version blocked the execution of fsmonitor and external diff triggered by the repository's local configuration, the repository's .gitattributes can still select a filter of the same name preset in the Server user's global configuration, causing git_checkout and git_diff_unstaged to actually invoke these commands. In the bypass experiment, after checkout triggered smudge, the target file was written as 0 bytes; diff triggered clean to launch the helper twice, and the helper disappeared after the global configuration was disabled; this path depends on the server already having the filter, and a repository cannot specify arbitrary commands solely through attributes. Candidate paths such as GPG signature verification, textconv, and includeIf onbranch were not triggered in the tests.

Why it was selected

The author verified that the fixed version can still execute commands via a global filter preset on the server side selected through repository attributes; deploying the MCP Git service requires isolating configuration sources.

Read originalxz.aliyun.com