mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.4] add CodeQL suppresion for NativeCommandProcessor (#26174)
This commit is contained in:
@@ -1469,6 +1469,7 @@ namespace System.Management.Automation
|
||||
{
|
||||
using (ParameterBinderBase.bindingTracer.TraceScope("BIND argument [{0}]", NativeParameterBinderController.Arguments))
|
||||
{
|
||||
// codeql[cs/microsoft/command-line-injection ] - This is intended PowerShell behavior as NativeParameterBinderController.Arguments is what the native parameter binder generates based on the user input when invoking the command and cannot be injected externally.
|
||||
startInfo.Arguments = NativeParameterBinderController.Arguments;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user