The Joomla! Forum ™



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.



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ] 
Author Message
 Post subject: htaccess hacked
PostPosted: Fri Mar 23, 2012 10:51 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
Problem Description :: Forum Post Assistant (v1.2.0) : 23rd March 2012 wrote:
301 htaccess hacked
Log/Error Message :: Forum Post Assistant (v1.2.0) : 23rd March 2012 wrote:
redirected to hand-poise.xx
Forum Post Assistant (v1.2.0) : 23rd March 2012 wrote:
Basic Environment :: wrote:
Joomla! Instance :: Joomla! 2.5.3-Stable (Ember) 15-March-2012
Joomla! Platform :: Joomla Platform 11.4.0-Stable (Brian Kernighan) 03-Jan-2012
Joomla! Configured :: Yes | Writable (644) | Owner: 6938709 (uid: /gid: ) | Group: 100450 (gid: ) | Valid For: 1.7 and above
Configuration Options :: Offline: 0 | SEF: 1 | SEF Suffix: 0 | SEF ReWrite: 0 | .htaccess/web.config: Yes | GZip: 0 | Cache: 0 | FTP Layer: 0 | SSL: 0 | Error Reporting: default | Site Debug: 0 | Language Debug: 0 | Default Access: 1 | Unicode Slugs: 0 | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 2.6.18-238.19.1.el5PAE | Technology: i686 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: /var/chroot/home/content/09/6938709/html | System TMP Writable: Yes

PHP Configuration :: Version: 5.2.17 | PHP API: cgi-fcgi | Session Path Writable: No | Display Errors: 1 | Error Reporting: 6135 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: 1 | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 32M | Max. POST Size: 33M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 64M

MySQL Configuration :: Version: 5.0.92-log (Client:5.0.77) | Host: --protected-- (--protected--) | Collation: utf8_general_ci (Character Set: utf8) | Database Size: 32.70 MiB | #of _FPA_TABLE: 202
Detailed Environment :: wrote:
PHP Extensions :: date (5.2.17) | libxml () | openssl () | pcre () | zlib (1.1) | bcmath () | calendar () | ctype () | curl () | dba () | dom (20031129) | hash (1.0) | filter (0.11.0) | ftp () | gd () | gettext () | session () | iconv () | json (1.2.1) | mbstring () | mcrypt () | mhash () | mysql (1.0) | SimpleXML (0.1) | SPL (0.2) | PDO (1.0.4dev) | pdo_mysql (1.0.2) | pdo_sqlite (1.0.1) | pspell () | Reflection (0.1) | standard (5.2.17) | mysqli (0.1) | soap () | SQLite (2.0-dev) | exif (1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $) | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlwriter (0.1) | xsl (0.1) | zip (1.8.11) | cgi-fcgi () | Zend Engine (2.2.0) |
Potential Missing Extensions :: suhosin |

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Custom SU (Cloud/Grid): Maybe
Potential Ownership Issues: No
Folder Permissions :: wrote:
Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |
Templates Discovered :: wrote:
Templates :: SITE :: rt_gantry (3.2.16) | rt_camber (1.3) | mobile_iphone (1.0.2) | mobile_imode (1.0.2) | mobile_wap (1.0.2) | mobile_smartphone (1.0.2) | beez_20 (2.5.0) | beez5 (2.5.0) | atomic (2.5.0) |
Templates :: ADMIN :: hathor (2.5.0) | bluestork (2.5.0) |


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Mar 23, 2012 11:17 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Mar 20, 2006 1:56 am
Posts: 11706
Location: The Girly Side of Joomla in Sussex
please do an extended version of the fpa with the extensions listed.
run through checklist 7 as linked from the "before you post read this sticky"
what is your host?

