漏洞描述
多款ZyXEL产品中存在操作系统命令注入漏洞。远程攻击者可借助特制的HTTP POST或GET请求利用该漏洞执行任意代码。由于可执行文件weblogin.cgi在身份验证期间未正确过滤username参数造成的,导致攻击者可以在传递给此文件的用户名中包含某些特殊字符来触发漏洞,进而以webserver的权限实现命令注入。
以下产品及版本受到影响:
使用V5.21(AAZF.7)C0之前版本固件的NAS326;
使用V5.21(AASZ.3)C0之前版本固件的NAS520;
使用V5.21(AATB.4)C0之前版本固件的NAS540;
使用V5.21(ABAG.4)C0之前版本固件的NAS542;
ZyXEL NSA210;
ZyXEL NSA220;
ZyXEL NSA220+;
ZyXEL NSA221;
ZyXEL NSA310;
ZyXEL NSA310S;
ZyXEL NSA320;
ZyXEL NSA320S;
ZyXEL NSA325;
ZyXEL NSA325v2;
解决建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:
https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtml
https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtml
参考链接
https://cwe.mitre.org/data/definitions/78.html
https://kb.cert.org/artifacts/cve-2020-9054.html
https://kb.cert.org/vuls/id/498544/
https://krebsonsecurity.com/2020/02/zyxel-fixes-0day-in-network-storage-devices/
https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtml