<![CDATA[ Cache injected with code - running 1.0.10? - My Forums]]> https://forums.modx.com/thread/?thread=84881 <![CDATA[Re: Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468127 xdom12 Jun 05, 2013, 08:59 AM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468127 <![CDATA[Re: Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468083 Everettg_99 Jun 04, 2013, 10:55 PM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468083 <![CDATA[Re: Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468066 I'll do some grep stuff to see if that yields any results]]> xdom12 Jun 04, 2013, 07:33 PM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468066 <![CDATA[Re: Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468062
grep -rl 'some bit of javascript' .


And that can help you locate which file(s) are tainted. Very common, however, is that the index.php (in any directory, but most commonly at the root or in the manager/ dir) will be injected with a self-unzipping encrypted bit of code. That stuff is very hard to track down because you can't search for it using a pattern. A lot of malicious code is written so as not to be identifiable by pattern matching.

Make a full backup of your site and the database, go over it with a fine tooth comb. There's a linux utility that's useful for this called "maldet" (i.e. malware detection).]]>
Everettg_99 Jun 04, 2013, 06:47 PM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468062
<![CDATA[Re: Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468059 xdom12 Jun 04, 2013, 05:37 PM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468059 <![CDATA[Re: Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468020 sottwell Jun 04, 2013, 10:35 AM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468020 <![CDATA[Re: Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468018 xdom12 Jun 04, 2013, 10:10 AM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468018 <![CDATA[Re: Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468015 sottwell Jun 04, 2013, 09:54 AM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468015 <![CDATA[Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468013
Had my client's site hacked, cache injection, was running 1.0.4 at the time. Have now upgraded to 1.0.10 but site got infected again. Any idea why that would be? Seems the cached gets injected with some rubbish javascript code. Deleting the cache solves it, until it gets injected again. Any help much appreciated

Thanks]]>
xdom12 Jun 04, 2013, 09:17 AM https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468013