Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
My website home page php file was changed
Last night, I decided to close down my website after 3 months, due to lack of interesting contents and low security. Today, when I woke up, I realized that someone else read my mind and did the job for me.
What happened was that he changed index.php on my host to some static html with some funny messages on it. I knew that my website was not safe against XSS attacks, so my first guess was that they use XSS attacks. However, I don't have any input form on my home page.
I went to cPanel and checked the modification date of index.php and in my wonder it was for a few days ago when I updated it by myself. Note that, The permission of file was 644.
Since the hacker left his email and his nickname, after googling I found a website, where it showed all attacks by him. Then all of a sudden, I noticed that my weblog under a subdomain of my website was hacked, too.
My weblog is a wordpress one. After downloading everything on my computer and doing a grep, I found that wp-config.php was changed to the same static page. Also, the modification date was for Dec 11, 2009 when I installed the weblog.
I'm very confused now. I can't even figure out what the problem is. Since it happened to both my code and wordpress, there could be something wrong with either PHP or my host.
Any idea what just happened to me?
PS. I'm going to totally forget about PHP and develop my new application on Django.
Interesting, who was the host? What version of Apache, php, etc. Was the host running this is always a great chance to see if anything can be learned, at minimum about a particular hosts security, lol.