🔍 CVE-2023-41327

4.6
CVSS Score
MEDIUM
2023-09-06
2026-06-17 06:21
✅ 완료

🇰🇷 한글 설명

WireMock Webhooks Extension에서 프록시 대상 주소 필터링 기능이 제대로 작동하지 않는 취약점입니다. 이로 인해 Webhook 설정을 통해 WireMock 인스턴스가 접근 가능한 임의의 서비스로 POST 요청을 전달할 수 있습니다. 이는 내부 네트워크의 보안되지 않은 API나 인증 토큰을 탈취한 보안 API에 대한 공격으로 이어질 수 있습니다.

💡 쉬운 설명

WireMock이라는 도구에서 허용되지 않은 주소로 데이터를 보내지 못하게 막는 기능이 제대로 작동하지 않는 문제입니다. 공격자가 이 허점을 이용해 내부 네트워크에 있는 다른 서버에 몰래 요청을 보낼 수 있습니다.

🇺🇸 원문 (English)

WireMock is a tool for mocking HTTP services. WireMock can be configured to only permit proxying (and therefore recording) to certain addresses. This is achieved via a list of allowed address rules and a list of denied address rules, where the allowed list is evaluated first. Until WireMock Webhooks Extension 3.0.0-beta-15, the filtering of target addresses from the proxy mode DID NOT work for Webhooks, so the users were potentially vulnerable regardless of the `limitProxyTargets` settings. Via the WireMock webhooks configuration, POST requests from a webhook might be forwarded to an arbitrary service reachable from WireMock’s instance. For example, If someone is running the WireMock docker Container inside a private cluster, they can trigger internal POST requests against unsecured APIs or even against secure ones by passing a token, discovered using another exploit, via authentication headers. This issue has been addressed in versions 2.35.1 and 3.0.3 of wiremock. Wiremock studio has been discontinued and will not see a fix. Users unable to upgrade should use external firewall rules to define the list of permitted destinations.

📍 영향받는 시스템

WireMock Webhooks Extension 3.0.0-beta-15 미만 버전

⚔️ 공격 벡터

Webhook 설정을 악용하여 WireMock 인스턴스가 접근 가능한 임의의 내부/외부 서비스로 POST 요청을 전송

🛡️ 대응 방법

WireMock을 2.35.1 또는 3.0.3 이상의 버전으로 업그레이드하거나, 업그레이드가 불가능할 경우 외부 방화벽 규칙을 통해 허용된 목적지만 접근 가능하도록 제한

🔧 검증 코드

실행 중인 WireMock의 버전을 확인하여 2.35.1 또는 3.0.3 이상인지 확인합니다.

Shell / Script
java -jar wiremock-standalone.jar --version 2>/dev/null || echo 'Check WireMock version manually'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker