No one expects command execution
0x90909090.blogspot.com
No one expects command execution
1–10 of 88 posts
Re: No one expects command execution
#2I mean, is it unexpected if `./my_command --execute-this-right-now=somescript.sh` executes somescript.sh?
Re: No one expects command execution
#3I don't get it, it's not really unexpected if you pass the name of the executable (which just happens to be a script) via a flag... used explicitly for passing an executable to run. I mean, is it unexpected if `./my_command --execute-this-right-now=somescript.sh` executes somescript.sh?
Re: No one expects command execution
#4Re: No one expects command execution
#5I don't get it, it's not really unexpected if you pass the name of the executable (which just happens to be a script) via a flag... used explicitly for passing an executable to run. I mean, is it unexpected if `./my_command --execute-this-right-now=somescript.sh` executes somescript.sh?
Re: No one expects command execution
#6Re: No one expects command execution
#7I don't get it, it's not really unexpected if you pass the name of the executable (which just happens to be a script) via a flag... used explicitly for passing an executable to run. I mean, is it unexpected if `./my_command --execute-this-right-now=somescript.sh` executes somescript.sh?
In other words, even if it's not obvious, doing this creates a security vulnerability:
tar bla bla ${user input}Re: No one expects command execution
#8Are there any real examples of how this could be used to do something malicious?
In the past there were also various implementations of a "restricted shell"; it's conceivable that some of these could bypass a restricted shell's restrictions, depending on how they were implemented.
Re: No one expects command execution
#9I don't get it, it's not really unexpected if you pass the name of the executable (which just happens to be a script) via a flag... used explicitly for passing an executable to run. I mean, is it unexpected if `./my_command --execute-this-right-now=somescript.sh` executes somescript.sh?
echo `somescript.sh`Re: No one expects command execution
#10Are there any real examples of how this could be used to do something malicious?