Arbitrary file read in the `/api/v2/simulation` endpoint in hoverfly (`GHSL-2023-274`)
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| SpectoLabs | hoverfly | affected |
|
No data.
No data available yet.
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-6xx4-x46f-f897 | Hoverfly allows an arbitrary file read in the `/api/v2/simulation` endpoint (`GHSL-2023-274`) |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 55.6% (55.574% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Hoverfly
Hoverfly hoverfly |
|
| Weaknesses | CWE-22 | |
| CPEs | cpe:2.3:a:hoverfly:hoverfly:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Hoverfly
Hoverfly hoverfly |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Spectolabs
Spectolabs hoverfly |
|
| CPEs | cpe:2.3:a:spectolabs:hoverfly:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Spectolabs
Spectolabs hoverfly |
|
| Metrics |
ssvc
|
| Type | Values Removed | Values 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. | |
| Title | Arbitrary file read in the `/api/v2/simulation` endpoint in hoverfly (`GHSL-2023-274`) | |
| Weaknesses | CWE-200 | |
| References |
|
|
| Metrics |
cvssV3_1
|