mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Merge branch 'ssh_kex' of https://github.com/MaxKellermann/zeek
* 'ssh_kex' of https://github.com/MaxKellermann/zeek: analyzer/protocol/ssh: fix crash vulnerability after duplicate KEX packet
This commit is contained in:
commit
05d7f26b85
1 changed files with 1 additions and 0 deletions
|
@ -398,6 +398,7 @@ refine connection SSH_Conn += {
|
||||||
{
|
{
|
||||||
if ( *(client_list->Lookup(i)->AsStringVal()->AsString()) == *(server_list->Lookup(j)->AsStringVal()->AsString()) )
|
if ( *(client_list->Lookup(i)->AsStringVal()->AsString()) == *(server_list->Lookup(j)->AsStringVal()->AsString()) )
|
||||||
{
|
{
|
||||||
|
kex_algorithm_.free();
|
||||||
kex_algorithm_.init((const uint8 *) client_list->Lookup(i)->AsStringVal()->Bytes(),
|
kex_algorithm_.init((const uint8 *) client_list->Lookup(i)->AsStringVal()->Bytes(),
|
||||||
client_list->Lookup(i)->AsStringVal()->Len());
|
client_list->Lookup(i)->AsStringVal()->Len());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue