ChildProcess
ChildProcess copied to clipboard
Fix BatBadBut vulnerability
https://flatt.tech/research/posts/batbadbut-you-cant-securely-execute-commands-on-windows/
Running cmd.exe should also be affected
As the first step, let's just refuse to execute *.bat/*.cmd
Mitigation for 0.16.0:
- Refuse to execute
*.bat/*.cmd - Refuse to execute
cmd.exewithoutChildProcessFlags.DisableArgumentQuoting
For these cases throw ChildProcessStartingBlockedException