_________________
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be added to the foe list and possibly just deleted
{Community.Connect Administrator }{ Showcase & Security Moderator}


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Mar 23, 2012 11:22 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
Godaddy shared hosting


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Mar 23, 2012 11:30 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
Forum Post Assistant (v1.2.0) : 23rd March 2012 wrote:
Basic Environment :: wrote:
Joomla! Instance :: Joomla! 2.5.3-Stable (Ember) 15-March-2012
Joomla! Platform :: Joomla Platform 11.4.0-Stable (Brian Kernighan) 03-Jan-2012
Joomla! Configured :: Yes | Read-Only (444) | Owner: 6938709 (uid: /gid: ) | Group: 100450 (gid: ) | Valid For: 1.7 and above
Configuration Options :: Offline: 0 | SEF: 0 | SEF Suffix: 0 | SEF ReWrite: 0 | .htaccess/web.config: No | GZip: 0 | Cache: 0 | FTP Layer: 0 | SSL: 0 | Error Reporting: default | Site Debug: 0 | Language Debug: 0 | Default Access: 1 | Unicode Slugs: 0 | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 2.6.18-238.19.1.el5PAE | Technology: i686 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: /var/chroot/home/content/09/6938709/html | System TMP Writable: Yes

PHP Configuration :: Version: 5.2.17 | PHP API: cgi-fcgi | Session Path Writable: No | Display Errors: 1 | Error Reporting: 6135 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: 1 | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 32M | Max. POST Size: 33M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 64M

MySQL Configuration :: Version: 5.0.92-log (Client:5.0.77) | Host: --protected-- (--protected--) | Collation: utf8_general_ci (Character Set: utf8) | Database Size: 32.73 MiB | #of _FPA_TABLE: 202
Detailed Environment :: wrote:
PHP Extensions :: date (5.2.17) | libxml () | openssl () | pcre () | zlib (1.1) | bcmath () | calendar () | ctype () | curl () | dba () | dom (20031129) | hash (1.0) | filter (0.11.0) | ftp () | gd () | gettext () | session () | iconv () | json (1.2.1) | mbstring () | mcrypt () | mhash () | mysql (1.0) | SimpleXML (0.1) | SPL (0.2) | PDO (1.0.4dev) | pdo_mysql (1.0.2) | pdo_sqlite (1.0.1) | pspell () | Reflection (0.1) | standard (5.2.17) | mysqli (0.1) | soap () | SQLite (2.0-dev) | exif (1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $) | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlwriter (0.1) | xsl (0.1) | zip (1.8.11) | cgi-fcgi () | Zend Engine (2.2.0) |
Potential Missing Extensions :: suhosin |

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Custom SU (Cloud/Grid): No
Potential Ownership Issues: Maybe
Folder Permissions :: wrote:
Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |

Elevated Permissions (First 10) :: None
Database Information :: wrote:
Database _FPA_STATS :: Uptime: 1308239 | Threads: 3 | Questions: 48265586 | Slow queries: 65 | Opens: 59873 | Flush tables: 1 | Open tables: 9248 | Queries per second avg: 36.894 |
Extensions Discovered :: wrote:
Components :: SITE :: WF_XHTMLXTRAS_TITLE (2.0.21) | WF_VISUALCHARS_TITLE (2.0.21) | WF_TEXTCASE_TITLE (2.0.21) | WF_TABLE_TITLE (2.0.21) | WF_STYLE_TITLE (2.0.21) | WF_SPELLCHECKER_TITLE (2.0.21) | WF_SOURCE_TITLE (2.0.21) | WF_SEARCHREPLACE_TITLE (2.0.21) | WF_PRINT_TITLE (2.0.21) | WF_PREVIEW_TITLE (2.0.21) | WF_PASTE_TITLE (2.0.21) | WF_NONBREAKING_TITLE (2.0.21) | WF_MEDIA_TITLE (2.0.21) | WF_LINK_TITLE (2.0.21) | WF_LAYER_TITLE (2.0.21) | WF_INLINEPOPUPS_TITLE (2.0.21) | WF_IMGMANAGER_TITLE (2.0.21) | WF_FULLSCREEN_TITLE (2.0.21) | WF_DIRECTIONALITY_TITLE (2.0.21) | WF_CONTEXTMENU_TITLE (2.0.21) | WF_CLEANUP_TITLE (2.0.21) | WF_BROWSER_TITLE (2.0.21) | WF_AUTOSAVE_TITLE (2.0.21) | WF_ARTICLE_TITLE (2.0.21) | WF_POPUPS_JCEMEDIABOX_TITLE (2.0.21) | WF_POPUPS_WINDOW_TITLE (2.0.21) | WF_MEDIAPLAYER_JCEPLAYER_TITLE (2.0.21) | WF_LINKS_JOOMLALINKS_TITLE (2.0.21) | WF_FILESYSTEM_JOOMLA_TITLE (2.0.21) | WF_AGGREGATOR_VIMEO_TITLE (2.0.21) | WF_AGGREGATOR_YOUTUBE_TITLE (2.0.21) | com_wrapper (2.5.0) | com_mailto (2.5.0) |
Components :: ADMIN :: K2 (2.5.4) | com_finder (2.5.0) | RokModule (1.3) | VirtueMart_allinone (-) | VirtueMart (-) | ECB Currency Converter (1.0) | Gantry (3.2.17) | Admintools (2.2.2) | Mobile Joomla! (1.0.2) | JCE (2.0.21) | Editor - JCE (2.0.21) | Unknown (-) | Fox Contact Joomla 1.5 (-) | COM_FOXCONTACT (2.0.13) | Akeeba (3.4.3) | com_xmap (2.2) | com_weblinks (2.5.0) | com_users (2.5.0) | com_templates (2.5.0) | com_search (2.5.0) | com_redirect (2.5.0) | com_plugins (2.5.0) | com_newsfeeds (2.5.0) | com_modules (2.5.0) | com_messages (2.5.0) | com_menus (2.5.0) | com_media (2.5.0) | com_login (2.5.0) | com_languages (2.5.0) | com_installer (2.5.0) | com_cpanel (2.5.0) | com_content (2.5.0) | com_config (2.5.0) | com_checkin (2.5.0) | com_categories (2.5.0) | com_cache (2.5.0) | com_banners (2.5.0) | com_admin (2.5.0) |

