Overview
- 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-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 the python version of wiremock, and versions 2.35.1-1 and 3.0.3-1 of the wiremock/wiremock Docker container. 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.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 6.6
- Impact score
- 5.9
- Exploitability score
- 0.7
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- Severity
- MEDIUM
Weaknesses
- security-advisories@github.com
- CWE-290
Social media
- Hype score
- Not currently trending
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:wiremock:python_wiremock:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "C996BA43-2702-4ECA-AB34-F6E7FA0811A2", "versionEndExcluding": "2.6.1" }, { "criteria": "cpe:2.3:a:wiremock:studio:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "94D6D047-97F7-4326-AAF8-09ACB980D549", "versionEndIncluding": "2.32.0-17" }, { "criteria": "cpe:2.3:a:wiremock:wiremock:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "C970946B-2D32-441B-B920-43B29BDB31AD", "versionEndExcluding": "2.35.1" }, { "criteria": "cpe:2.3:a:wiremock:wiremock:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "5E2F15FC-7298-49C1-9C37-6B0AE0C5B272", "versionEndExcluding": "3.0.3", "versionStartIncluding": "3.0.0" }, { "criteria": "cpe:2.3:a:wiremock:wiremock_docker:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "6D536C73-6C99-428A-9F41-A6452708B6D9", "versionEndExcluding": "2.35.1-1", "versionStartIncluding": "2.0.0" }, { "criteria": "cpe:2.3:a:wiremock:wiremock_docker:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "6ED4EACC-77AA-476D-83C4-94F1646D0AEA", "versionEndExcluding": "3.0.3-1", "versionStartIncluding": "3.0.0" } ], "operator": "OR" } ] } ]