FastCGI Pentesting
FastCGI is a binary protocol for interfacing interactive programs with a web server. It uses 9000 port by default.
Investigation
If the PHP-FPM (FastCGI Process Manager) is running on the target system, we might be able to execute arbitrary command.
Remote Code Execution
Reference: https://book.hacktricks.xyz/network-services-pentesting/9000-pentesting-fastcgi
We need to create an arbitrary PHP file somewhere. For instance,
Then create a shell script named "exploit.sh".
Now execute the shell script. Of course we have to start a listener in local machine for reverse shell before executing the following command.
Last updated