zeek/scripts/policy/protocols
Jon Siwek c911d03c30 Adjust modbus register array parsing.
For modbus message types that include variable amount of register values
(uint16[]), setting a &length attribute without an explicit array size
could trigger a parsing assertion since it allows for the "element" data
pointer to travel past the "end of data" (e.g. when &length is odd).
This is changed to now give both an array size and &length to earlier
terminate the parsing of elements before the assert is checked and
so a single out-of-bound check can be done for the entire array
(leaving off &length causes an out-of-bound check for each element).

Added another parameter to modbus events that carry register arrays to
the script-layer which indicates the associated byte count from the
message (allowing for invalid values to be detected):

    modbus_read_holding_registers_response
    modbus_read_input_registers_response
    modbus_write_multiple_registers_request
    modbus_read_write_multiple_registers_request
    modbus_read_write_multiple_registers_response
    modbus_read_fifo_queue_response
2012-11-12 16:40:16 -06:00
..
conn Add Conn and DNS protocol script documentation. (fixes #731) 2012-01-09 14:23:24 -06:00
dns Small script refinements and documentation updates. 2011-10-21 13:58:58 -04:00
ftp Merge remote-tracking branch 'origin/master' into topic/bernhard/software 2012-01-20 12:51:58 -08:00
http Merge branch 'topic/robin/intel-framework-merge' 2012-11-05 16:00:38 -08:00
modbus Adjust modbus register array parsing. 2012-11-12 16:40:16 -06:00
smtp Adding an identifier to the SMTP blocklist notices for duplicate suppression. 2012-08-23 13:55:04 -04:00
ssh Merge remote-tracking branch 'origin/master' into topic/bernhard/software 2012-01-20 12:51:58 -08:00
ssl Finished SSL & syslog autodocs. 2012-01-10 00:56:12 -05:00