mirror of
https://github.com/PowerShell/PowerShell
synced 2025-10-06 00:22:59 +02:00
Add CodeQL suppresion for NativeCommandProcessor (#26145)
This commit is contained in:
@@ -1677,6 +1677,7 @@ namespace System.Management.Automation
|
|||||||
{
|
{
|
||||||
using (ParameterBinderBase.bindingTracer.TraceScope("BIND argument [{0}]", NativeParameterBinderController.Arguments))
|
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;
|
startInfo.Arguments = NativeParameterBinderController.Arguments;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user