CVE-2024-45388

HIGH EPSS 98.9%
Published Sep 2, 20241y ago · Modified Jun 17, 20262w ago
7.5 CVSS 3.1
High
Find Similar
Published Sep 2, 2024 1y ago
Last Modified Jun 17, 2026 2w ago

Description

Hoverfly is a lightweight service virtualization/ API simulation / API mocking tool for developers and testers. The `/api/v2/simulation` POST handler allows users to create new simulation views from the contents of a user-specified file. This feature can be abused by an attacker to read arbitrary files from the Hoverfly server. Note that, although the code prevents absolute paths from being specified, an attacker can escape out of the `hf.Cfg.ResponsesBodyFilesPath` base path by using `../` segments and reach any arbitrary files. This issue was found using the Uncontrolled data used in path expression CodeQL query for python. Users are advised to make sure the final path (`filepath.Join(hf.Cfg.ResponsesBodyFilesPath, filePath)`) is contained within the expected base path (`filepath.Join(hf.Cfg.ResponsesBodyFilesPath, "/")`). This issue is also tracked as GHSL-2023-274.

CVSS Details

Base Score
7.5
Exploitability
3.9
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability None

Threat Intelligence

EPSS Exploit Probability
98.9% percentile
Exploit & Patch Status
Public Exploit Known
No Patch Available

Weaknesses 2

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor Information Exposure
CWE-22 Path Traversal Resource Mgmt

Affected Products 1

VendorProductVersionRange
hoverflyhoverfly* <1.10.3

References 4

  • codeql.github.com https://codeql.github.com/codeql-query-help/go/go-path-injection
    Not Applicable
  • github.com https://github.com/SpectoLabs/hoverfly/releases/tag/v1.10.3
    Release Notes
  • github.com https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897
    ExploitVendor Advisory
  • github.com https://github.com/spectolabs/hoverfly/blob/15d6ee9ea4e0de67aec5a41c28d21dc147243da0/core/handlers/v2/simulation_handler.go#L87
    Product

Remediation

No remediation data recorded yet

Check vendor advisories and the NVD entry for patch availability.