CVE-2024-45388
Last modified
CVE-2024-45388 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 55.86% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hoverfly | Hoverfly | < 1.10.3 |
References
- https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-45388?
How severe is CVE-2024-45388?
How do I fix CVE-2024-45388?
Are you affected by CVE-2024-45388?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
