提出 #804390: ggerve coding-standards-mcp c21ab2754684329eab4feb72427dc9acfe61e52f Path Traversal情報

タイトルggerve coding-standards-mcp c21ab2754684329eab4feb72427dc9acfe61e52f Path Traversal
説明The server is supposed to serve Markdown templates from its bundled templates directory. Instead, both exported tools construct filenames from untrusted language input and pass them into read_template(): get_style_guide(language) builds f"{language}_style_guide.md" get_best_practices(language) builds f"{language}_best_practices.md" read_template() then does os.path.join(os.path.dirname(__file__), "templates", filename) and opens the resulting path directly. Because neither the input nor the resolved path is validated, traversal strings such as ../../../../tmp/secret escape templates/ and read files like /tmp/secret_style_guide.md.
ソース⚠️ https://github.com/ggerve/coding-standards-mcp/issues/3
ユーザー
 LargeW (UID 97302)
送信2026年04月14日 13:48 (2 月 ago)
モデレーション2026年05月01日 11:30 (17 days later)
ステータス承諾済み
VulDBエントリ360541 [ggerve coding-standards-mcp server.py get_style_guide/get_best_practices 言語 ディレクトリトラバーサル]
ポイント20

Do you know our Splunk app?

Download it now for free!