Modules :: SITE :: K2 User (2.5.4) | K2 Users (2.5.4) | K2 Tools (2.5.4) | K2 Login (2.5.4) | K2 Content (2.5.4) | K2 Comments (2.5.4) | mod_finder (2.5.0) | Easy Stock Ticker (1.0.0) | RokStock (1.3) | mod_virtuemart_search (2.0.0RC3) | mod_virtuemart_product (2.0.0RC3) | mod_virtuemart_manufacturer (2.0.0RC3) | mod_virtuemart_currencies (2.0.0RC3) | mod_virtuemart_category (2.0.0RC3) | VirtueMart Shopping Cart (2.0.0RC3) | RokNavMenu (1.7) | Markup Chooser (1.0.2) | Mobile Menu (1.0.2) | Header (1.0.2) | ITPFacebookLikeBox (1.2) | Fox Contact (2.0.13) | mod_wrapper (2.5.0) | mod_whosonline (2.5.0) | mod_weblinks (2.5.0) | mod_users_latest (2.5.0) | mod_syndicate (2.5.0) | mod_stats (2.5.0) | mod_search (2.5.0) | mod_related_items (2.5.0) | mod_random_image (2.5.0) | mod_menu (2.5.0) | mod_login (2.5.0) | mod_languages (2.5.0) | mod_footer (2.5.0) | mod_feed (2.5.0) | mod_custom (2.5.0) | mod_breadcrumbs (2.5.0) | mod_banners (2.5.0) | mod_articles_popular (2.5.0) | mod_articles_news (2.5.0) | mod_articles_latest (2.5.0) | mod_articles_category (2.5.0) | mod_articles_categories (2.5.0) | mod_articles_archive (2.5.0) |
Modules :: ADMIN :: K2 Stats (admin) (2.5.4) | K2 Quick Icons (admin) (2.5.4) | mod_version (2.5.0) | Admin Tools Joomla! Upgrade No (2.2.2) | Admin Tools Joomla! Upgrade No (svn746) | Mobile Joomla! CPanel Icon (1.0.2) | Akeeba Backup Notification Mod (3.4.3) | mod_toolbar (2.5.0) | mod_title (2.5.0) | mod_submenu (2.5.0) | mod_status (2.5.0) | mod_quickicon (2.5.0) | mod_popular (2.5.0) | mod_multilangstatus (1.7.1) | mod_menu (2.5.0) | mod_login (2.5.0) | mod_logged (2.5.0) | mod_latest (2.5.0) | mod_feed (2.5.0) | mod_custom (2.5.0) |

