CVE-2023-41329
Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio
Description
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 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 versions 2.35.1-1 and 3.0.3-1. 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.
How to fix CVE-2023-41329
To remediate CVE-2023-41329, upgrade the affected package to a fixed version below.
- —upgrade to 2.35.1 or later
- —upgrade to 2.35.1 or later
- —upgrade to 2.35.1 or later
- —upgrade to 3.0.3 or later
- —upgrade to 3.0.3 or later
Is CVE-2023-41329 being exploited?
Low — EPSS is 0.6%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 2.35.1, >= 3.0.0, < 3.0.3
- from 0, < 2.35.1
- from 0, < 2.35.1
- from 0, < 3.0.3
- from 0, < 3.0.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.9 | CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L |