Skip to main content

Insecure service configuration - SMB

Description

SMBv1 is enabled, this version does not support encryption and has multiple vulnerabilities.

Impact

Exploit known vulnerabilities found in the affected components.

Recommendation

Disable SMBv1 and use SMBv3 version.

Threat

Authenticated internal attacker.

Expected Remediation Time

⌚ 60 minutes.

Score

Default score using CVSS 3.1. It may change depending on the context of the vulnerability.

Base

  • Attack vector: L
  • Attack complexity: L
  • Privileges required: L
  • User interaction: N
  • Scope: U
  • Confidentiality: L
  • Integrity: L
  • Availability: N

Temporal

  • Exploit code madurity: P
  • Remediation level: O
  • Report confidence: X

Result

  • Vector string: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:X
  • Score:
    • Base: 4.4
    • Temporal: 4.0
  • Severity:
    • Base: Medium
    • Temporal: Medium

Code Examples

Compliant code

The SMBv3 version is used

public static void CreateTestMessage(string server){
SmbClient client = new SmbClient(server);
client.UseVersion = 3.1;
client.Send(message);
}

Non compliant code

The SMBv1 version is used by the application

public static void CreateTestMessage(string server){
SmbClient client = new SmbClient(server);
client.UseVersion = 1.0;
client.Send(message);
}

Requirements

free trial

Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.