Before you post : read and action this

Discussion regarding Joomla! 2.5 security issues.

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 15152
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Before you post : read and action this

Post by mandville » Tue Jan 11, 2011 6:28 pm


Before you post your security/been hacked topic, it is suggested to do all of the following. Failure to follow the suggestions below may leave your site vulnerable to being hacked again in the future.


You must state what version of Joomla you were using when the site first became hacked. This can make a difference as to how we approach your individual situation.

[ ] Download and RUN the Forum Post Assistant / FPA Instructions available here and are also included in the download package. Post the generated results in your security/been hacked topic. Use these links to download the FPA:
Download .tar.gz version or Download the .zip version NOTE: Do not download the FPA from any other website or links found on the Internet.

[ ] Ensure you have the latest version of Joomla for your version of Joomla. Delete all files in your Joomla installation, saving a copy of the configuration.php file.

[ ] Review Vulnerable Extensions List to make sure any 3rd party extensions versions used appear on the vulnerable list.

[ ] Review and action Security Checklist 7 Make sure you've gone through all of the steps.

[ ] Scan all machines with FTP, Joomla super admin, and Joomla admin access for malware, virus, trojans, spyware, etc. Checklist 7 contains a list or recommended scanners.

[ ] Change all passwords and if possible user names for the website host control panel. Change the Joomla database user name and password.

[ ] Use proper permissions on files and directories. They should never be 777, ideal is 644 for files and 755 for directories. The configuration file can be set to 444 which is read only.

[ ] Check your htaccess for for any odd code (i.e. code which is not in the standard htaccess supplied as part of the Joomla installation).

[ ] Check the crontab or Task Scheduler for unexpected jobs/tasks.

[ ] Ensure you do not have anonymous ftp enabled.

[ ] Verify individually that any non-Joomla file such as but not limited to that will be placed back on the website such as images, pdf files, files for download, and other documents and files are valid and are supposed to be part of your website.

[ ] Replace the deleted files by

[*]Create a new database and install without sample data to it(make sure it the same version as previous site).
[*] Install the 3rd party extensions(including any custom template) to the new Joomla. (That insures you have the files in place for the 3rd party extensions)
[*] Edit the configuration.php file of the new Joomla to connect to your original database.
[*] Make a backup and update to the current full version of Joomla

Only by replacing all files in the installation (including extensions and templates) can you be sure to remove the backdoors inserted and hidden in various files and directories More detailed information can be found in the Security Checklist 7 document.

Note: The forum post tool will work with all versions of Joomla. The FPA is written and maintained by the Joomla Security forum moderators.
Last edited by mandville on Sun Feb 16, 2014 2:10 am, edited 19 times in total.
Reason: minor edit
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}

User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 15152
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Re: Before you post : read and action this

Post by mandville » Wed Sep 05, 2012 3:03 pm

For a more technical version of the checklist above, please follow the instructions below or move to Security Checklist 7
  1. You must state what version of Joomla you were using when when the site first became hacked. This can make a difference as to how we approach your individual situation.
  2. Download and RUN the Forum Post Assistant / FPA Instructions available here and are also included in the download package. NOTE: Do not download the FPA from any other website or links found on the Internet.
    • Post the generated results in your security/been hacked topic.
  3. Ensure you have the latest version of Joomla for your 1.5 or 2.5 version of Joomla.
    • If not download it on to your computer now
  4. Remove all Website Files
    1. Save a copy of the configuration.php file to your PC.
    2. Delete ALL files in your Joomla installation.This is ONLY the files and directories in the joomla_root/ directory NOT the database!
    3. Review Vulnerable Extensions List to make sure any 3rd party extensions versions used appear on the vulnerable list.
    4. Review and action Security Checklist 7 Ensure you follow all of the steps stated.
    5. Scan all machines with FTP, Joomla super admin, and Joomla admin access for malware, virus, trojans, spyware, etc. Checklist 7 contains a list or recommended scanners.
    6. Change all passwords and if possible user names for the website host control panel.
    7. Change the Joomla database user name and password.
    8. Use proper permissions on files and directories.
      • They should never be 777,
      • Use 644 for files and 755 for directories.
      • The configuration.php file can be set to 444 which is read only.
    9. Check your .htaccess for for any odd code (i.e. code which is not in the standard htaccess.txt supplied as part of the Joomla installation).
    10. Check the crontab or Task Scheduler for unexpected jobs/tasks.
    11. Ensure you do not have anonymous FTP enabled.
    12. Verify individually that any non-Joomla file that will be placed back on the website such as, but not limited to, images, pdf files, files for download, and other documents and files are valid and are supposed to be a part of your website.
  5. Reinstate the deleted files
    1. Replace the deleted files with fresh copies of a current full version of Joomla (excluding the installation/ directory) you downloaded earlier.
    2. Install freshly downloaded copies of any extensions and templates used on the site.
    3. If the Joomla database user name and password were changed earlier, then make the necessary changes to the configuration.php file and upload a copy to the website.
    4. Upload any non-Joomla files that are necessary for your website.
IMPORTANT
Only by replacing all files in the installation (including extensions and templates) can you be sure to remove the backdoors that may have been inserted and hidden in various files and directories
More detailed information can be found in the security Checklist 7 link above.[/list]

Post formatting by Humvee
Last edited by PhilD on Wed Oct 17, 2012 3:23 pm, edited 1 time in total.
Reason: minor edit
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}


Locked

Return to “Security in Joomla! 2.5”