Actions
Bug #5783
closedsmb: wrong endian conversion when parse NTLM Negotiate Flags
Affected Versions:
Effort:
Difficulty:
Label:
Description
NTLM Negotiate Flags value in follow image is 0xe2888215, function parse_ntlm_auth_nego_flags return version_set_flag = 0 on this, which is wrong. This bug can cause NTLM Auth Version be ignored.
version_set_flag is at offset 25 by bits:
>>> 0xe2888215 >> 6 &0b1
0
>>> 0xe2888215 >> 25 &0b1
1
>>> 0xe2888215 >> 6 &0b1
I would like to make a pr for this bug, as the Developers Guide said, maybe i need to have the "developer" role?
Bug location: https://github.com/OISF/suricata/blob/55c4834e4e9b14a441b735f84d8d35b4eb151702/rust/src/smb/ntlmssp_records.rs#L71-L73
NegotiateFlags document: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/99d90ff4-957f-4c8a-80e4-5bfe5a9a9832
Files
Actions