Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2024-45388
September 02, 2024
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.
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Exposure of Sensitive Information to an Unauthorized Actor
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
93.68