Plugins :: SITE :: plg_quickicon_joomlaupdate (2.5.0) | plg_quickicon_extensionupdate (2.5.0) | plg_finder_weblinks (2.5.0) | plg_finder_newsfeeds (2.5.0) | plg_finder_content (2.5.0) | plg_finder_contacts (2.5.0) | plg_finder_categories (2.5.0) | plg_captcha_recaptcha (2.5.0) | VMSHIPMENT_WEIGHT_COUNTRIES (2.0.0RC3) | VMPAYMENT_PAYPAL (2.0.0RC3) | VMPAYMENT_STANDARD (2.0.0RC3) | VMCUSTOM_STOCKABLE (2.0.0RC3) | VMCustom - specification (2.0.0RC3) | VMCustom - textinput (2.0.0RC3) | Mobile Joomla! Ad Remover (1.0 RC) | Mobile - TeraWURFL (1.0.2) | Mobile - Domains (1.0.2) | Mobile - Forever (1.0.2) | Mobile - Simple (1.0.2) | Xmap - Mosets Tree Plugin (2.0.2) | Xmap - SobiPro Plugin (2.0.1) | Xmap - Kunena Plugin (2.0.2) | Xmap - Content Plugin (2.0.3) | User - K2 (2.5.4) | plg_user_profile (2.5.0) | plg_user_joomla (2.5.0) | plg_user_contactcreator (2.5.0) | System - K2 (2.5.4) | plg_system_languagecode (2.5.0) | plg_system_highlight (2.5.0) | System - RokExtender (1.0) | System - Gantry (3.2.17) | Akeeba Backup Lazy Scheduling (3.3) | System - EasyCalcCheck PLUS - (1.6-2) | System - Admin Tools (2.2.2) | Abivia.net Redaction Utility (1.1.2) | Mobile Joomla! (1.0.2) | System - JCE MediaBox (1.1.1) | System - ByeByeGenerator (1.3) | plg_system_sef (2.5.0) | plg_system_remember (2.5.0) | plg_system_redirect (2.5.0) | plg_system_p3p (2.5.0) | plg_system_logout (2.5.0) | plg_system_log (2.5.0) | plg_system_languagefilter (2.5.0) | plg_system_debug (2.5.0) | plg_system_cache (2.5.0) | System - Admin Tools Update Em (1.0) | System - Joomla! Update Email (1.0) | Search - K2 (2.5.4) | plg_search_virtuemart (1.5) | plg_search_weblinks (2.5.0) | plg_search_newsfeeds (2.5.0) | plg_search_content (2.5.0) | plg_search_contacts (2.5.0) | plg_search_categories (2.5.0) | plg_extension_joomla (2.5.0) | plg_editors-xtd_readmore (2.5.0) | plg_editors-xtd_pagebreak (2.5.0) | plg_editors-xtd_image (2.5.0) | plg_editors-xtd_article (2.5.0) | Editor - JCE (2.0.21) | plg_editors_tinymce (3.4.7) | plg_editors_codemirror (1.0) | plg_content_finder (2.5.0) | plg_content_vote (2.5.0) | plg_content_pagenavigation (2.5.0) | plg_content_pagebreak (2.5.0) | plg_content_loadmodule (2.5.0) | plg_content_joomla (2.5.0) | plg_content_geshi (2.5.0) | plg_content_emailcloak (2.5.0) | plg_authentication_ldap (2.5.0) | plg_authentication_joomla (2.5.0) | plg_authentication_gmail (2.5.0) |
Templates Discovered :: wrote:
Templates :: SITE :: rt_gantry (3.2.16) | rt_camber (1.3) | mobile_iphone (1.0.2) | mobile_imode (1.0.2) | mobile_wap (1.0.2) | mobile_smartphone (1.0.2) | beez_20 (2.5.0) | beez5 (2.5.0) | atomic (2.5.0) |
Templates :: ADMIN :: hathor (2.5.0) | bluestork (2.5.0) |


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Mar 23, 2012 3:35 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
Finally got the sites stable by inserting a generic htaccess file and immediately changing the permissions to 444. One that had crashed, I was able to restore with a akeeba backup. But one will not restore, the script is interfering with the installation phase of restore.

I was able to see looking over several domains that the files were injected at the same time to each folder. An hour apart, each hour. Not sure if it is coming from within my partition, or across the shared server. GoDaddy. I changed all pw, login and scanned my PC. Confident the script resides within the server.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Mar 23, 2012 5:46 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Mar 20, 2006 1:56 am
Posts: 11706
Location: The Girly Side of Joomla in Sussex
ask on the godaddy forums if anyone else has the same issue

