cmdfun icon indicating copy to clipboard operation
cmdfun copied to clipboard

Fix code injection in user input?

Open snystrom opened this issue 4 years ago • 0 comments

example: shellCut("hello_world", f = 1, d = "_ && echo test")

are there any instances where shell programs use what I call illegal characters for functionality following flags? Could "sanitizing" actually cause failures on the shell? I think they could...

if not, user input can be sanitized by adding escapes?

ex. gsub("&", "\&", "_ && echo test")

snystrom avatar Mar 26 '20 22:03 snystrom