Skip to content

Bug: Failure to verify incoming message in unencrypted SMB2 connection #133

@naccib

Description

@naccib

Describe the bug
We're successfully connecting to an unencrypted SMB2 server hosted by a third party. We can create files successfully, however watching a directory will:

  1. Timeout when no event happens in 10 seconds. This I think is intended behavior as the default timeout is 10 seconds.
  2. Result in a "Failed to verify incoming message" TransformError when an event happens

I've patched it locally with an extremely simplistic and insecure approach. In verify_plain_incoming I simply skip verification for unencrypted messages by setting form.signed to true and returning an Ok(()). This fixes the issue.

I'm sure you have a good reasons for the verification, but is it possible that this is not behaving correctly as it stands?

To Reproduce
I've copied the code from the notify test from this repository and made minimal modifications to run on my already-setup tokio executor.

Desktop (please complete the following information):

  • OS, architecture & version: [e.g. macOS 15.2, arm64]: Ubuntu 22 LTS, x86
  • Version [e.g. 0.8.1]: 0.9.0

Additional context
The host is definitely an unencrypted SMB2 share (can't tell which subversion specifically).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions