GuiltySpark
New Pleskian
Hi, I was recently hacked and looking for some help.
I allow users to upload images to my site and use a JS plugin that calls a PHP script to upload the image. I stupidly didn't filter the types of files that could be uploaded, so someone uploaded and then ran a php file that accepted input and executed a shell_exec().
Before I plugged the hole I used the script and did a "whoami" and found it was the Plesk system user.
I had just assumed the default Apache user wouldn't be the Plesk system user?
Is there something I have done wrong in my setup or am I misunderstanding it?
Thanks in advance.
I allow users to upload images to my site and use a JS plugin that calls a PHP script to upload the image. I stupidly didn't filter the types of files that could be uploaded, so someone uploaded and then ran a php file that accepted input and executed a shell_exec().
Before I plugged the hole I used the script and did a "whoami" and found it was the Plesk system user.
I had just assumed the default Apache user wouldn't be the Plesk system user?
Is there something I have done wrong in my setup or am I misunderstanding it?
Thanks in advance.