_________________
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be added to the foe list and possibly just deleted
{Community.Connect Administrator }{ Showcase & Security Moderator}


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Mar 23, 2012 7:20 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
nothing on GoDaddy Forums helpful.

I do have two accounts, each has about 20-30 sites. One is totally clean, the other dirty. The dirty site, every site folder root had this corrupt file in it.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Mar 23, 2012 7:35 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
I thought I had them locked down, the htaccess files that I had inserted and changed the permissions to 444 were rewritten over again.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Sat Mar 24, 2012 12:58 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Sat Oct 21, 2006 10:20 pm
Posts: 2702
Location: Wisconsin USA
Then there is possibly a root type script (c99,r57 are just 2 there are many more) on the server, or one or more of these scripts on your sites that is allowing the hacker to sit at his computer and do as he wishes (server and all sites show up as a drive on the hackers computer. No passwords needed) with your sites/domain(s) or with the server. There could also be a cron job setup to make certain hacking edits/additions to your site.

You need to inform your host of the issues your having and the possibility of a root type script on the server. Just asking a host about an hacking issue with their servers will get nowhere. They will give a standard boilerplate answer of nothing is wrong with our stuff. This is what you already got in response, so don't ask; tell them there is an issue and a possible root kit installed on the server somewhere and they need to check their server for one. Certain hosts have had this issue a number of times in the recent past.

Your going to have to password protect the public_html directory of every domain and/or site under your account to start with. This may slow down or possibly stop the issue if it is an external access until you can fix it properly.

You must go through every site and delete every file and replace every file with known good ones. as the first point below suggests and security checklist 7 suggests. You should also check for cron jobs running assisting in the hack and you should make sure anonymous ftp is not enabled.

[ ] Delete all files and directories in your Joomla installation area which would be your public_html directory. Replace the deleted files with fresh copies of a current full version of Joomla, and fresh copies of extensions and templates used. Only by replacing all files in the installation (including extensions and templates) can you be sure to remove the backdoors inserted in files and directories and or any added files or directories (may or may not be hidden within legitimate directories) not associated with your site.

[ ] Review Vulnerable Extensions List

[ ] Review and action Security Checklist checklist 7 to 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.

[ ] Change all passwords and if possible user names for the website host control panel and your Joomla site.

[ ] Use proper permissions on files and directories. They should never be 777, but ideal is 644 and 755

[ ] 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

_________________
PhilD -- Unrequested PM's and/or emails may not get a response.
Security Moderator


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Sat Mar 24, 2012 1:56 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
It appears to be a root script. In following your suggestion I called Host back again.
They would do nothing without me buying something, so I bought the virus scan.

I received an email a couple of hours later telling me they had found "Warning or Critical Issues on your website".

They email provided a link which told me how I could talk to a rep about paying to have the issues explained to me. Passing on that one. Not going to fill white space complaining about having an issue in the root fixed.

I have not had an a new incident x 7 hours.

Time for a dedicated server.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Sat Mar 24, 2012 2:37 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Sat Oct 21, 2006 10:20 pm
Posts: 2702
Location: Wisconsin USA
I would suggest you investigate other hosting services companies if your looking to make an upgrade to dedicated. A good place to research and ask questions is on Web Hosting Talk http://www.webhostingtalk.com/

Typically in some situations what happens is a vulnerability in a website is exploited and what is called a 'root kit' is installed. This kit can be as simple as a single but very powerful script that gives the hacker the ability to access the account under which it is installed without needing any passwords or usernames. On some hosting services, including some very popular ones, security is not all that good and the script can easily gain access to the rest of the accounts installed on the server without needing usernames/passwords and can also gain access to the 'root' or underlying software of the server also without needing usernames or passwords.

So, I would still consider replacing files within each site with known good ones or freshly downloaded ones and I would also think about following what I posted above and check for cron jobs etc. that you did not create. I would do this even if there are no more issues and I would also do this if you decide to go dedicated. You don't know if the sites are in fact clean or if there are backdoors dropped within the site(s) somewhere that will allow later easy access to a hacker. Joomla consists of hundreds of directories and thousands of files. It is very easy to miss a few bad files/directories even when using a "anti-virus script", especially since the script is not tailored to any individual site and tends to depend upon certain assumed parameters for detection.

