smb1cli_inbuf_parse_chain fails with SMBntcreateX extended response
gordon.w.ross at gmail.com
Thu Mar 31 16:40:26 UTC 2016
On Thu, Mar 31, 2016 at 12:23 PM, Gordon Ross <gordon.w.ross at gmail.com> wrote:
> Has anyone tried smbtorture lately with SMB1 NT create and the
> "extended response" format? [MS-SMB] Sec. 22.214.171.124.2
> Windows-based SMB servers send 50 (0x32) words in the extended
> response although * they set the WordCount field to 0x2A.
> This trips up smb1cli_inbuf_parse_chain, which ends up using the
> "Maximal Access Rights" field as the byte count, and then decides
> the response is invalid because the message is not that long.
> I've attached a sample response packet.
> Here's an (admittedly hack-ish) way to deal with that.
> [patch attached]
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 356 bytes
Desc: not available
More information about the samba-technical