CVE-2024-45388
Hoverfly File Path Traversal
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.
INFO
Published Date :
Sept. 2, 2024, 6:15 p.m.
Last Modified :
Sept. 19, 2024, 3:18 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2024-45388 has a 3 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-45388
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
搭建漏洞
HTML
None
Mass Exploit - CVE-2024-45388 - Hoverfly < Arbitrary File Read
codeb0ss uncodeboss cve-2024-45388 cve-2024-45388-exp cve-2024-45388-poc
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-45388
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-45388
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Sep. 19, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Changed Reference Type https://codeql.github.com/codeql-query-help/go/go-path-injection No Types Assigned https://codeql.github.com/codeql-query-help/go/go-path-injection Not Applicable Changed Reference Type https://github.com/spectolabs/hoverfly/blob/15d6ee9ea4e0de67aec5a41c28d21dc147243da0/core/handlers/v2/simulation_handler.go#L87 No Types Assigned https://github.com/spectolabs/hoverfly/blob/15d6ee9ea4e0de67aec5a41c28d21dc147243da0/core/handlers/v2/simulation_handler.go#L87 Product Changed Reference Type https://github.com/SpectoLabs/hoverfly/releases/tag/v1.10.3 No Types Assigned https://github.com/SpectoLabs/hoverfly/releases/tag/v1.10.3 Release Notes Changed Reference Type https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897 No Types Assigned https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897 Exploit, Vendor Advisory Added CWE NIST CWE-22 Added CPE Configuration OR *cpe:2.3:a:hoverfly:hoverfly:*:*:*:*:*:*:*:* versions up to (excluding) 1.10.3 -
CVE Received by [email protected]
Sep. 02, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897 [No types assigned] Added Reference GitHub, Inc. https://codeql.github.com/codeql-query-help/go/go-path-injection [No types assigned] Added Reference GitHub, Inc. https://github.com/SpectoLabs/hoverfly/releases/tag/v1.10.3 [No types assigned] Added Reference GitHub, Inc. https://github.com/spectolabs/hoverfly/blob/15d6ee9ea4e0de67aec5a41c28d21dc147243da0/core/handlers/v2/simulation_handler.go#L87 [No types assigned] Added CWE GitHub, Inc. CWE-200 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-45388
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-45388
weaknesses.