Please Help!!! My contact form was exploited. What did I do wrong?
I got the PHP code from W3C Tutorials.
Subject:
Message:
"; } ?>
Please Help!!! My contact form was exploited. What did I do wrong?
I got the PHP code from W3C Tutorials.
What happened? I don’t know what you mean by exploited.
Hi Matt. I am not very good with PHP. I used this PHP Form Code, to create a module, for a Joomla Website. As soon as I installed this module, into the Joomla Website, I was hacked within 30min . . . . As far as I know, the contact form was exploited, or injected.
The Hacker was able to edit all the files stored on the server. He added his code, to all of my .php files , in the header and footer of the website. As far as I know, this was called an Evil Exploit.
I just wanted to know, what I did wrong. Why was the PHP contact form not safe? and Why was it so easy to hack?
Hope you can help.
Thanks
I don’t believe this form is the cause. Do you happen to have wordpress installed anywhere on the same server?
Hi Matt.
Yes, I had WordPress on the same server. How safe is the php form above? Is it safe enough to use? Can I do something to make it more secure ?. . .
The form is fine. Worst case scenario you might get a ton of emails from bots without a captcha.
Wordpress is most likely what was exploited. I have seen it exploited exactly like that on my own servers before.
Hi Matt. Thanks for your feedback. I guess it was the wordpress site. Thanks