wiremock
Affected
- introduced
0, fixed2.6.1(ecosystem)
Fixed versions
2.6.1
Fix
- Fixed version
2.6.1pip install --upgrade wiremock==2.6.1
Advisory
Also known as: BIT-wiremock-2023-41329, CVE-2023-41329, GHSA-pmxq-pj47-j8j4
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
Low Basis: CVSS v3 score 3.9, vector CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L
0, fixed 2.6.1 (ecosystem)2.6.1
2.6.1pip install --upgrade wiremock==2.6.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0