🔍 CVE-2026-53708

6.6
CVSS Score
MEDIUM
2026-09-14
2026-09-30 19:57
✅ 완료

🇰🇷 한글 설명

ContextForge AI 게이트웨이의 /admin/gateways/test 엔드포인트에서 DNS Rebinding을 이용한 SSRF 취약점이 발견되었습니다. 검증 단계와 실제 연결 단계 사이의 호스트네임 재해결 과정으로 인해, 공격자가 내부 네트워크나 클라우드 메타데이터 서비스에 접근할 수 있습니다. 이 문제는 1.0.3 버전에서 수정되었습니다.

💡 쉬운 설명

공격자가 가짜 주소를 사용하여 보안 검사를 통과한 뒤, 실제로는 회사의 내부 서버나 중요한 정보가 담긴 관리 페이지에 접속할 수 있는 결함입니다. 마치 검문소에서는 정상적인 신분증을 보여주고, 실제 목적지에서는 다른 사람으로 변신하여 몰래 들어가는 것과 같습니다.

🇺🇸 원문 (English)

ContextForge is an AI gateway, registry, and proxy that provides centralized discovery, guardrails, and management for MCP, A2A, and REST or gRPC APIs. Prior to 1.0.3, the /admin/gateways/test call site in mcpgateway/admin.py calls validate_gateway_test_url() in mcpgateway/common/validators.py to resolve and reject private, loopback, link-local, and cloud-metadata addresses, but ResilientHttpClient later resolves the original hostname again without binding the validated address. When MCPGATEWAY_ADMIN_API_ENABLED is enabled, an attacker with a database-backed role containing explicit gateways.read permission can use DNS rebinding to return a public address during validation and a private or metadata address during connection, bypassing ssrf_blocked_networks and ssrf_dns_fail_closed because those controls apply only to the validation-time result. The endpoint's allow_admin_bypass=False setting means a bootstrap-only virtual platform-admin identity without a database role is not sufficient. Successful exploitation can reach internal services and cloud metadata, expose cloud credentials, access internal APIs, or probe internal network ports. This issue is fixed in version 1.0.3.

📍 영향받는 시스템

ContextForge (version < 1.0.3)

⚔️ 공격 벡터

DNS Rebinding을 이용한 SSRF (Server-Side Request Forgery)

🛡️ 대응 방법

ContextForge를 1.0.3 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 1.0.3 미만이면 취약한 상태이며, 1.0.3 이상이면 안전합니다.

Shell / Script
pip show contextforge 2>/dev/null | grep Version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N

💻 영향받는 소프트웨어

Cloud Services