_________________
PhilD -- Unrequested PM's and/or emails may not get a response.
Security Moderator


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Sat Mar 24, 2012 8:55 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
The reason I have stayed with shared hosted is that I am not comfortable with my technical knowledge on the server side. And my company size and income on hosting does not provide for me having more tech help. Safer, faster shared hosting is ideal for me at this point, as all I do is build and set-up sites. I tried virtual hosting and was very unhappy with the speed. Was in fact slower than one of my shared hosting accounts.

I will take your advice and begin replacing everything on this server as I bring them back up. Just very thankful that I had keep two hosting accounts and am only having to repair half. Thank you for you assistance, saved my butt.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Sat Mar 24, 2012 10:28 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Sat Oct 21, 2006 10:20 pm
Posts: 2702
Location: Wisconsin USA
VPS is in fact many times much slower than shared.

Managed dedicated is one way to go dedicated but still have certain aspects such as server software updates managed for you. There are various levels of this and this is not VPS. You get the whole server. Watch for the amount of memory though, more is better.

Shared, is ok most of the time if you find a good host. notice I did not say popular, expensive, cheap host. Do research on places such as Web Hosting Talk that are likely to tell the truth about their hosting service selection and experiences with them.

_________________
PhilD -- Unrequested PM's and/or emails may not get a response.
Security Moderator


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Sun Mar 25, 2012 3:58 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
As I have been cleaning, I have received a couple of emails from GoD.

Quote:
Description:

The following url, found in your site's content, has been identified on Google Safe Browsing as a suspicious url: general‑station.ru/in.cgi?7

The suspicious URL is on the following pages:

- balxxxxxxxxxxnet.net/icons

Risk Type:

Malware


I replied that I did not have a sub with that name.

After I had allowed a directory list, I see that this is the images folder for the server.
I realize that access could have been allowed through my content, but script is beyond my reach.

I have had this page come up a couple of times as I have been working. It comes up only on Firefox, not explorer. It seems to be associated with error responses.

BTW. I have no Cron-jobs, I have the errors going to a very simple errror.html page.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Sun Mar 25, 2012 4:59 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Sat Oct 21, 2006 10:20 pm
Posts: 2702
Location: Wisconsin USA
See my post above for what you should be doing: viewtopic.php?f=621&t=705221&p=2773573#p2772744

OK, as I understand from previous messages in this thread you are on a shared hosting account with your selected host service. Since you have so many sites you may have a reseller account to manage them. Now, I fail to understand why you think you do not have access to certain parts of your domain/site. If you have a reseller account then you have access through that to every account and probably also by ftp as each domain/site under your account is really just a directory. If just a regular shared account with unlimited domains or something to that effect, then each domain is again basically just a directory and accessible from the main account and from ftp.

It is very common to place code within established directories such as the images directory in a Joomla install and is one reason why you should be following the checklist. On shared hosting you will not be able to see or even check what is within directories outside of your master account(s)

The script does not have to be residing on the server someplace out of your reach to infect all of your sites on your account. From my understanding of previous posts, All of your sites are controlled by your two master accounts. One of these accounts (the dirty one) has a site that was originally infected and hacked. The hack script placed there on that original site has replicated itself to all other domains/sites within that master account. They did not need any type of password or user name to do this. This is called cross site contamination and is very similar to cross site scripting, the difference being cross contamination is localized to an account and the domains within that account and cross site involves different accounts on the server affecting all domains within each account. Cross contamination is generally your problem and cross site is your hosts problem. Think of a reseller as a mini-host. Your hosting those 40 - 60 sites and by doing so you are accepting some of the responsibility and should know how to fix things easily and quickly within your master accounts.

Each of the domains you have will have their own access to cron and each domain needs to be checked.


Quote:
The following url, found in your site's content, has been identified on Google Safe Browsing as a suspicious url: general‑ station .ru /in.cgi?7

This is a redirect to the malware site. The site this is on is likely being redirected to the malware site.

Hackers can install complete domains and or sub-domains on a site and serve whatever they want from there. This will show in the logs and in traffic reports, but you have to read them. You should also be familiar with the normal content of your accounts.

