We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45383
    • 7 Posts
    I have a bunch of links that are being generated across all pages before the end of body tag. I checked in the database and there is no such links in the templates available

    Below are the links that are being generated. No idea from where they are being generated. Please help. I am using ModX with the following versions

    $version = '0.9.6.3';
    $code_name = 'rev 4565';

    <div style="position:absolute;left:-2311px;top:-2794px;"><a href="#">viagra schnell bestellen</a> <a href="#">kamagra internet bestellen</a> <a href="#">viagra günstige alternative</a> <a href="#">cialis apothekenpreis</a> <a href="#">kamagra quick delivery uk</a> <a href="#">buspar 10mg price</a> <a href="#">lasix from mexico</a> <a href="#">viagra generika telefonisch bestellen</a> <a href="#">generic version propecia</a> <a href="#">kamagra generic viagra uk</a> <a href="#">what is the cost of levaquin 500 mg</a> <a href="#">viagra effekt</a> <a href="#">cheap cialis uk generic</a> <a href="#">cialis apothekenpreis versandapotheke cialis cialis versandapotheke</a> <a href="#">can you buy paxil online</a> <a href="#">cheap kamagra uk supplier</a></div>

    [ed. note: iusemodx last edited this post 10 years, 10 months ago.]
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Your site has been hacked. That is a very old, insecure version of MODx.
      http://d43.me/blog/1697/modx-evolution-removing-spam-links/
        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
        • 45383
        • 7 Posts
        Thanks for the reply Sottwell. Yeah I know it is very old version. I will have to tell my client to upgrade after this is fixed. From the article it looks like that the hack got implanted in quick manager plugin. I checked the plugincode but could not find the hack there. Is there any other content table where the hack could have been implanted?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          It could have been implanted in any number of files, from the index.php to the manager/includes/config.inc.php file, or in any of the plugins. You'll need to search the file system and the database for any code like what was described in the article.
            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
            • 1343 ☆ A M B ☆
            • 2,213 Posts
            You should really examine every file on the server to ensure there are no backdoors involved. I've done quite a few compromised site recoveries and found multiple backdoors in other files. It's long and tedious, but if you want to avoid being re-hacked critical. You can accelerate the process some with different tools, which is what I've done in the past with good success.

            Don't forget you also want to check the server logins to ensure that wasn't compromised as well
              Patrick | Server Wrangler
              About Me: Website | Tweets |  MODX Hosting
              • 17734
              • 18 Posts
              I had the same problem today but i didn't find your post at the time...

              I had to figure it out by myself... (what i'm proud i did by the way) but it took me so long, i just wrote a post about it.

              https://forums.modx.com/thread/98868/solved-www-viagraauonline-com-links-added-on-all-pages#dis-post-534613