-
securityF
license-
qualityDamn Vulnerable MCP Server for Security Researchers.
Last updated -
7
Python
该项目演示了一个存在漏洞的 MCP 服务器和多个客户端,包括一个 PoC 攻击客户端和一个正常客户端。该项目旨在用于教学目的,展示 MCP 服务器中潜在的安全漏洞。
vuln-mcp.py
:易受攻击的 MCP 服务器暴露不安全的工具。good-mcp-client.py
:用于正常交互(插入/查询记录)的常规良好客户端。attack-mcp-client.py
:自动攻击客户端,演示如何利用服务器漏洞。requirements.txt
:项目的 Python 依赖项。在一个终端中:
按照提示以交互方式插入/查询记录。
在另一个终端中:
这将自动:
execute_sql
工具允许攻击者运行任何SQL命令,包括数据窃取或破坏。get_env_variable
工具允许攻击者读取秘密和配置值。为了确保真实世界中 MCP 服务器的安全,您应该:
execute_sql
和get_env_variable
类的工具。本项目仅用于教育和演示目的。请勿在生产环境中部署此代码。
如有疑问或需要进一步改进,请提出问题或联系项目维护者。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
故意设置漏洞的 MCP 服务器,允许客户端出于教育目的与数据库进行交互,展示包括 SQL 注入、任意代码执行和敏感数据泄露在内的安全漏洞。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kenhuangus/mcp-vulnerable-server-demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server