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: 8 months ago
Updated: 6 months 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: Repository: https://github.com/wiremock/wiremock
Blast Radius: 16.4

Affected Packages

pypi:wiremock
Dependent packages: 1
Dependent repositories: 7
Downloads: 66,360 last month
Affected Version Ranges: < 2.6.1
Fixed in: 2.6.1
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.2.0, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.5.0, 2.6.0
All unaffected versions: 2.6.1
maven:com.github.tomakehurst:wiremock-jre8-standalone
Dependent packages: 171
Dependent repositories: 633
Downloads:
Affected Version Ranges: < 2.35.1
Fixed in: 2.35.1
All affected versions: 2.21.0, 2.22.0, 2.23.0, 2.23.1, 2.23.2, 2.24.0, 2.24.1, 2.25.0, 2.25.1, 2.26.0, 2.26.1, 2.26.2, 2.26.3, 2.27.0, 2.27.1, 2.27.2, 2.28.0, 2.28.1, 2.29.0, 2.29.1, 2.30.0, 2.30.1, 2.31.0, 2.32.0, 2.33.0, 2.33.1, 2.33.2, 2.34.0, 2.35.0
All unaffected versions: 2.35.1, 2.35.2, 3.0.0, 3.0.1
maven:com.github.tomakehurst:wiremock-jre8
Dependent packages: 578
Dependent repositories: 2,270
Downloads:
Affected Version Ranges: < 2.35.1
Fixed in: 2.35.1
All affected versions: 2.21.0, 2.22.0, 2.23.0, 2.23.1, 2.23.2, 2.24.0, 2.24.1, 2.25.0, 2.25.1, 2.26.0, 2.26.1, 2.26.2, 2.26.3, 2.27.0, 2.27.1, 2.27.2, 2.28.0, 2.28.1, 2.29.0, 2.29.1, 2.30.0, 2.30.1, 2.31.0, 2.32.0, 2.33.0, 2.33.1, 2.33.2, 2.34.0, 2.35.0
All unaffected versions: 2.35.1, 2.35.2, 3.0.0, 3.0.1
maven:org.wiremock:wiremock
Affected Version Ranges: < 3.0.3
Fixed in: 3.0.3
maven:org.wiremock:wiremock-standalone
Affected Version Ranges: < 3.0.3
Fixed in: 3.0.3