Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Security

Linux Security Make your Linux box more secure - Learn How

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-2007, 10:57 PM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default iframes on index.php

I'm running Joomla on my server and every once in a while I'll notice external pages loading on my webpage. When I look at the source there are iframes attached to the bottom of it that should not be there. I am curious to know how they are getting there and what I should do. Anyone had this problem before? How can I fix it? I've chmod'd my files to 655 but it still happens.
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-12-2007, 04:33 AM
powerspike
Guest
 
Posts: n/a
Default

try chmod 444, this removed write access from the files, and leaves read access there. You'll probley find that one of the pieces of websoftware you have has a sec hole in it, i would recomend you goto each website of each piece of software, and upgrade them to the latest versions, also you might find that mods or plugs for various software might be the way in as well.
Reply With Quote
  #3 (permalink)  
Old 10-12-2007, 02:10 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

644 might work also if your server isn't running phpsuexec. But, if your server is running phpsuexec and they are attacking your site as powerspike mentions "444" would be the best route.
Reply With Quote
  #4 (permalink)  
Old 10-18-2007, 03:42 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

If you are running an old version of Joomla! I found that the .htaccess file needs to be updated.

Add this to the bottom of the .htaccess file:
Code:
########## Begin - Rewrite rules to block out some common exploits
#                              
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
# 
########## End - Rewrite rules to block out some common exploits
Original Link and Author: http://forum.joomla.org/index.php/topic,75376.0.html
Reply With Quote
  #5 (permalink)  
Old 10-23-2007, 03:18 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

Also check this on CodeCall - it may be the reason you are being hacked.

http://forum.codecall.net/software-s...html#post25334
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 10-23-2007, 07:17 PM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default

Hmm, that is very interesting. It looks like they have complete access with that hack.
Reply With Quote
  #7 (permalink)  
Old 11-14-2007, 02:12 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

Yes, Joomla is very insecure.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory index forbidden by rule Wanch Linux Networking 1 06-22-2007 11:23 PM


All times are GMT. The time now is 11:49 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.