mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update UnsafeCreateProcessCall.ql
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @name NULL application name with an unquoted path in call to CreateProcess
|
||||
* @description Calling a function of the CreatePorcess* family of functions, which may result in a security vulnerability if the path contains spaces.
|
||||
* @description Calling a function of the CreateProcess* family of functions, which may result in a security vulnerability if the path contains spaces.
|
||||
* @id cpp/unsafe-create-process-call
|
||||
* @kind problem
|
||||
* @problem.severity error
|
||||
@@ -132,4 +132,4 @@ where
|
||||
and quotedConfig.hasFlow(DataFlow2::exprNode(source), DataFlow2::exprNode(cmd))
|
||||
and msg2 = " and with an unquoted lpCommandLine (" + cmd + ") may result in a security vulnerability if the path contains spaces."
|
||||
)
|
||||
select call, msg1 + " " + msg2
|
||||
select call, msg1 + " " + msg2
|
||||
|
||||
Reference in New Issue
Block a user