The Joomla! Forum ™



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  [ 16 posts ] 
Author Message
PostPosted: Fri Jan 07, 2011 7:45 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Feb 25, 2008 3:17 pm
Posts: 115
My site was hacked today. Black page, skeleton, terrible music, promise of girls, the usual WTF!! moment. This is what greeted me when I loaded my browser.

Looking at the visit logs I noticed that for the past few days an unusual number of visits came from mod removed.
They would visit the same article over and over again and they were referred to my page from a google.tr search string that reads:
http://www.google.com.tr/search?q=inurl:%22/index.php%3Foption%3Dcom_content%22%20%22Choose%20a%20File%20to%20Upload%22&hl=tr&rlz=1T4GGLL_trTR394TR394&prmd=iv&ei=TZYlTb7ICIWn8QO_r5CJAw&start=70&sa=N

Well the article in question on my site is a page that allows users to upload a photo of themselves. I used the extension Easy File Uploader for this page. It can be found here: http://extensions.joomla.org/extensions/core-enhancements/file-management/11909.
This is the page the hackers from mod removed were repeatedly visited 3 and 4 times per day.

At first I though that they had trouble uploading their photos but after testing it and seeing that easy file uploader worked I had a sinking feeling that maybe they were up to no good.

But I get that feeling anytime I see a visit or new user registration from mod removed and or mod removed. Why do hackers from these places have to fulfill loathsome stereotypes. mod removed Do they have to own evil hackers too?
Apologies to any genuine people from mod removed. I know there are bad apples everywhere.

Anyway I have pretty much banned IP addresses from mod removedbut I wonder, did they hack my site through the "Choose file to Upload" interface? Is Easy File Uploader a backdoor for hackers now?

Watching my site like a hawk and waiting for some clues from 'youse.'
RustyDusty.


Last edited by mandville on Fri Jan 07, 2011 8:33 pm, edited 1 time in total.
removed assumed countries, removed accusations of "illegal" trade


Top
 Profile  
 
PostPosted: Fri Jan 07, 2011 8:37 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
i think that installing a module that allows unlimited, none registered access to your images folder, without using captcha is just asking for trouble. i just tried the extensions and think the dev should have put a server hack warning on it.
like other extensions, in the wrong hands its dangerous

_________________
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  
 
PostPosted: Sat Jan 08, 2011 12:16 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Feb 25, 2008 3:17 pm
Posts: 115
You're right. Didn't know that an images folder left a site that vulnerable. But now it makes perfect sense.

Anyway to finish the story...when I attempted to restore my site I ran into error messages...
Quote:
Allowed memory size of 52428800 bytes exhausted...


My host support modified the php.ini and I tried it a few times myself but we both ended up with the same error message. Multiple restores later, using backups from three months ago, my site is now accessible. During this roller coaster ride the back end was fine but no front end. Hindsight. :-[

I have now installed an IP ban extension and will go on to explore other security options while trying not to feel stupid.

Also, should I inform Easy File Uploader support about my experience or will Joomla do that?

P.S. My original post has been modified. I'm sorry for the mention of certain things. Today in this forum I just read about some quirky activities coming to a site from another NAMELESS COUNTRY. With the addition of having watched so many movies and video magazines reporting on the topic I assumed it was common knowledge.


Top
 Profile  
 
PostPosted: Sat Jan 08, 2011 1:48 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
you can inform the dev if you wish but they may just shrug their shoulders at you.

we do try and remove country references and hacker kudos.

_________________
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  
 
PostPosted: Sun Jan 09, 2011 6:58 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Sat Oct 21, 2006 10:20 pm
Posts: 2702
Location: Wisconsin USA
I would inform the developer anyway.

I would also look to place an htaccess file in the images directory with either of the following preventing execution of php and other files.

Code:
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI

The -ExecCGI specifies that no files that are registered to be handled by the cgi-script handler are allowed. The AddHandler directive line registers all those file extensions as cgi-scripts, thus making any attempts to access them results in a 403 Forbidden - Access is Denied message.

or you can use something like:
Code:
<Files ^(*.jpeg|*.jpg|*.png|*.gif)>
   order deny,allow
   deny from all
</Files>


Which prevents any files other than .jpeg, .jpg, .png. or .gif to be served from the directory.

Neither of these will prevent someone from uploading bad files to the images directory but should prevent them from being used.

Almost forgot. Many hacking issues come from the USA. They just go through many offshore servers before they attack your site. It's big money.

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


Last edited by PhilD on Sun Jan 09, 2011 7:00 pm, edited 1 time in total.
forgot a comment


Top
 Profile  
 
PostPosted: Sun Jan 09, 2011 7:50 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Tue Jun 09, 2009 2:21 am
Posts: 1964
Location: WV
I can confirm this extension is vulnerable to abuse - and can show anyone interested how to do it.

_________________
http://jeffchannell.com - Joomla Extensions & Support
http://biziant.com - Open Joomla Firewall/IDS
Unsolicited private messages/emails = hire me to fix your problem.
καλλιστι


Top
 Profile  
 
PostPosted: Mon Jan 10, 2011 2:27 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Thu Aug 18, 2005 2:09 am
Posts: 5154
Location: California
.
Jeff,

I would definitely like to see how this extension can be compromised.

And even more interesting would be how to modify it to fix the vulnerability.
What to do vs. what not to do, and why.

Thanks.
.

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/
██ AllMedia YouTube Feed Gallery module released
██ Download: http://sourceforge.net/projects/allmedia4joomla/files/


Top
 Profile  
 
PostPosted: Mon Jan 10, 2011 3:00 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
i managed it by uploading a shell gif to a test site.
i ams sure that jeffchannel can pass the info to the developer in private

_________________
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  
 
PostPosted: Mon Jan 10, 2011 3:34 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Tue Jun 09, 2009 2:21 am
Posts: 1964
Location: WV
@kenmcd email me. :)