_________________
PhilD -- Unrequested PM's and/or emails may not get a response.
Security Moderator


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Mon Mar 26, 2012 1:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
The folder the message refers to is not on a site. It is within /public_html, a level up from my key account on this shared host. It contains icons associated with Apache, PHP admin, ...,. I believe it is associated with account management for my account. It is not visible from FTP view of the account. This view provides a view of the primary and all alias domains.

As follows is what I have been able to determine:
1. Hacker gained access on one of my 1.5 sites. I believe through community builder.
2. Once in on this account, changed all my htaccess files on this shared account. All domains.
3. In the root of my account is a folder /icons; this folder is part of the hosts admin for my account. I figured out how to allow to list the directory. Do not see any scripts or items other than .gif .png .jpg ..,., nothing with a recent date either.

/
/domainone.co_
/domaintwo.co_
/domainthree./co_

Two things that happened that caused the cascading changes of my htaccess to stop.
1. I notified GoD and enrolled in their paid security, daily scan. Perhaps causing them to changes a property.
2. Installed admin Tools Pro and locked them all down.
I list both because I am not sure which stopped the changes from happening.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Mon Mar 26, 2012 2:21 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Mar 20, 2006 1:56 am
Posts: 11706
Location: The Girly Side of Joomla in Sussex
johnb18919 wrote:
The folder the message refers to is not on a site. It is within /public_html, a level up from my key account on this shared host.


Quote:
1. Hacker gained access on one of my 1.5 sites.

Quote:
/domainone.co_
/domaintwo.co_
/domainthree./co_


now to me that says you are reselling space under your account, unless they all belong to and are administered by you?

_________________
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be added to the foe list and possibly just deleted
{Community.Connect Administrator }{ Showcase & Security Moderator}


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Mon Mar 26, 2012 11:49 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
I do not resell space. I develop and manage mostly joomla websites on multiple unlimited shared hosting accounts. Not sure which rule this is infringing on but I have not attempted to mislead on that fact.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Tue Mar 27, 2012 12:33 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Sat Oct 21, 2006 10:20 pm
Posts: 2702
Location: Wisconsin USA
Your not infringing on "any" rule. we are just trying to determine your setup.

It appears that either you have a reseller account which would be a "master" account under which any other domain accounts are created.
OR
You have a regular (non-reseller) account which allows multiple domain setups. These multiple domain setups are also within a "master" account under which they were created.

The risk associated with either of these methods is one site under the 'master' account can become compromised in such a way as to enable ALL the other domains under that 'master' account to become infected.

In your example, your showing a master account which you control and have a number of other separate domains within that account. Each 'domain' is essentially just a directory within the master account. Each domain will have it's own public_html directory that will also probably contain their own cgi directory.

A reseller account generally allows whoever you 'sold' space for their domain use to access their domains own control panel using their own login.

If your not using a reseller account then you have only one control panel (and thus login) to access all the domains. anyone you 'sold' a domain to does not have access to any domain control panel (c-panel) for their domain.

I would say a reseller account with separate c-panel login for each domain is a little more secure than just creating domains.

/ ----------->> your master account root directory
/domainone.co_ -------------->> directory 1 within the master account
/domaintwo.co_ -------------->> directory 2 within the master account
/domainthree./co_ -------------->> directory 3 within the master account

_________________
PhilD -- Unrequested PM's and/or emails may not get a response.
Security Moderator


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Tue Mar 27, 2012 5:26 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 23, 2012 10:31 am
Posts: 21
I see, I get the point you are making now.


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Apr 06, 2012 11:36 am 
Joomla! Intern
Joomla! Intern

Joined: Thu Oct 23, 2008 10:59 am
Posts: 81
Subscribing. I can attest that I'm having the same experience.
Haven't found the source yet.
J1.5.26 - My .htaccess keeps being rewritten to redirect to a .ru site only when the user googles our site and clicks our link. Going to directly to our site does not redirect the user.

Once I find the source of the script, will post again. Thank you for your assistance with posting this issue. Sidenote: Using HostMonster for VPS

Tim


Top
 Profile  
 
 Post subject: Re: htaccess hacked
PostPosted: Fri Apr 06, 2012 4:14 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Sat Oct 21, 2006 10:20 pm
Posts: 2702
Location: Wisconsin USA
See thread for htaccess hacked:
viewtopic.php?f=432&t=705216

_________________
PhilD -- Unrequested PM's and/or emails may not get a response.
Security Moderator


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ] 



Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group