buf-lint-action icon indicating copy to clipboard operation
buf-lint-action copied to clipboard

Command injection due to use of child.execSync with unsanitized user input

Open djameson42 opened this issue 3 years ago • 0 comments

This action seems vulnerable to command injection due to the use of child.execSync on unsanitized user input. See here for documentation which says

"Never pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution."

Is there any plans to change this? Or is it by design to execute user input inside a shell in this way?

This also affects other bufbuild/buf-* actions

djameson42 avatar Oct 19 '22 23:10 djameson42