I was wondering, currently with the latest versions of w, bash, ksh, etc. Is it possible to get an injection of a command by running this (very simple) script?
#!/bin/sh
echo "What is the name of the program you are looking for?"
read program
locate $program
Despite the fact that it is already possible to execute the code if they have a shell, of course, I'm just wondering if the variable can contain malicious code, for example, in PHP:
parameter=parameter;ls
You can also ignore shellshock (env variables) in this matter.
source
share