]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: invalid MD5 auth_key?
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 26 Nov 2009 12:23:07 +0000 (12:23 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 01:14:20 +0000 (01:14 +0000)
commitdaa4981e60c3130222a38d6ec3e653f87bc64612
treee810d37755d82f0e6e2bf880ade6d29722c2abc8
parent1a0aa36f2589b19bcefdf3601a6e874040bf5524
ospfd: invalid MD5 auth_key?

This looks fishy in ospf_make_md5_digest()
if (list_isempty (OSPF_IF_PARAM (oi, auth_crypt)))
    auth_key = (const u_int8_t *) "";
...
MD5Update(&ctx, auth_key, OSPF_AUTH_MD5_SIZE);
auth_key points to a "" string of len 1 which is a lot
smaller that OSPF_AUTH_MD5_SIZE. Is this intentional to
get some random data or just a plain bug?

Anyone using MD5 should have a closer look and decide
what to do.
Acked-by: Feng Lu <lu.feng@6wind.com>
(cherry picked from commit ea2a598411cc7bd20456849e56bbc9e93c9916e7)
ospfd/ospf_packet.c