GHSA-pmxq-pj47-j8j4

Suggest an improvement
Source
https://github.com/advisories/GHSA-pmxq-pj47-j8j4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-pmxq-pj47-j8j4/GHSA-pmxq-pj47-j8j4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pmxq-pj47-j8j4
Aliases
Published
2023-09-08T12:19:49Z
Modified
2024-02-16T08:23:18.889714Z
Severity
  • 3.9 (Low) CVSS_V3 - CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio webhooks, proxy and recorder modes
Details

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

  • WireMock 3,x until 3.0.3 (security patch), on default settings in environments with access to the network
  • WireMock 2.x until 2.35.1 (security patch), on default settings in environments with access to the network
  • Python WireMock until 2.6.1
  • WireMock Studio - all versions, this proprietary product was discontinued in 2022

Patches

  • WireMock 3.0.3 + the 3.0.3-1 Docker image
  • WireMock 2.35.1 + the 2.35.1-1 Docker image - backport to WireMock 2.x
  • Python WireMock 2.6.1

Workarounds

For WireMock:

  • Option 1: Configure WireMock to use IP addresses instead of the domain names in the outbound URLs subject to DNS rebinding
  • Option 2: Use external firewall rules to define the list of permitted destinations

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

  • CVE-2023-41327 - Related issue in the WireMock Webhooks Extension
Database specific
{
    "nvd_published_at": "2023-09-06T21:15:14Z",
    "cwe_ids": [
        "CWE-290",
        "CWE-350"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2023-09-08T12:19:49Z"
}
References

Affected packages

Maven / org.wiremock:wiremock-standalone

Package

Name
org.wiremock:wiremock-standalone
View open source insights on deps.dev
Purl
pkg:maven/org.wiremock/wiremock-standalone

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.3

Affected versions

3.*

3.0.0-beta-11
3.0.0-beta-12
3.0.0-beta-13
3.0.0-beta-14
3.0.0-beta-15
3.0.0
3.0.1
3.0.2

Maven / org.wiremock:wiremock

Package

Name
org.wiremock:wiremock
View open source insights on deps.dev
Purl
pkg:maven/org.wiremock/wiremock

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.3

Affected versions

3.*

3.0.0-beta-11
3.0.0-beta-12
3.0.0-beta-13
3.0.0-beta-14
3.0.0-beta-15
3.0.0
3.0.1
3.0.2

Maven / com.github.tomakehurst:wiremock-jre8

Package

Name
com.github.tomakehurst:wiremock-jre8
View open source insights on deps.dev
Purl
pkg:maven/com.github.tomakehurst/wiremock-jre8

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.35.1

Affected versions

2.*

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

Maven / com.github.tomakehurst:wiremock-jre8-standalone

Package

Name
com.github.tomakehurst:wiremock-jre8-standalone
View open source insights on deps.dev
Purl
pkg:maven/com.github.tomakehurst/wiremock-jre8-standalone

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.35.1

Affected versions

2.*

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

PyPI / wiremock

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.6.1

Affected versions

1.*

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.*

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.0a0
2.4.0
2.5.0
2.6.0a0
2.6.0