Closed Thread
Results 1 to 7 of 7

Thread: iframes on index.php

  1. #1
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0

    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.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    powerspike Guest
    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.

  4. #3
    Jordan Guest
    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.

  5. #4
    Jordan Guest
    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

  6. #5
    Jordan Guest
    Also check this on CodeCall - it may be the reason you are being hacked.

    Joomla! Hacking Script

  7. #6
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0
    Hmm, that is very interesting. It looks like they have complete access with that hack.

  8. #7
    Jordan Guest
    Yes, Joomla is very insecure.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A-Z Index
    By jwg2s in forum PHP Development
    Replies: 2
    Last Post: 06-07-2011, 08:54 AM
  2. problem iframes reload
    By ramo2712 in forum ASP, ASP.NET and Coldfusion
    Replies: 1
    Last Post: 05-14-2011, 01:01 PM
  3. Replies: 2
    Last Post: 05-25-2010, 01:08 PM
  4. unidentified index i need help
    By hardinera in forum PHP Development
    Replies: 19
    Last Post: 03-16-2010, 01:18 AM
  5. Replies: 7
    Last Post: 01-24-2010, 10:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts