cve/2024/CVE-2024-45388.md

38 lines
2.3 KiB
Markdown
Raw Normal View History

2025-09-29 16:08:36 +00:00
### [CVE-2024-45388](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45388)
![](https://img.shields.io/static/v1?label=Product&message=hoverfly&color=blue)
2025-09-29 21:09:30 +02:00
![](https://img.shields.io/static/v1?label=Version&message=%3C%201.10.3%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-200%3A%20Exposure%20of%20Sensitive%20Information%20to%20an%20Unauthorized%20Actor&color=brightgreen)
2025-09-29 16:08:36 +00:00
### 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.
### POC
#### Reference
2025-09-29 21:09:30 +02:00
- https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897
2025-09-29 16:08:36 +00:00
#### Github
- https://github.com/12442RF/POC
2025-09-29 21:09:30 +02:00
- https://github.com/20142995/nuclei-templates
2025-09-29 16:08:36 +00:00
- https://github.com/DMW11525708/wiki
- https://github.com/Lern0n/Lernon-POC
- https://github.com/Linxloop/fork_POC
- https://github.com/adysec/POC
- https://github.com/cisp-pte/POC-20241008-sec-fork
2025-09-29 21:09:30 +02:00
- https://github.com/codeb0ss/CVE-2024-45388-PoC
- https://github.com/cyb3r-w0lf/nuclei-template-collection
2025-09-29 16:08:36 +00:00
- https://github.com/eeeeeeeeee-code/POC
2025-09-29 21:09:30 +02:00
- https://github.com/fkie-cad/nvd-json-data-feeds
2025-09-29 16:08:36 +00:00
- https://github.com/greenberglinken/2023hvv_1
- https://github.com/iemotion/POC
- https://github.com/laoa1573/wy876
- https://github.com/oLy0/Vulnerability
- https://github.com/plbplbp/loudong001
2025-09-29 21:09:30 +02:00
- https://github.com/tanjiti/sec_profile
2025-09-29 16:08:36 +00:00
- https://github.com/tequilasunsh1ne/Hoverfly_simulation_fileread
2025-09-29 21:09:30 +02:00
- https://github.com/wy876/POC
- https://github.com/wy876/wiki
2025-09-29 16:08:36 +00:00