S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Oct 1, 2024

CVE-2024-45388 Scanner

CVE-2024-45388 scanner - Arbitrary File Read vulnerability in Hoverfly

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
2.3k
Times Used
continuous scan runs
5.5k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-45388
7.5
CVSShigh
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
hoverflyby SpectoLabs
< 1.10.3
hoverflyby spectolabs
AFFECTED< 1.10.3SAFE ✓≥ 1.10.3
Updated Aug 22, 2026View on NVD →
Detail

Hoverfly is a lightweight service virtualization and API simulation tool used by developers and testers to mimic real-world API interactions. It is designed for easy integration into CI/CD pipelines and automating API tests. The tool provides powerful features for recording and simulating HTTP traffic, making it ideal for complex API scenarios. Hoverfly is often used in environments where accurate API behavior simulation is critical to testing. It is widely used by organizations for ensuring reliable API functionality during software development and testing.

The Arbitrary File Read vulnerability in Hoverfly allows an attacker to access files on the server without proper authorization. Exploiting this issue requires sending specially crafted HTTP requests to the vulnerable Hoverfly instance. The vulnerability arises from improper handling of file paths in simulation requests, enabling attackers to read sensitive files. This flaw can lead to exposure of critical server information.

The vulnerability exists in the /api/v2/simulation POST handler of Hoverfly, which processes simulation creation requests. An attacker can manipulate the bodyFile parameter to specify arbitrary file paths on the server. By using directory traversal techniques, attackers can access sensitive files such as /etc/passwd. The response from the server reveals the contents of these files, allowing the attacker to read them without authentication. This issue affects Hoverfly versions below 1.10.3.

Exploitation of this vulnerability can lead to unauthorized disclosure of sensitive server files. Attackers could gain access to system configuration files, potentially leading to further system compromise. If critical information such as password files is exposed, it could be used to elevate privileges or execute further attacks against the server. Additionally, exposure of configuration files might reveal network or application credentials, resulting in wider security breaches.

By using the S4E platform, you can proactively identify and mitigate critical vulnerabilities like Arbitrary File Read in your infrastructure. Our platform provides continuous monitoring and easy-to-understand reports that help you maintain a secure environment. Leverage our comprehensive vulnerability scanning tools to protect your assets from external threats. Become a member to ensure your systems are always safeguarded from the latest vulnerabilities. Get timely alerts and remediation steps with our advanced scanning tools to keep your digital presence secure.

References:

Solution Advice
  • Update Hoverfly to version 1.10.3 or later.
  • Implement strict file path validation to prevent directory traversal.
  • Limit access to sensitive endpoints like /api/v2/simulation to trusted users only.
  • Regularly review and update system permissions to minimize unauthorized file access risks.
  • Monitor server logs for suspicious activities that might indicate an exploit attempt.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.