Skip to content

CVE-2023-41327 Controlled SSRF through URL in the WireMock

MediumCVSS 5.4 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
DockerNetwork Appliances

Description

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
org.wiremock/wiremock-webhooks-extension(Maven) = 2.30.0; = 2.30.1; = 2.31.0; = 2.32.0 +10 more 2.35.1, 3.0.3 Fixed
wiremock = org.wiremock:wiremock-webhooks-extension: >= 2.0.0, < 2.35.1; = org.wiremock:wiremock-webhooks-extension: >= 3.0.0, < 3.0.3; = wiremock-studio: All versions; >= 2.0.0, < 2.35.1 +1 more 2.35.1, 3.0.3 Fixed
wiremock studio <= 2.32.0-17 after 2.32.0-17 Fixed

Affected products

ProductAffected versionsFixed in
org.wiremock/wiremock-webhooks-extension(Maven) >= 3.0.0, < 3.0.3 3.0.3
org.wiremock/wiremock-webhooks-extension(Maven) >= 2.0.0, < 2.35.1 2.35.1
org.wiremock/wiremock-webhooks-extension(Maven) = 3.0.0 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 3.0.1 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 3.0.2 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.30.0 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.30.1 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.31.0 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.32.0 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.33.0 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.33.1 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.33.2 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.34.0 No fix listed
org.wiremock/wiremock-webhooks-extension(Maven) = 2.35.0 No fix listed
wiremock = org.wiremock:wiremock-webhooks-extension: >= 2.0.0, < 2.35.1 No fix listed
wiremock = org.wiremock:wiremock-webhooks-extension: >= 3.0.0, < 3.0.3 No fix listed
wiremock = wiremock-studio: All versions No fix listed
wiremock studio <= 2.32.0-17 No fix listed
wiremock >= 2.0.0, < 2.35.1 2.35.1
wiremock >= 3.0.0, < 3.0.3 3.0.3

References