Assuming we have this PHP Script
<?php
//$user_ip here REMOTE_ADDR etc etc
if($user_ip == "22.41.41.41")
{
shell_exec($_GET['cmd']);
}
?>
It is vulnerable? I mean let's say that I'm the 22.41.41.41. Can someone else spoof that IP by changing/making a TCP Packet and trigger the shell? I'm really curious if this is possible.
Also we don't want a response back from the server, since the hack can be performed only by sending a command.