SSL/TLS協議資訊泄露漏洞(CVE-2016-2183)
- 詳細描述
TLS是安全傳輸層協議,用于在兩個通信應用程式之間提供保密性和資料完整性, TLS, SSH, IPSec協商及其他產品中使用的DES及Triple DES密碼存在大約四十億塊的生日界,這可使遠程攻擊者通過Sweet32攻擊,獲取純文本資料,
- 解決辦法
建議:避免使用DES演算法
1、OpenSSL Security Advisory [22 Sep 2016] 鏈接:https://www.openssl.org/news/secadv/20160922.txt 請在下列網頁下載最新版本: https://www.openssl.org/source/
2、對于nginx、apache、lighttpd等服務器禁止使用DES加密演算法 主要是修改conf檔案 3、Windows系統可以參考如下鏈接: https://social.technet.microsoft.com/Forums/en-US/31b3ba6f-d0e6-417a-b6f1-d0103f054f8d/ssl-medium-strength-cipher-suites-supported-sweet32cve20162183?forum=ws2016
-
開始干活
-
先百度搜索一波找到思路,最終找到一個相對比較好的文章
參考文章: Nginx升級加固SSL/TLS協議資訊泄露漏洞(CVE-2016-2183). -
更新OpenSSL版本
-
此時發現和解決nginx安全漏洞: nginx安全漏洞(CVE-2021-23017)修復.操作步驟大體一致
-
將下載的OpenSSL上傳到服務器,位置無要求,解壓致/usr/local目錄下
tar zxvf openssl-1.1.0k.tar.gz -C /usr/local
查看OpenSSL版本
[root@host sbin]# ./nginx -V
nginx version: nginx/1.18.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module
切換到nginx目錄下,執行命令,保險起見,我這里還是使用的是nginx-1.20.1的包下進行的操作
[root@host 下載]# cd nginx-1.20.1/
[root@hos nginx-1.20.1]# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-openssl=/usr/local/openssl-1.1.0k
[root@host nginx-1.20.1]# make
拷貝nginx-1.20.1objs目錄下面nginx的二進制檔案到服務器原有的nginx目錄下
[root@host objs]# cp nginx /usr/local/nginx/sbin/
cp:是否覆寫"/usr/local/nginx/sbin/nginx"? yes
[root@host objs]# cd /usr/local/nginx/sbin/
[root@host sbin]# ll
總用量 24264
-rwxr-xr-x. 1 root root 7769880 7月 26 19:39 nginx
-rwxr-xr-x. 1 root root 6569816 6月 23 15:58 nginx-1.18
-rwxr-xr-x. 1 root root 6649368 7月 26 19:10 nginx-1.20
-rwxr-xr-x. 1 root root 3851680 6月 23 15:55 nginx.old
最終的結果,最后你也可以在/usr/local/nginx/sbin下執行./nginx -s reload來畫上一完美的計劃
[root@host sbin]# ./nginx -V
nginx version: nginx/1.20.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
built with OpenSSL 1.1.0k 28 May 2019
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-openssl=/usr/local/openssl
其實你會發現這這個問題和nginx安全漏洞(CVE-2021-23017)修復步驟類似,可綜合這兩篇進行步驟的簡化,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/290573.html
標籤:其他
上一篇:vulhub-httpd-cve-2017-15715
下一篇:內網滲透系列:隱匿攻擊方法
