CVE-2024-45388

HIGH EXPLOITED NUCLEI

Hoverfly < 1.10.3 - Path Traversal via Simulation API File Parameter

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2024-45388 has been observed exploited in the wild (reported by VulnCheck KEV). A Nuclei detection template is also available.

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.

Nuclei Templates (1)

Hoverfly < 1.10.3 - Arbitrary File Read
HIGHVERIFIEDby iamnoooob,rootxharsh,pdresearch
Shodan: http.favicon.hash:1357234275

Scores

CVSS v3 7.5
EPSS 0.5586
EPSS Percentile 98.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

VulnCheck KEV 2024-12-05
CWE
CWE-22 CWE-200
Status published
Products (3)
hoverfly/hoverfly < 1.10.3
spectolabs/hoverfly 0 - 1.10.3Go
SpectoLabs/hoverfly 0 - 1.10.3Go
Published Sep 02, 2024
Tracked Since Feb 18, 2026