
pawelkozy/mcp-breach-to-fix-labs
Security testingこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
pawelkozy/mcp-breach-to-fix-labsは[https://github.com/pawelkozy/mcp-breach-to-fix-labs.からインポートされたMCPサーバー候補です
概要
pawelkozy/mcp-breach-to-fix-labsは[https://github.com/pawelkozy/mcp-breach-to-fix-labs.からインポートされたMCPサーバー候補です
概要(AI 翻訳)
MCP Breach-to-Fix Labs(MCP Breach-to-Fix Labs)
実際のCVEや公共インシデントレポートから再現された10モデルコンテキストプロトコル(MCP)のハンズオンラボ。 Cursor/Claudeですべての悪用エンドツーエンドを実行しています。そのため、手順は理論的ではありません。正確なツールは、アシスタントをフォローします。 すべてのシナリオは2つのモードで出荷します。
-Vulnerable - 意図的に悪用できる実装は、Cursor/Claude Desktopでエンドツーエンドを再現できます。 -Secure - 攻撃をブロックする防衛深さ制御による実装を強化しました。
これらのラボは、Claude/Cursorと完全に戦いテストされ、正確な悪用/緩和フローが再現可能です。
各チャレンジには、ドーパーサービス、FastMCPサーバー、フィクスチャ、および悪用を証明するスクリーンショットが含まれます。理論的な書き込みアップはありません。
##チャレンジカタログ
| # | チャレンジ | シナリオハイライト |
|—|-----------------------------------------|
| 01 | CRM 紛争解決 | 共有CRMトークン + 他のテナントの記録を漏らす予測可能なID. セキュアなバージョンでは、テナントごとに認証情報をスコープ化できます。 |
| 02 | ファイルシステムプレフィックスバイパス(CVE-2025-53110) | ナイブ [[startswith] パスチェックとキャニカルパスの執行。 お問い合わせ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Breach-to-Fix Labs
Hands-on lab of ten Model Context Protocol (MCP) challenges reproduced from real CVEs and public incident reports. I’ve run every exploit end-to-end with Cursor/Claude, so the steps aren’t theoretical—they’re the exact tool calls the assistants followed. Every scenario ships in two modes:
- Vulnerable - intentionally exploitable implementation you can reproduce end-to-end in Cursor/Claude Desktop.
- Secure - hardened implementation with defense-in-depth controls that block the attack.
These labs were fully battle-tested with Claude/Cursor, ensuring the exact exploit/mitigation flow is reproducible.
Each challenge includes Docker services, FastMCP servers, fixtures, and screenshots that prove the exploit really runs—no theoretical write-ups.
Challenge Catalog
| # | Challenge | Scenario Highlights |
|---|---|---|
| 01 | CRM Confused Deputy | Shared CRM token + predictable IDs leak other tenants’ records. Secure version scopes credentials per tenant. |
| 02 | Filesystem Prefix Bypass (CVE-2025-53110) | Naive startswith path check vs. canonical path enforcement. |
| 03 | Hidden Instructions in Tool Responses | Malicious tool responses inject hidden instructions that redirect WhatsApp messages; secure build sanitizes responses. |
| 04 | Xata Read-Only Bypass | Multi-statement SELECT; attacker appends DELETE to mutate data. Secure build uses sqlparse to enforce single statements. |
| 05 | News Prompt Exfiltration | Malicious article tells the agent to dump config + email it back. Secure build sanitizes remote HTML and gates tools. |
| 06 | Log Poisoning Incident Response | SOC “instructions” inside logs coerce the agent to rotate secrets to attacker-controlled values. Secure build strips directives & blocks sensitive tickets. |
| 07 | Classic SQL Injection (Stored Prompt) | Ticketing app stores malicious prompts via SQLi; secure build parameterizes. |
| 08 | Git Command Injection (GHSA-3q26-f695-pp76) | git init helper shells out with unsanitized repo names; secure uses execFile / allowlist. |
| 09 | GitHub Public Issue Injection | Public issue text tricks MCP to leak private repo data; secure build sanitizes + scopes tokens. |
| 10 | Tool Description Poisoning | Repello.ai-style “rug pull” where tool metadata mutates after approval to exfiltrate SSH keys; secure build freezes descriptions. |
Each challenge stores proof captures under challenges/-/screenshots/ or README for quick reference.
Getting Started
New to MCP? See the Setup Guide for detailed instructions on connecting Cursor, Claude Desktop, or MCP Inspector to the challenge servers.
Prerequisites
- Docker & Docker Compose
- Python 3.10+ (for local execution)
- Cursor or Claude Desktop (recommended for exploits)
Quick Start with Docker
Every challenge has vulnerable and secure Docker services:
# Example: Run the Git Command Injection vulnerable server
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →