제출 #807751: 54yyyu code-mcp 4cfc4643541a110c906d93635b391bf7e357f4a8 Path Traversal정보

제목54yyyu code-mcp 4cfc4643541a110c906d93635b391bf7e357f4a8 Path Traversal
설명The server attempts to restrict file access to PROJECT_ROOT using is_safe_path, but relies on Path.absolute() parent membership checks. Because absolute() does not canonicalize .., crafted paths such as PROJECT_ROOT/../outside.txt can pass the parent check while resolving outside workspace boundaries in downstream file operations. This may enable out-of-workspace read/write access through MCP file tools.
원천⚠️ https://github.com/54yyyu/code-mcp/issues/4
사용자
 CPT_Penner (UID 97246)
제출2026. 04. 18. PM 08:28 (2 개월 ago)
모더레이션2026. 05. 04. PM 11:24 (16 days later)
상태수락
VulDB 항목361071 [54yyyu code-mcp 까지 4cfc4643541a110c906d93635b391bf7e357f4a8 MCP File src/code_mcp/server.py is_safe_path 디렉토리 순회]
포인트들20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!