Is there a definitive resource for Securing a MODx Site? I’m having a cascading issue the reports of malware from my users, and would like to make sure the site is locked down.
PM me to find out how you can get a FREE ipad 2!
-
☆ A M B ☆
- 24,524 Posts
I have a few things I prefer, and a few things I always do.
1. Get hosting that provides suexec. The user gets switched from the Apache user to the owner of the file being run, so there’s no need for world-writable directories and files.
2. Decent passwords.
3. The two index.php files and the config.inc.php file get set to read-only.
4. The first app I install is the BkupMODx module, and I immediately make a backup to keep as a last-ditch fall back in case the site gets hacked. Then I backup frequently; daily if busy, once a week or once a month as management activity warrants.
5. When installing third-party apps (snippets, modules, plugins), make sure the file provided for copy/pasting into the Manager when creating the element is not a .php file. Rename it or remove it.
6. Spend time studying up on how to make my own code as bullet-proof as possible.
Thanks Susan (you were on that list!).
Although not all necessarily to do with MODx directly, does anybody have thoughts on:
- Suppressing PHP errors
- Monitoring raw access logs; what do you do when you notice weird requests/404s for suspicious resources?
- Moving core outside of public_html or similar (I think I’ve read that this is possible in Revo)
- Moving DB access details outside of public_html, and using ’require_once’ in config.inc.php
Has anyone had experience of either their computers or clients’ computers being compromised by keg loggers etc? I guess all you can do there is have the necessary paperwork in place that ensures they understand the risk, especially if they don’t run appropriate anti-virus etc.
-
☆ A M B ☆
- 24,524 Posts
No matter how hard you try, if you’re on any kind of shared hosting your weakest security link will always be the host itself. Look at the latest rash of compromised sites on GoDaddy and a few other of the bigger hosts. If somebody gets root access to an entire server, they’ve got full super-admin access to anywhere up to 400 or more sites to play with. So your best final defense line is a solid backup policy.