CVE-2021-42717
描述:ModSecurity是一個(gè)入侵檢測(cè)、阻止的引擎可以作為Apache Web服務(wù)器的一個(gè)模塊或單獨(dú)的應(yīng)用程序來(lái)運(yùn)行,為增強(qiáng)Web應(yīng)用程序的安全性和保護(hù)Web應(yīng)用程序避免遭受來(lái)自已知與未知的攻擊。ModSecurity存在安全漏洞,該漏洞源于 ModSecurity 錯(cuò)誤處理了過(guò)度嵌套的 JSON 對(duì)象。精心制作的具有數(shù)萬(wàn)層嵌套深度的 JSON 對(duì)象可能會(huì)導(dǎo)致 Web 服務(wù)器無(wú)法為合法請(qǐng)求提供服務(wù)。即使是中等大?。ɡ?300KB)的 HTTP 請(qǐng)求也可能占用一個(gè)有限的 NGINX 工作進(jìn)程數(shù)分鐘,并消耗機(jī)器上幾乎所有可用的 CPU。
銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 SP2
debug/mod_security-debuginfo-2.9.5-1.ky10
mod_security-2.9.5-1.ky10
·銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 SP1
mod_security-2.9.5-1.ky10
銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 SP2
aarch64:debug/mod_security-debuginfo、mod_security、
x86_64:debug/mod_security-debuginfo、mod_security、
銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 SP1
aarch64:mod_security、
mips64el:mod_security、
x86_64:mod_security、
方法一:配置源進(jìn)行升級(jí)安裝
1.打開軟件包源配置文件,根據(jù)倉(cāng)庫(kù)地址進(jìn)行修改。
倉(cāng)庫(kù)源地址:
銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 SP2
aarch64:https://update.cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/updates/aarch64/
x86_64:https://update.cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/updates/x86_64/
銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 SP1
aarch64:https://update.cs2c.com.cn/NS/V10/V10SP1.1/os/adv/lic/updates/aarch64/
mips64el:https://update.cs2c.com.cn/NS/V10/V10SP1.1/os/adv/lic/updates/mips64el/
x86_64:https://update.cs2c.com.cn/NS/V10/V10SP1.1/os/adv/lic/updates/x86_64/
2.配置完成后執(zhí)行更新命令進(jìn)行升級(jí),命令如下:
yum update Packagename
方法二:下載安裝包進(jìn)行升級(jí)安裝
通過(guò)軟件包地址下載軟件包,使用軟件包升級(jí)命令根據(jù)受影響的軟件包列表進(jìn)行升級(jí)安裝,命令如下:
yum install Packagename
銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 SP2
mod_security aarch64軟件包下載地址:
mod_security x86_64軟件包下載地址:
銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 SP1
mod_security aarch64軟件包下載地址:
mod_security mips64el軟件包下載地址:
mod_security x86_64軟件包下載地址:
注:其他相關(guān)依賴包請(qǐng)到相同目錄下載