Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Rep:
My website home page php file was changed
Hello,
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.
Lots of things possible, RFI being the first thing that comes to mind.
Without more clues it'll be impossible to say though.
Found any interesting loglines?
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
I just looked at the websites that were hacked by this guy. After pinging a few of them, I realized they all have the same IP address, which was the same as my IP address.
Called the tech support of my host, and they confirmed the issue with their servers configurations.
I know my code isn't that secure, but this attack was way too crazy for my code.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.