🇰🇷 한글 설명
IBM ContextForge MCP Gateway 0.1.0~1.0.5 버전에서 인증된 사용자가 OAuth 설정 시 token_url 매개변수를 조작하여 내부 네트워크나 클라우드 메타데이터 엔드포인트로 임의의 HTTP POST 요청을 보낼 수 있는 SSRF 취약점이 발견되었습니다. 이 취약점은 게이트웨이 URL에 적용된 기존 SSRF 방어 체계를 우회하며, 오류 메시지를 통해 내부 응답 데이터의 일부가 노출될 수 있습니다.
💡 쉬운 설명
권한이 있는 사용자가 가짜 주소를 입력하여 서버가 내부의 중요한 정보나 다른 컴퓨터에 몰래 접속하게 만드는 보안 약점입니다. 이 과정에서 서버가 내부 정보를 공격자에게 실수로 보여줄 수도 있습니다.
🇺🇸 원문 (English)
IBM ContextForge MCP Gateway 0.1.0 through 1.0.5 is vulnerable to a server-side request Forgery (SSRF) that allows authenticated users with gateway creation privileges to perform arbitrary HTTP POST requests to internal network resources and cloud metadata endpoints. The vulnerability occurs during OAuth-enabled gateway registration when the system fails to validate the oauth_config.token_url parameter. When registering a gateway with OAuth client credentials authentication, an attacker can supply a malicious token_url pointing to internal services, cloud metadata endpoints (AWS IMDSv1, GCP, Azure), or localhost-bound services. The application immediately performs an HTTP POST request to the attacker-controlled URL with form-encoded credentials in the body. If the response cannot be parsed as a valid OAuth token response, up to 256 characters of the response body are reflected back to the attacker in the HTTP 502 error message. This vulnerability bypasses existing SSRF protections that are applied to the gateway.url field but not to OAuth configuration parameters.
📍 영향받는 시스템
IBM ContextForge MCP Gateway 0.1.0 through 1.0.5
⚔️ 공격 벡터
OAuth 게이트웨이 등록 과정에서 oauth_config.token_url 매개변수에 악의적인 내부 주소를 삽입하여 HTTP POST 요청 유도
🛡️ 대응 방법
해당 소프트웨어를 최신 보안 패치가 적용된 버전으로 업데이트하고, OAuth 설정 매개변수에 대한 입력값 검증 로직을 강화하십시오.
🔧 검증 코드
출력된 결과에서 ContextForge MCP Gateway의 버전이 0.1.0에서 1.0.5 사이인지 확인하십시오.
rpm -qa | grep -i 'contextforge' || dpkg -l | grep -i 'contextforge'