Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1wbXhxLXBqNDctajhqNM4AA1xF

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

Patches

Workarounds

For WireMock:

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

Permalink: https://github.com/advisories/GHSA-pmxq-pj47-j8j4
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1wbXhxLXBqNDctajhqNM4AA1xF
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 3 months ago
Updated: 22 days ago


CVSS Score: 3.9
CVSS vector: CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L

Identifiers: GHSA-pmxq-pj47-j8j4, CVE-2023-41329
References:

Affected Packages

pypi:wiremock
Versions: < 2.6.1
Fixed in: 2.6.1
maven:com.github.tomakehurst:wiremock-jre8
Versions: < 2.35.1
Fixed in: 2.35.1
maven:org.wiremock:wiremock
Versions: < 3.0.3
Fixed in: 3.0.3
maven:org.wiremock:wiremock-standalone
Versions: < 3.0.3
Fixed in: 3.0.3