Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-pmxq-pj47-j8j4

Опубликовано: 08 сент. 2023
Источник: github
Github: Прошло ревью
CVSS3: 3.9

Описание

Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio webhooks, proxy and recorder modes

Impact

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.

Affected versions

  • WireMock 3,x until 3.0.3 (security patch), on default settings in environments with access to the network
  • WireMock 2.x until 2.35.1 (security patch), on default settings in environments with access to the network
  • Python WireMock until 2.6.1
  • WireMock Studio - all versions, this proprietary product was discontinued in 2022

Patches

  • WireMock 3.0.3 + the 3.0.3-1 Docker image
  • WireMock 2.35.1 + the 2.35.1-1 Docker image - backport to WireMock 2.x
  • Python WireMock 2.6.1

Workarounds

For WireMock:

  • Option 1: Configure WireMock to use IP addresses instead of the domain names in the outbound URLs subject to DNS rebinding
  • Option 2: Use external firewall rules to define the list of permitted destinations

For WireMock Studio: N/A. Switch to another distribution, there will be no fix provided. The vendor of former WireMock Studio recommends migration to WireMock Cloud

References

  • CVE-2023-41327 - Related issue in the WireMock Webhooks Extension

Пакеты

Наименование

org.wiremock:wiremock-standalone

maven
Затронутые версииВерсия исправления

< 3.0.3

3.0.3

Наименование

org.wiremock:wiremock

maven
Затронутые версииВерсия исправления

< 3.0.3

3.0.3

Наименование

com.github.tomakehurst:wiremock-jre8

maven
Затронутые версииВерсия исправления

< 2.35.1

2.35.1

Наименование

com.github.tomakehurst:wiremock-jre8-standalone

maven
Затронутые версииВерсия исправления

< 2.35.1

2.35.1

Наименование

wiremock

pip
Затронутые версииВерсия исправления

< 2.6.1

2.6.1

EPSS

Процентиль: 38%
0.00168
Низкий

3.9 Low

CVSS3

Дефекты

CWE-290
CWE-350

Связанные уязвимости

CVSS3: 3.9
nvd
больше 2 лет назад

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

CVSS3: 6.6
fstec
больше 2 лет назад

Уязвимость программного средства создания виртуальных HTTP-сервисов WireMock, связанная с обходом аутентификации посредством спуфинга, позволяющая нарушителю обойти установленный контроль доступа

EPSS

Процентиль: 38%
0.00168
Низкий

3.9 Low

CVSS3

Дефекты

CWE-290
CWE-350