We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22969
    • 158 Posts
    Hi Guys,

    I think one of my clients sites has been hacked - http://wighthomecare.co.uk/personal-care/

    If you look in the source right at the top this is there abouve anything else.

    <div style="position: absolute; top: -825px;left: -825px;"><a href="http://www.bikinionlineshop.com/victorias-secret-womens-bikini-c-35.html">bikinis victoria secret</a><a href="http://www.fingershoesshop.com/">vibram fivefinger shoes</a><a href="http://www.bikinionlineshop.com/">2011 bikinis</a><a href="http://www.paulsmithsmall.com/">paul smith sale</a><a href="http://www.bikinionlineshop.com/specials.html">bikini swimwear</a><a href="http://www.mbt-show.com/">mbt shoes</a><a href="http://www.fivefingershoesdiscount.com/">discount Vibram Five Fingers</a><a href="http://www.mbt-show.com/">mbt shoes sale</a><a href="http://www.dunkshoess.com/">nike dunk sb</a><a href="http://www.dunkshoess.com/">dunk sb shoes</a><a href="http://www.dunkshoess.com/">nike dunk</a><a href="http://www.dunkshoess.com/nike-dunk-high-pro-sb-mens-c-6.html">high nike dunk</a><a href="http://www.dunkshoess.com/nike-dunk-high-pro-sb-mens-c-6.html">nike dunk high</a></div>


    Im struggling to work out how to solve this??

    Any pointers?

    Thanks
    Brett
      • 21262
      • 1 Posts
      Interesting. Well first have them change their passwords and make sure it’s the latest version of all the software.

      However it is strange. SEO firms trying to get more link backs?

      But, why haven’t you removed it yet?
        • 22969
        • 158 Posts
        The code isnt in any of the templates, basically I cant find it anywhere! I have a feeling its being injected somehow!

        Brett
          • 33968
          • 863 Posts
          Could be in the database? Log into phpMyAdmin and run a search for ’bikinionline’.
            • 4041
            • 788 Posts
            Maybe check the main index.php file itself
              xforum
              http://frsbuilders.net (under construction) forum for evolution
              • 22969
              • 158 Posts
              Was indeed the main index.php file, thanks folks all sorted!
                • 33968
                • 863 Posts
                Glad it’s sorted. I wonder how they got in though...
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  There may be a script hidden there somewhere that writes to all index.php files, or it could be just the one in the root got written to. You can change the permissions of both index.php files as well as the config.inc.php file to be read-only (if your server configuration permits such settings).
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    Quote from: peekaboo at May 26, 2011, 09:39 AM

                    Was indeed the main index.php file, thanks folks all sorted!
                    would you PM me the infected file (rename the extension to be txt), and tell me what your host’s name is?
                      Rico
                      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                      MODx is great, but knowing how to use it well makes it perfect!

                      www.virtudraft.com

                      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                      Maintainter/contributor of Babel

                      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.