CVE-2023-41329

Low

Description

WireMock is a tool for mocking HTTP services. The proxy mode of WireMock, can be protected by the network restrictions configuration, as documented in Preventing proxying to and recording from specific target addresses. These restrictions can be configured using the domain names, and in such a case the configuration is vulnerable to the DNS rebinding attacks. A similar patch was applied in WireMock 3.0.0-beta-15 for the WireMock Webhook Extensions. The root cause of the attack is a defect in the logic which allows for a race condition triggered by a DNS server whose address expires in between the initial validation and the outbound network request that might go to a domain that was supposed to be prohibited. Control over a DNS service is required to exploit this attack, so it has high execution complexity and limited impact. This issue has been addressed in version 2.35.1 of wiremock-jre8 and wiremock-jre8-standalone, version 3.0.3 of wiremock and wiremock-standalone, version 2.6.1 of the python version of wiremock, and versions 2.35.1-1 and 3.0.3-1 of the wiremock/wiremock Docker container. Users are advised to upgrade. Users unable to upgrade should either configure firewall rules to define the list of permitted destinations or to configure WireMock to use IP addresses instead of the domain names.

SeverityLow
CVSS3.9
Exploit probability—
ProductPython Wiremock
PublishedSep 6, 2023
First seenSep 6, 2023
Weakness typeCWE-290CWE-290

How to fix

Update
  • wiremock python_wiremock2.6.1 or later
  • wiremock wiremock2.35.1, 3.0.3 or later
  • wiremock wiremock_docker2.35.1-1, 3.0.3-1 or later
  • org.wiremock:wiremock-standalone3.0.3 or later
  • org.wiremock:wiremock3.0.3 or later
  • com.github.tomakehurst:wiremock-jre82.35.1 or later
  • com.github.tomakehurst:wiremock-jre8-standalone2.35.1 or later
  • wiremock2.6.1 or later

Affected products

ProductAffected versionsFixed in
wiremock python_wiremockv < 2.6.12.6.1
wiremock studiov ≤ 2.32.0-17—
wiremock wiremockv < 2.35.1, 3.0.0 ≤ v < 3.0.32.35.1, 3.0.3
wiremock wiremock_docker2.0.0 ≤ v < 2.35.1-1, 3.0.0 ≤ v < 3.0.3-12.35.1-1, 3.0.3-1
org.wiremock:wiremock-standaloneMavenv < 3.0.33.0.3
org.wiremock:wiremockMavenv < 3.0.33.0.3
com.github.tomakehurst:wiremock-jre8Mavenv < 2.35.12.35.1
com.github.tomakehurst:wiremock-jre8-standaloneMavenv < 2.35.12.35.1
wiremockPyPIv < 2.6.12.6.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.