// For flags

CVE-2023-41329

Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio

Severity Score

6.6
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track
*SSVC
Descriptions

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.

WireMock es una herramienta para imitar servicios HTTP. El modo proxy de WireMock se puede proteger mediante la configuración de restricciones de red, como se documenta en Preventing proxying y la grabación desde direcciones de destino específicas. Estas restricciones se pueden configurar utilizando los nombres de dominio y, en tal caso, la configuración es vulnerable a los ataques de vinculación de DNS. Se aplicó un parche similar en WireMock 3.0.0-beta-15 para las extensiones WireMock Webhook. La causa principal del ataque es un defecto en la lógica que permite una condición de ejecución desencadenada por un servidor DNS cuya dirección expira entre la validación inicial y la solicitud de red saliente que podría ir a un dominio que se suponía estaba prohibido. Se requiere control sobre un servicio DNS para explotar este ataque, por lo que tiene una alta complejidad de ejecución y un impacto limitado. Este problema se solucionó en la versión 2.35.1 de wiremock-jre8 y wiremock-jre8-standalone, la versión 3.0.3 de wiremock y wiremock-standalone, la versión 2.6.1 de la versión Python de wiremock y las versiones 2.35.1-1 y 3.0.3-1 del contenedor Docker wiremock/wiremock. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben configurar reglas de firewall para definir la lista de destinos permitidos o configurar WireMock para usar direcciones IP en lugar de nombres de dominio.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
* Common Vulnerability Scoring System
SSVC
  • Decision:Track
Exploitation
None
Automatable
No
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2023-08-28 CVE Reserved
  • 2023-09-06 CVE Published
  • 2024-09-12 EPSS Updated
  • 2024-09-26 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-290: Authentication Bypass by Spoofing
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Wiremock
Search vendor "Wiremock"
Python Wiremock
Search vendor "Wiremock" for product "Python Wiremock"
< 2.6.1
Search vendor "Wiremock" for product "Python Wiremock" and version " < 2.6.1"
-
Affected
Wiremock
Search vendor "Wiremock"
Studio
Search vendor "Wiremock" for product "Studio"
<= 2.32.0-17
Search vendor "Wiremock" for product "Studio" and version " <= 2.32.0-17"
-
Affected
Wiremock
Search vendor "Wiremock"
Wiremock
Search vendor "Wiremock" for product "Wiremock"
< 2.35.1
Search vendor "Wiremock" for product "Wiremock" and version " < 2.35.1"
-
Affected
Wiremock
Search vendor "Wiremock"
Wiremock
Search vendor "Wiremock" for product "Wiremock"
>= 3.0.0 < 3.0.3
Search vendor "Wiremock" for product "Wiremock" and version " >= 3.0.0 < 3.0.3"
-
Affected
Wiremock
Search vendor "Wiremock"
Wiremock Docker
Search vendor "Wiremock" for product "Wiremock Docker"
>= 2.0.0 < 2.35.1-1
Search vendor "Wiremock" for product "Wiremock Docker" and version " >= 2.0.0 < 2.35.1-1"
-
Affected
Wiremock
Search vendor "Wiremock"
Wiremock Docker
Search vendor "Wiremock" for product "Wiremock Docker"
>= 3.0.0 < 3.0.3-1
Search vendor "Wiremock" for product "Wiremock Docker" and version " >= 3.0.0 < 3.0.3-1"
-
Affected