We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23203
    • 12 Posts
    My hosting service is Lunarpages. Not sure how to confirm what username Apache/PHP runs under or if it is the same as the FTP server. The FTP logs showed no activity except my repairs.

    Now waiting to see if it happens again after fixing the file and setting all the access permissions to read only. I’ve also changed my passwords as a precaution.

    :(
      • 25663 MODX Staff
      • 12,272 Posts
      A person in this thread has responded privately that no further activities were noticed after all their passwords were changed. Previously they were happening daily, and the logs showed no access other than through the users FTP account.

      This possibly points to some sort of keylogger or spyware that posts FTP (and likely other sensitive information) having been installed on the local development PC. There has been recent discussion on these forums of this happening via an exploit associated with older, unpatched versions Acrobat Reader. I don’t know if that’s the cause or even if this is the case in this instance. While only the nodes.php file is reported to have been changed, I suspect that there are other files altered or added somewhere in the filesystem of the MODx sites in question.

      This is a very suspicious, concerning and possibly dangerous situation.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 15082
        • 195 Posts
        Read this topic silent but interested until now.
        I’m not affected but thought about something:
        Quote from: rthrash at Oct 07, 2009, 10:58 AM

        While only the nodes.php file is reported to have been changed, I suspect that there are other files altered or added somewhere in the filesystem of the MODx sites in question.

        This is a very suspicious, concerning and possibly dangerous situation.
        I’m not a programmer and so don’t know how complicated this would be...
        BUT: Couldn’t we have a script, that checks the MODx core files against a table of hashes to make sure, they aren’t altered?
        This would make it easier to check if an install is affected and if it needs to be cleaned.

        Sorry for being litte OT with this smiley

        Greetz
        JUSI
          • 25663 MODX Staff
          • 12,272 Posts
          jusicgn: It certainly can be done, but it’s not trivial.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            It seems really strange that the only thing changing is the removal of an empty <div style="display:none"></div> container. Could this be some kind of automated scanning and cleanup program (this kind of empty div container will cause unexpected white space in IE)? What do the people having this happening have in common?

              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
              • 23203
              • 12 Posts
              Inspite of changing passwords and all the other stuff I did, the file is modified again. My auditor crawls the directory comparing file checksums and permissions...
              From the (now) hourly audit:
              *** File Audit Results *** 
              ['*.php', '*.html', '*.py', '*.cgi', '.ini', '*.js', '*.inc', '.htaccess', 'favicon.ico', '*.pl', '*.htc', '*.css']
               <br> 
              <br>
              File contents changed. 1<br>
              /home/*****/public_html/manager/frames/nodes.php   [-564478809 100444]
              

              If there is malicous code on my website it was in place before the auditor was installed (July 4th) or it is code somehow injected in to the database. I now know the the fle change happens between 23:00 and 00:00 hrs (Server time). The 100444 above shows that the file has been left as read only so whatever is doing this is changing the access to manager and frames and nodes.php to write access, modifying the file then changing them all back to read only.

              For comparing notes - I am running MODx 1.0.0, SMF 1.1.10, Gallery2. Apache 1.3.41 (Unix),MySQL 5.0.67-community.

              I am going to remove Gallery2 temporarily from my site as I see many alarming things in the Error log.


                • 2231
                • 10 Posts
                I am also on Lunarpages.
                  • 3749
                  • 24,544 Posts
                  Since the site itself looks normal over time, someone might be trying to use it to forward spam or as part of a Denial of Service attack. Do you see any evidence of that in the logs?
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Quote from: BobRay at Oct 08, 2009, 11:35 PM

                    Since the site itself looks normal over time, someone might be trying to use it to forward spam or as part of a Denial of Service attack. Do you see any evidence of that in the logs?
                    I don’t think that is the case since the only thing they are doing is adding a hidden div. This is very strange to say the least, but I think Susan may be on to something, especially since all of these seem to be on the same host...
                      • 3749
                      • 24,544 Posts
                      Quote from: OpenGeek at Oct 09, 2009, 07:33 AM

                      Quote from: BobRay at Oct 08, 2009, 11:35 PM

                      Since the site itself looks normal over time, someone might be trying to use it to forward spam or as part of a Denial of Service attack. Do you see any evidence of that in the logs?
                      I don’t think that is the case since the only thing they are doing is adding a hidden div. This is very strange to say the least, but I think Susan may be on to something, especially since all of these seem to be on the same host...

                      Assuming that no other code is changed. It’s hard to imagine a host utility adding well-formed code inside a single file that would hide a particular div.

                      I’m on that host too but haven’t seen this, although I have an older version of MODx there. embarrassed
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting