netsec-ethz / rains

RAINS (Another Internet Naming Service)
Apache License 2.0
9 stars 11 forks source link

Stop processing messages larger than max size #110

Open fehlmach opened 5 years ago

fehlmach commented 5 years ago

The cbor library should keep track of how many bytes it has already processed of a given message and if it is larger than the maximum message size, abort parsing and return an error. Otherwise denial of service is trivial against a RAINS server/client