Joomla Upgrade Common Mistakes

Joomla Upgrade Common Mistakes

Most of the times, the client asks for upgrade or the companies purpose for Joomla upgrade if the site is hacked very often and/or is found to be infected with malicious code.

The most common mistake the developers make is to take the backup of current website and process the upgrade steps at the same. This process does upgrade the necessary extensions or core files, however, the malicious code files saved in the Joomla core folder(s) remain as it is and hence the site is again hacked.

Possible Solutions:-

  1. First, scan for malicious code in the current backup
  2. Process upgrade on the same
  3. Install a fresh instance of the Joomla’s version to be upgraded to
  4. Install all the required extensions (compatible with Joomla version) one by one
  5. If the client wants to use the old template, then first clean the template code file for any malicious code
  6. Migrate the data from the old database to the new database

The below points are useful for both “upgraded” Joomla website as well as “new” Joomla website from security point of view:-

  1. The file permissions should be 0644 and folders should be 755. The “configuration.php” file permission should be 0444.
  2. The default “admin” user should be deleted and a new “super” admin user should be created.
  3. Avoid using “admin” as the username for “super administrator”.
  4. 4. Modify the administrator URL.
  5. The site FORMS should have captcha / access token for non-registered users.
  6. Move “configuration.php” file outside the web root folder.
  7. In the UPLOAD field, limit the executable file types. Server side validations should also be placed in .addition to Javascript validations.
  8. Place .Htaccess in an image or media folders so that any user is not able to upload the executable in these folders.
  9. Disable PHP “system” and “global” commands (through php.ini.)
  10. Removed unused/compressed code from the files/folders. Also, remove any unused extensions or testing data.
  11. SEF URL’s should be enabled.
  12. Take care of SQL injections.
  13. Verify that index.html file should be in folders or use indexing to avoid direct access.
  14. Use two step authentication. It is one of the Joomla 3.2 improvements which can and will improve security.
  15. Set up regular backup and recovery process.
  16. Update to the latest stable version of Joomla and any installed third-party extensions.
  17. Notify your host and work with them to clean up the site.

Latest Blogs