CVE-2024-29973
published 2024-06-04CVE-2024-29973: ** UNSUPPORTED WHEN ASSIGNED ** The command injection vulnerability in the “setCookie” parameter in Zyxel NAS326 firmware versions before V5.21(AAZF.17)C0 and…
PriorityP193critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
86.09%
99.7th percentile
** UNSUPPORTED WHEN ASSIGNED ** The command injection vulnerability in the “setCookie” parameter in Zyxel NAS326 firmware versions before V5.21(AAZF.17)C0 and NAS542 firmware versions before V5.21(ABAG.14)C0 could allow an unauthenticated attacker to execute some operating system (OS) commands by sending a crafted HTTP POST request.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| zyxel | nas326_firmware | < V5.21(AAZF.17)C0 | V5.21(AAZF.17)C0 |
| zyxel | nas326_firmware | < 5.21\(aazf.17\)c0 | 5.21\(aazf.17\)c0 |
| zyxel | nas542_firmware | < V5.21(ABAG.14)C0 | V5.21(ABAG.14)C0 |
| zyxel | nas542_firmware | < 5.21\(abag.14\)c0 | 5.21\(abag.14\)c0 |
Detection & IOCsextracted from sources · hover to see the quote
commandstorage_ext_cgi CGIGetExtStoInfo None) and False or __import__("subprocess").check_output("echo {{string}}", shell=True)#↗
snort
alert http any any -> $HOME_NET any (msg:"ET WEB_SPECIFIC_APPS Zyxel NAS Unauthorized Command Injection in setCookie Parameter (CVE-2024-29973)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/cmd|2c|"; startswith; content:"/register_main/setCookie"; fast_pattern; endswith; http.request_body; content:"c0|3d|"; reference:cve,2024-29973; reference:url,outpost24.com/blog/zyxel-nas-critical-vulnerabilities; classtype:web-application-attack; sid:2055908; rev:1; metadata:affected_product Zyxel, attack_target Server, tls_state plaintext, created_at 2024_09_18, cve CVE_2024_29973, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, tag Exploit, updated_at 2024_09_18, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application; target:dest_ip;)
- →Detect HTTP POST requests targeting the vulnerable endpoint: URI must start with '/cmd,' (URL-encoded as '/cmd|2c|') and end with '/register_main/setCookie' ↗
- →Inspect HTTP POST body for the 'c0=' parameter (URL-encoded 'c0|3d|') containing Python subprocess injection payload using __import__("subprocess").check_output with shell=True ↗
- →The exploit uses multipart/form-data with boundary '----WebKitFormBoundarygcflwtei' and the injection is in the 'c0' form field ↗
- →Use FOFA query 'app="ZYXEL-NAS326"' to identify exposed Zyxel NAS326 devices on the internet for proactive asset identification ↗
- ·CVE-2024-29975 and CVE-2024-29976 (privilege escalation and session/cookie disclosure) were NOT patched by Zyxel even in the emergency update, meaning patched devices may still be at risk from authenticated local attackers or session hijacking ↗
- ·Public PoC exploits are available, significantly raising exploitation likelihood; EPSS score is 0.94053 (99.9th percentile), indicating very high probability of exploitation in the wild ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vulncheck9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-2w49-w2vv-p84h: ** UNSUPPORTED WHEN ASSIGNED **
The command injection vulnerability in the “setCookie” parameter in Zyxel NAS326 firmware versions before V5
ghsa_unreviewed·2024-06-04
CVE-2024-29973 [CRITICAL] CWE-78 GHSA-2w49-w2vv-p84h: ** UNSUPPORTED WHEN ASSIGNED **
The command injection vulnerability in the “setCookie” parameter in Zyxel NAS326 firmware versions before V5
** UNSUPPORTED WHEN ASSIGNED **
The command injection vulnerability in the “setCookie” parameter in Zyxel NAS326 firmware versions before V5.21(AAZF.17)C0 and NAS542 firmware versions before V5.21(ABAG.14)C0 could allow an unauthenticated attacker to execute some operating system (OS) commands by sending a crafted HTTP POST request.
VulnCheck
Zyxel NAS setCookie Crafted HTTP POST Vulnerability
vulncheck·2024·CVSS 9.8
CVE-2024-29973 [CRITICAL] Zyxel NAS setCookie Crafted HTTP POST Vulnerability
Zyxel NAS setCookie Crafted HTTP POST Vulnerability
The command injection vulnerability in the 'setCookie' parameter in Zyxel NAS326 firmware versions before V5.21(AAZF.17)C0 and NAS542 firmware versions before V5.21(ABAG.14)C0 could allow an unauthenticated attacker to execute some operating system (OS) commands by sending a crafted HTTP POST request.
Affected: NAS Zyxel
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://www.theregister.com/2024/06/24/mirailike_botnet_zyxel_nas/; https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-06-27&host_type=src&vulnerability=cve-2024-29973; https://dashboard.shadowserver.org/stat
Suricata
ET WEB_SPECIFIC_APPS Zyxel NAS Unauthorized Command Injection in setCookie Parameter (CVE-2024-29973)
suricata·2024-09-18·CVSS 9.8
CVE-2024-29973 [CRITICAL] ET WEB_SPECIFIC_APPS Zyxel NAS Unauthorized Command Injection in setCookie Parameter (CVE-2024-29973)
ET WEB_SPECIFIC_APPS Zyxel NAS Unauthorized Command Injection in setCookie Parameter (CVE-2024-29973)
Rule: alert http any any -> $HOME_NET any (msg:"ET WEB_SPECIFIC_APPS Zyxel NAS Unauthorized Command Injection in setCookie Parameter (CVE-2024-29973)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/cmd|2c|"; startswith; content:"/register_main/setCookie"; fast_pattern; endswith; http.request_body; content:"c0|3d|"; reference:cve,2024-29973; reference:url,outpost24.com/blog/zyxel-nas-critical-vulnerabilities; classtype:web-application-attack; sid:2055908; rev:1; metadata:affected_product Zyxel, attack_target Server, tls_state plaintext, created_at 2024_09_18, cve CVE_2024_29973, deployment Perimeter, deployment Internal, confidence High, signature_severity Ma
Nuclei
Zyxel NAS326 Firmware < V5.21(AAZF.17)C0 - Command Injection
nuclei·CVSS 9.8
CVE-2024-29973 [CRITICAL] Zyxel NAS326 Firmware < V5.21(AAZF.17)C0 - Command Injection
Zyxel NAS326 Firmware < V5.21(AAZF.17)C0 - Command Injection
The command injection vulnerability in the “setCookie” parameter in Zyxel NAS326 firmware versions before V5.21(AAZF.17)C0 and NAS542 firmware versions before V5.21(ABAG.14)C0 could allow an unauthenticated attacker to execute some operating system (OS) commands by sending a crafted HTTP POST request.
Template:
id: CVE-2024-29973
info:
name: Zyxel NAS326 Firmware < V5.21(AAZF.17)C0 - Command Injection
author: ritikchaddha
severity: critical
description: |
The command injection vulnerability in the “setCookie” parameter in Zyxel NAS326 firmware versions before V5.21(AAZF.17)C0 and NAS542 firmware versions before V5.21(ABAG.14)C0 could allow an unauthenticated attacker to execute some operating system (OS) commands by sending a
Bleepingcomputer
Zyxel issues emergency RCE patch for end-of-life NAS devices
blogs_bleepingcomputer·2024-06-04·CVSS 9.8
[CRITICAL] Zyxel issues emergency RCE patch for end-of-life NAS devices
## Zyxel issues emergency RCE patch for end-of-life NAS devices
## Bill Toulas
Zyxel Networks has released an emergency security update to address three critical vulnerabilities impacting older NAS devices that have reached end-of-life.
The flaws impact NAS326 running firmware versions 5.21(AAZF.16)C0 and earlier, and NAS542 running firmware versions 5.21(ABAG.13)C0 and older.
The networking solutions vendor addressed three critical flaws, which enable attackers to perform command injection and remote code execution. However, two of the flaws allowing privilege escalation and information disclosure were not fixed in the end-of-life products.
Outpost24 security researcher Timothy Hjort discovered and reported all five vulnerabilities to Zyxel. Today, the researchers published a detaile
Greynoiseio
NoiseLetter June 2024
blogs_greynoiseio
NoiseLetter June 2024
CVE Disclosure Early Warning Get an early warning when traffic spikes indicate a high likelihood of new disclosures
Compromised Asset Detection Find out immediately if an asset communicates with a malicious IP address
Vulnerability Prioritization Get real-time insight into active exploitation trends to better understand risk and severity
SOC Efficiency Filter out noisy, low priority and false-positive alerts from mass internet scanners
Incident Investigation Add context to incidents to speed the determinations of scope and timelines
Threat Hunting Quickly identify anomalous behavior and enrich your threat hunting campaigns
Why GreyNoise
CVE Disclosure Early Warning Get an early warning when traffic spikes indicate a high likelihood of new disclosures
Compromised Asset Detection Fin
https://outpost24.com/blog/zyxel-nas-critical-vulnerabilities/https://www.zyxel.com/global/en/support/security-advisories/zyxel-security-advisory-for-multiple-vulnerabilities-in-nas-products-06-04-2024https://outpost24.com/blog/zyxel-nas-critical-vulnerabilities/https://www.zyxel.com/global/en/support/security-advisories/zyxel-security-advisory-for-multiple-vulnerabilities-in-nas-products-06-04-2024
2024-06-04
Published
Exploited in the wild