Lucene search

K
cveGitHub_MCVE-2023-41329
HistorySep 06, 2023 - 9:15 p.m.

CVE-2023-41329

2023-09-0621:15:14
CWE-290
GitHub_M
web.nvd.nist.gov
53
wiremock
http services
dns rebinding attacks
network restrictions
proxy mode
security vulnerability
cve-2023-41329

CVSS3

6.6

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

EPSS

0.001

Percentile

31.3%

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.

Affected configurations

Nvd
Vulners
Node
wiremockpython_wiremockRange<2.6.1
OR
wiremockstudioRange2.32.0-17
OR
wiremockwiremockRange<2.35.1
OR
wiremockwiremockRange3.0.03.0.3
OR
wiremockwiremock_dockerRange2.0.02.35.1-1
OR
wiremockwiremock_dockerRange3.0.03.0.3-1
VendorProductVersionCPE
wiremockpython_wiremock*cpe:2.3:a:wiremock:python_wiremock:*:*:*:*:*:*:*:*
wiremockstudio*cpe:2.3:a:wiremock:studio:*:*:*:*:*:*:*:*
wiremockwiremock*cpe:2.3:a:wiremock:wiremock:*:*:*:*:*:*:*:*
wiremockwiremock_docker*cpe:2.3:a:wiremock:wiremock_docker:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "vendor": "wiremock",
    "product": "wiremock",
    "versions": [
      {
        "version": " org.wiremock:wiremock: < 3.0.3",
        "status": "affected"
      },
      {
        "version": " org.wiremock:wiremock-standalone: < 3.0.3",
        "status": "affected"
      },
      {
        "version": "com.tomakehurst.wiremock:wiremock-jre8: < 2.35.1",
        "status": "affected"
      },
      {
        "version": "com.tomakehurst.wiremock:wiremock-jre8-standalone: < 2.35.1",
        "status": "affected"
      },
      {
        "version": "pypi: wiremock: < 2.6.1",
        "status": "affected"
      },
      {
        "version": "wiremock/wiremock: < 2.35.1-1",
        "status": "affected"
      },
      {
        "version": "wiremock/wiremock: >= 3.0.0, < 3.0.3-1",
        "status": "affected"
      }
    ]
  }
]

CVSS3

6.6

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

EPSS

0.001

Percentile

31.3%