hep-wireshark icon indicating copy to clipboard operation
hep-wireshark copied to clipboard

Lack of boundary checking

Open sobomax opened this issue 6 years ago • 4 comments

Hi, we've tried to use this dissector to debug new implementation of the HEPv3 client, but it seems to be lacking any even basic boundary/sanity checks, causing wireshark to hang solid while dissecting small capture (attached). This severely limits its usefulness for such use cases as well could lead to problems while processing large number of real-world packets, as wire errors do happen in real life.

cap.zip

sobomax avatar Jun 06 '18 20:06 sobomax

Hey @sobomax what version of Wireshark are you using?

lmangani avatar Jun 06 '18 20:06 lmangani

Latest for windows I think. screenshot749

sobomax avatar Jun 06 '18 20:06 sobomax

P.S. I looked at the code briefly and I don't see any validation of the length field(s). Those values just taken verbatim, never compared to the actual packet size. Which is likely to be the cause.

sobomax avatar Jun 06 '18 20:06 sobomax

I agree and that's an excellent observation, we'll do our best to sort this out, just wanted to make sure it was not platform specific - so far personally had no such issues and used it pretty intensively on Linux.

lmangani avatar Jun 06 '18 21:06 lmangani