_________________
http://jeffchannell.com - Joomla Extensions & Support
http://biziant.com - Open Joomla Firewall/IDS
Unsolicited private messages/emails = hire me to fix your problem.
καλλιστι


Top
 Profile  
 
PostPosted: Mon Jan 10, 2011 4:30 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Thu Aug 18, 2005 2:09 am
Posts: 5154
Location: California
jeffchannell wrote:
@kenmcd email me. :)


Sent to your "me" email address.

Thanks!

.

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/
██ AllMedia YouTube Feed Gallery module released
██ Download: http://sourceforge.net/projects/allmedia4joomla/files/


Top
 Profile  
 
PostPosted: Mon Jan 10, 2011 1:20 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Mar 05, 2010 6:32 pm
Posts: 3
Hi Everyone,

I didn't realize there was a vulnerability with my module. I sent an email to Jeff to get the details. I'll be working on it from today to get it fixed and updated.

@rustyDusty, I feel really bad that a vulnerability in my module caused so much trouble for you. Sorry about that. At the same time, I appreciate you bringing it to my attention.


Top
 Profile  
 
PostPosted: Mon Jan 10, 2011 1:23 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
michaelgilkes wrote:
.


Thanks for the forum response.

_________________
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  
 
PostPosted: Tue Jan 11, 2011 5:15 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Feb 25, 2008 3:17 pm
Posts: 115
michaelgilkes wrote:
@rustyDusty, I feel really bad that a vulnerability in my module caused so much trouble for you. Sorry about that. At the same time, I appreciate you bringing it to my attention.



More power to your secure EFU release.
:)


Top
 Profile  
 
PostPosted: Tue Jan 11, 2011 3:34 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Mar 05, 2010 6:32 pm
Posts: 3
Hi Everyone,

I just updated the Easy File Uploader module with Jeff's help. It is now at version 0.6. Please feel free to test it out. All the issues should be resolved now. Go to: http://michaelgilkes.info/joomla-plugin ... -uploader/

@mandville, I hope I can get the module republished soon. I resubmitted it at JED.

Thanks again for everyone's help and contributions.

Michael


Top
 Profile  
 
PostPosted: Tue Jan 11, 2011 5:10 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
thanks for the update,
for reference here are the rpocedures for being JED republished.
VEL adjustment usually depends on a link to a blog post etc.

Quote:
To have your extension republished, please follow these steps:
1- Solve the issues.
2- Attach the new zip file at your actual JED listing.
3- Change the extension version at JED listing.
4- Make sure to include a notice in the JED description to the fact that the new release is a "Security Release" and those who use the extension should upgrade immediately.
5- Respond to this email with a notice and ask that your listing be republished.

For more information, see: http://docs.joomla.org/Vulnerable_Exten ... om_the_VEL

If you can provide the link to the resolution on your site, we will gladly mark it as resolved.

Republishing is done on a first-come, first-serve basis. The potential turn time is 14 days from your correction and notification to the team.




http://docs.joomla.org/Vulnerable_Exten ... om_the_VEL
Quote:
Developers - How to get yourself removed from the VEL

Resolved items will be removed after a suitable period and not on resolution

Please solve the issues and:

* If JED listed

Attach the new zip file at your actual JED listing.

Change the extension version at JED listing.

Contact the JED by mail back with a notice and ask them republish your listing.

_________________
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  
 
PostPosted: Wed Jan 12, 2011 1:33 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Mar 05, 2010 6:32 pm
Posts: 3
Hi Everyone,

Thanks for the updated info mandville!

Here is a link to the resolution on my site: http://michaelgilkes.info/2011/01/11/mi ... lity-fixed

I also satisfied requirements 1 to 4 as you had them listed:

Quote:
1- Solve the issues.
2- Attach the new zip file at your actual JED listing.
3- Change the extension version at JED listing.
4- Make sure to include a notice in the JED description to the fact that the new release is a "Security Release" and those who use the extension should upgrade immediately.


I will send an email reply in a minute.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 



Who is online

Users browsing this forum: No registered users and 16 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