当前位置:网站首页>Ssh server CBC encryption mode vulnerability (cve-2008-5161)
Ssh server CBC encryption mode vulnerability (cve-2008-5161)
2022-07-25 22:54:00 【Qiang Junen】
One 、 Vulnerability description
ssh The server is configured to support password block linking (cbc) encryption . This may allow attackers to recover plaintext messages from ciphertext . Be careful , This plug-in only checks ssh Server Options , Do not check vulnerable software versions .
CBC(Cipher-block chaining, Password group link mode ), It has dependencies , The encryption process is serial , Can't be parallelized , But decryption can be parallelized , Because a ciphertext will affect the plaintext and the latter plaintext , Will not affect other plaintext . The message must be an integral multiple of the block size , Not enough to fill . But we can't directly see the rule of plaintext information block from ciphertext , So the security is good . Another reason is that ciphertext blocks depend on all information blocks , When encrypting , If there is a message change in the plaintext block, it will affect all ciphertext blocks .
Generally, after our reinforcement ,Linux Environment has generally been adopted AES This algorithm encrypts ,AES There are five encryption modes (CBC、ECB、CTR、OCF、CFB),centos7.x The system starts sshd After service , The system defaults to CBC Confidential mode of , In the production environment with high safety requirements , Generally, it is not allowed CBC Encrypted , We need to CBC The encryption method of is modified to CTR perhaps GCM.
Risk level : low
Repair suggestions : Ban CBC Mode password encryption , And enable the CTR or GCM Password mode encryption .
Two 、 Treatment process
1) edit ssh The configuration file
man /etc/ssh/sshd_config // Check the currently supported encryption algorithms / Pattern , Multiple encryption algorithms are separated by commas
ssh -Q cipher // View your current ssh The algorithm used
vim /etc/ssh/sshd_config
#Ciphers and keying Comment on the line
Ciphers aes128-ctr,aes192-ctr,aes256-ctr // Encryption mode configuration uses ctr
# You can also specify ,Ciphers Appoint ssh Enabled encryption algorithm . When Ciphers The value of + At the beginning of the character , The specified encryption algorithm will be appended to the default set , It does not affect other algorithms in the default set . When Ciphers The value of ‘-’ At the beginning of the character , The specified encryption algorithm will be removed from the default set , It does not affect other items in the default set .
Ciphers -aes128-cbc,aes192-cbc,aec256-cbc,3des-cbc
Ciphers +aes128-ctr,aes192-ctr,aes256-ctr
Restart the service after completion :
systemctl stop sshd.service
systemctl start sshd.service
2) verification
nmap --script “ssh2*” The goal is ip // There was no CBC,diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1 Wait for the weak encryption algorithm to succeed
边栏推荐
猜你喜欢

Binder原理

Qt中文编程遇C2001错误,提示“常量中有换行符”

贴片微型滚珠振动开关的结构原理

CUDA environment construction

MySQL data type

【自然语言处理】【向量表示】AugSBERT:改善用于成对句子评分任务的Bi-Encoders的数据增强方法

Network Security Learning (XII) OSI and TCP
![[training Day11] Nescafe [greed]](/img/4f/c9c7ae8a7b09ee58dd0fdbc55baf72.png)
[training Day11] Nescafe [greed]

Two methods of printing strings in reverse order in C language

1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮
随机推荐
[training Day12] x equation [high precision] [mathematics]
码蹄集 精准弹幕
Summary 1 - deep learning - basic knowledge learning
【论文笔记】基于在线预测和规划的机器人动态跟踪抓取方法
CSV intro
Deploy flash based websites using Google cloud
[training Day11] Calc [mathematics]
Simple application of partial labels and selectors
[training day15] good name [hash]
MatrixCube揭秘102——300行实现的完整分布式存储系统MatrixKV
Session and cookie, token and storage
[training Day12] min ratio [DFS] [minimum spanning tree]
如何获取广告服务流量变现数据,助力广告效果分析?
Network Security Learning (XIV) IP protocol
ribbon 执行逻辑源码解析
Vs2017 compilation encountered the error HResult e returned by the call of COM component_ FAIL
TFrecord写入与读取
Madness. Smbms (supermarket order management system)
Qtreewidget control of QT
We media people must have four material websites, and don't worry about finding materials anymore