]> git.ipfire.org Git - thirdparty/chrony.git/commit
Add padding to cmdmon requests to prevent amplification attack
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 24 Jan 2014 12:55:15 +0000 (13:55 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 30 Jan 2014 14:59:45 +0000 (15:59 +0100)
commitdba458d50c8df52d44c7b90ed6bf81be7413b955
tree5571d63a06fcdaeb6457bc8d9d6d95b59ac34093
parent3e23430926342994ef85e181f5b8c71b2c4a9401
Add padding to cmdmon requests to prevent amplification attack

To prevent an attacker using chronyd in an amplification attack, change
the protocol to include padding in request packets so that the largest
possible reply is not larger than the request. Request packets that
don't include this padding are ignored as invalid.

This is an incompatible change in the protocol. Clients from chrony
1.27, 1.28 and 1.29 will receive NULL reply with STT_BADPKTVERSION and
print "Protocol version mismatch". Clients from 1.26 and older will not
receive a reply as it would be larger than the request if it was padded
to be compatible with their protocol.
candm.h
client.c
cmdmon.c
pktlength.c
pktlength.h