|
||||||
| Linux Security Make your Linux box more secure - Learn How |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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.
|
| Sponsored Links |
|
|||
|
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.
|
|
||||
|
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
|
|
||||
|
Also check this on CodeCall - it may be the reason you are being hacked.
http://forum.codecall.net/software-s...html#post25334 |
| Sponsored Links |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Directory index forbidden by rule | Wanch | Linux Networking | 1 | 06-22-2007 11:23 PM |