Skip to content

Commit a0dbf93

Browse files
chanel-yMathiasVP
andauthored
Update powershell/ql/src/queries/security/cwe-319/UnsafeSMBSettings.ql
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 482fda7 commit a0dbf93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powershell/ql/src/queries/security/cwe-319/UnsafeSMBSettings.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ abstract class SMBConfiguration extends CmdCall {
2020
Expr getMisconfiguredSmb2DialectMin() {
2121
exists(Expr dialectMin |
2222
dialectMin = this.getNamedArgument("smb2dialectmin") and
23-
dialectMin.getValue().toString().toLowerCase() in ["none", "smb202", "smb210"] and
23+
dialectMin.getValue().stringMatches(["none", "smb202", "smb210"]) and
2424
result = dialectMin
2525
)
2626
}

0 commit comments

Comments
 (0)