PM

pawelkozy/mcp-breach-to-fix-labs

Security testing

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

91 stars 15 forks 품질 51 트렌드 0

pawelkozy/mcp-breach-to-fix-labs는 MCP 서버 후보가 https://github.com/pawelkozy/mcp-breach-to-fix-labs.에서 수입되었습니다

개요

pawelkozy/mcp-breach-to-fix-labs는 MCP 서버 후보가 https://github.com/pawelkozy/mcp-breach-to-fix-labs.에서 수입되었습니다

개요(AI 번역)

MCP Breach-to-Fix 연구소

10 Model Context Protocol (MCP)의 Hands-on 실험실은 실제 CVE 및 공공 사건 보고서에서 재현되었습니다. 나는 Cursor/Claude와 함께 모든 악용 엔드 투 엔드를 실행했습니다. 그래서 단계는 이론이 아닙니다. 정확한 도구가 보조를 호출합니다. 두 가지 모드의 모든 시나리오 배송 :

-Vulnerable - Cursor/Claude Desktop에서 end-to-end를 재현할 수 있는 의도적으로 악용 가능한 구현.

  • Secure - 공격을 차단하는 방어형 심층 제어를 통한 구현

이 실험실은 Claude/Cursor와 완전히 전투 테스트를 받았으며 정확한 악용 / 소송 흐름을 재현 할 수 있습니다.

각 도전에는 Docker 서비스, FastMCP 서버, 고정 장치 및 스크린 샷이 포함되어있어 악용이 정말 실행되지 않습니다. 이론적 인 쓰기 업.

도전 카탈로그

챌린지 스텐다리점
01 CRM Confusion Deputy 공유 CRM 토큰 + 예측 가능한 ID 누출 기타 10개의 레코드. 보안 버전의 범위는 tenant 당 자격.
02 Filesystem Prefix Bypass (CVE-2025-53110) Naive startswith] 경로 확인 vs. 대문 경로 시행. ·

이 페이지는 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
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →