May 04
I help maintain a website which uses Mambo a content management system written in PHP. The website ran smoothly for 3 years until it got hacked a few times a few weeks ago. Here are some of the faults which allowed the site to be hacked:
- Some of the files had writeable permission for ‘others’.
- The owner of the file was the same owner as what Apache was running on.
- The group permission of the file was writable and was the same group as what Apache was running on.
- Some of the third party extensions for Mambo had vunerabilities which excluded the following line in their php files:
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.');
The first 3 vunerabilites only allowed defacing of the website, whereas the last one caused major problems because the hacker found it’s way into the database.
Related posts: