mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/timw/ieee-80211-length-check'
* origin/topic/timw/ieee-80211-length-check: Add additional length check to IEEE 802.11 analyzer
This commit is contained in:
commit
bc82b657c4
3 changed files with 11 additions and 1 deletions
4
CHANGES
4
CHANGES
|
@ -1,3 +1,7 @@
|
|||
6.0.0-dev.487 | 2023-05-03 09:30:55 -0700
|
||||
|
||||
* Add additional length check to IEEE 802.11 analyzer (Tim Wojtulewicz, Corelight)
|
||||
|
||||
6.0.0-dev.484 | 2023-05-03 14:18:03 +0100
|
||||
|
||||
* SSL: do not try to disable failed analyzer (Johanna Amann, Corelight)
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
6.0.0-dev.484
|
||||
6.0.0-dev.487
|
||||
|
|
|
@ -31,6 +31,12 @@ bool IEEE802_11Analyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet*
|
|||
if ( (data[1] & 0x03) == 0x03 )
|
||||
len_80211 += packet->L2_ADDR_LEN;
|
||||
|
||||
if ( len_80211 >= len )
|
||||
{
|
||||
Weird("truncated_802_11_header", packet);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Look for the QoS indicator bit.
|
||||
if ( (fc_80211 >> 4) & 0x08 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue