The Joomla! ® Community Magazine

Simple Security Guide, Part 1

Written by Ofer Cohen | Sunday, 01 July 2012 00:00 | Published in 2012 July
Level of Difficulty:Intermediate One of the most depressing things in the internet world is when you discover your website has been hacked. The uncertainty and mistrust can terrify administrators and worse - your customers. For that purpose we created this guide. It aims to provide simple rules for protecting your Joomla! websites.
Simple Security Guide, Part 1 Copyright (c) 123RF Stock Photos

This guide is the first of a series of security guides, and it’s written with blood, sweat and tears. The series is translated from Hebrew to help advanced users and especially beginners in the Joomla! world protect their websites from the greatest web fear - your site being hacked. This series was created after analyzing hacked websites in Israel, and how the hackers did it.

The series starts with the easy steps and goes on to the hard rules in the next installments. The hard rules are sometimes difficult to implement, but they are worth the payoff (and pain).

Tip: Before deploying a website, it is recommended to go over these security guidelines to avoid releasing an unsecured website.

Backup

The base assumption is that every website can be hacked. Therefore, the most important thing is to take care to backup frequently. I recommend  the backup extension Akeeba Backup, which will backup your website with one-click. You must backup your website as often as your content is updated. This means if you add content on a daily basis you need to backup daily!

Lastest version of Joomla

It doesn't matter if you’re an experienced website builder, or if you use Joomla website as a hobby, the first thing you should do is take care to update Joomla to the latest version. Since version 1.6 you now have an icon in the admin control panel that lets you know the update release. Most of the releases are security releases and it’s critical to update ASAP. Since 1.6 the update and upgrade can be done with one-click. So don’t hesitate to do that.

Joomla back-end panel

The admin user

One of the most obvious things for hacker to try to do is get into the admin panel of Joomla. Therefore, you should prevent this by few simple rules. First, don’t use the default super admin user name (admin, administrator or root). Choose another name!

Don’t use the default admin user

The default admin user is well known and has a default id (42 for 1.6+ and 62 for 1.5). Hackers usually try to hack the default user of Joomla. When you install Joomla, just create new user, make it admin (with another name), and delete the old user.

Update & Disclaimer: since 2.5.5 the first user id randomizes on installation, so if you are using a fresh installation you should not need to bother with this issue. (BTW this feature was contributed by the author :)).

Block the admin panel

Every Joomla user knows how to access to the back-end easily. Hackers know this also, by surfing to yoursite.com/administrator. To avoid unwanted users to access your back-end login, there is an extension that prevents this access.

Disclaimer: The author of this article created a GPL non-commercial extension that does this trick - JLSecure My Site.

Extensions

Joomla extensions are its added value, and the greatest advantage of Joomla over any other CMS. The extensions range is wide (more than 9000) and for any purpose there are at least 3 solutions.

But, and here comes a big but, you should watch your step. Some extensions are vulnerable. There is an organized list of vulnerable extensions, their exploits, and if there are fixes for those. It’s recommended to check the list before installing an unfamiliar extension.

Unnecessary extensions

Joomla is a very advanced content management system. On default installation, it comes with a lot of extensions. Some of them are useful (like content & users), but some others are not used on most websites. For example, components like banners, contacts, newfeeds, etc, are not a must for many websites. Even if there are no existing links in your site for those components, there are existing links with the component basic link, for example, try this one: index.php?option=com_search.

You can disable unnecessary extensions that your site isn’t using. You can do it from the admin panel->extensions menu->manage extensions->manage. Just disable the components by toggling the Enable icon. It is recommended not to remove extensions, in case you might want to use them in the future (unless you need to free up space in your hosting).

Finito

That's all for the first part, which is targeted for beginners. The next part will be for medium-advanced users.

Hope to see you soon in the next magazine issue release!

Read 16527 times
Tagged under Administrators

Leave a comment

Make sure you enter the (*) required information where indicated.

[b] [i] [u] [s] [url] [quote] [code] [img]   

Comments (10)

  • avatar
    • 0
    • 0
    Mandville

    I would make a comment on this paragraph,
    "You can disable unnecessary extensions that your site isn’t using." It is preferred to remove them, in case you forget about them, and dont update them to secure versions.


    "It is recommended not to remove extensions, in case you might want to use them in the future " for the reason stated above, if you need it again, there is no issue in uploading the latest secure version.
    Obviously core extensions should not be removed.

    On a smaller note, please correct the spelling of *translated from Heberew*

  • avatar
    • 1
    • 0
    Sven Schultschik

    If the disabling of com_content would work better it would be more easy ;)

    Why should I install JLSecureMySite? Simply creating a htaccess file for administration panel is the best way to prevent such access. I would say an htaccess file is more secure than an additional extension, which could have bugs in it and get hacked ...

  • avatar
    • 0
    • 0
    joomlauser

    enter your message here...

    Sven Schultschik wrote:
    If the disabling of com_content would work better it would be more easy ;)

    Why should I install JLSecureMySite? Simply creating a htaccess file for administration panel is the best way to prevent such access. I would say an htaccess file is more secure than an additional extension, which could have bugs in it and get hacked ...

    not every one know how to config that part , can you provide tut or resource link??

  • avatar
    • 0
    • 1
    Sven Schultschik

    enter your message here...

    joomlauser wrote:
    enter your message here...
    Sven Schultschik wrote:
    If the disabling of com_content would work better it would be more easy ;)

    Why should I install JLSecureMySite? Simply creating a htaccess file for administration panel is the best way to prevent such access. I would say an htaccess file is more secure than an additional extension, which could have bugs in it and get hacked ...


    not every one know how to config that part , can you provide tut or resource link??

    Well the most hostings provide a backend tool for theire costumers to do that. Or you can use AdminTools from Akeeba. There are enought tools out there to do without coding it.

    Another point would be to include such a tool directly inside the Joomla! admin panel ...

  • avatar
    • 0
    • 0
    webdjam

    Thank you for the guide, very useful for beginners , when the are starting whit Joomla , i also recommend the Admin Tool module ,to secure the admin area.

  • avatar
    • 1
    • 0
    Justin Throngard

    Great advice and all these steps can be done in less than ten minutes time.

    1. I would also add to remember to delete or disable any admin accounts you have set up for developers that are no longer working on the site.

    2. Change your folder permissions to 755 and your file permissions to 644 with the exception of configuration.php which should be set to 444.

    3. Disable any unnecessary user permissions. The only ones you will need are SELECT, INSERT, UPDATE, DELETE, CREATE and DROP on a standard Joomla site.

  • avatar
    • 0
    • 0
    sim

    Too much external extensions for security, it is not so good... I think developers have to add some of this extra security feature directly in the core.

  • avatar
    • 0
    • 0
    Hardy

    Great List for many Joomla Starters :)

    I am sure there is a lot me that can be done however this is a guide for considerations regarding security + as the title says Part 1 So I look forward to the other parts.

    Thanks again :)

  • avatar
    • 0
    • 0
    michael smith jr

    good post! found it when reading about encryption and brute force attacks at http://perfectinternetsecurity.tk/ which is an awesome security website!
    keep up the good job Ofer Cohen!

  • avatar
    • 0
    • 0
    Paul Fullilove

    JL Secure My Site is very cool. Thanks for the tip.