Core WP files keep getting modified on first line
-
I rebuilt a website in a sub-folder for a restaurant that had their site hacked. The first thing I did was install the latest version of WordPress (3.9.2, a few weeks ago) and bulletproof security, along with Wordfence.
The site seems to be operating fine, but my core WP files keep getting modified by something. It’s always on the first line after <?php. This happened once before and I thought a plugin caused it, so I cleaned up the plugins to only ones I absolutely needed and checked they were up to date. I ran Wordfence a few weeks ago and it pointed out the core files that were changed, so I could do a bulk repair and it restored the files.
Today, I just noticed that they were all modified again! I ran Wordfence again, and this time, interestingly, it didn’t notice any changes.
The pages start out like this: [ hacked snippet redacted, please do not share that part here ]
It appears to be on every core php file. Any ideas how I can stop this? I can’t figure out why it’s happening or why Wordfence isn’t even seeing it anymore.
- The topic ‘Core WP files keep getting modified on first line’ is closed to new replies.