• Resolved kirkstudio

    (@kirkstudio)


    For about a week now, every morning I find that pomo/mo.php file has been modified. I have done all of the standard things: replaced all of the wordpress files with a fresh download, changed all of my passwords, all of the plugins are fully up to date, changed the keys. My website has always had wordfence and all-in-one wordpress security plugins installed. I can’t figure out how the hackers keep getting in. I need suggestions on where else to check.

    Thanks,
    Kirk

Viewing 15 replies - 1 through 15 (of 16 total)
  • did you change your ftp credentials?

    Thread Starter kirkstudio

    (@kirkstudio)

    Yes

    How are things being modified? Maliciously? Auto-updates to WordPress core?

    Thread Starter kirkstudio

    (@kirkstudio)

    I believe it is maliciously, the one file changes every evening and wordfence tells me it does not match the wordpress core. One additional line is added.

    Are you able to find the additional line?

    I’m wondering if it’s malicious code, or if it’s something like a timestamp being updated to ensure you have a recent version of the .mo file.

    Thread Starter kirkstudio

    (@kirkstudio)

    It happened again this morning.
    The follow line of code is being injected into wp-includes/pomo/mo.php:

    require_once dirname(__FILE__) . ‘/config.php’;

    I just can’t figure out how they are doing it.

    Thread Starter kirkstudio

    (@kirkstudio)

    I think I found it. I went into my cpanel an looked at the raw access log to see all of the pages of my site that were accessed overnight. It looks like a file was added to another piece of software that I had in my root outside of the wordpress structure. It was dompdf, a software I used to use to create pdf documents. There was a malicious file inside it’s structure. I completely removed this, since I don’t use it anymore. I guess I will know tomorrow if this was the issue.

    I have what seems to be the same hack on one of my sites. A config.php file is placed in the /wp-includes/pomo/ directory and mo.php is changed to include it. Then config.php appears to dump files into /wp-includes/theme-compat/.cache/. Happens everyday like you mention and not sure how to prevent it. WP and plugins are all up to date. Can’t find anymore malicious code besides these files.

    Thread Starter kirkstudio

    (@kirkstudio)

    No Luck, Hacked again last night. Now,

    I have replaced all of the core files again,
    deleted all of the plugins and reinstalled them,
    reinstalled my theme,
    combed through the uploads folder and found no files except for images,
    changed ftp, mysql, wordpress passwords,
    reset the wordpress keys

    Does anyone have any other suggestions on what I can do to try to eliminate this injection or anything else I can do to try to figure out how it is being done?

    Thanks,
    Kirk

    Thread Starter kirkstudio

    (@kirkstudio)

    Not hacked all weekend. I think I got it. I am going to guess that the injection came through the dompdf software outside of wordpress, but once I removed it, I need to redo all of the above things a second time to remove all further injections.

    Hello,
    I encounter the same issue. Mo.php file hacked (these two lines are added at the end of file : @include(“cl-frtp.php”);@include(“nk-frtp.php”);)
    Could you confirm, please, that your solution worked well ? Did you reinstall all your blog starting with an empty database ?
    Did anybody else get the same issue and found a different solution ?

    Thank you for your help

    @mark, Thank you for your reply.
    I’ve already had a look at some of them.But I will read again. And will see if tomorrow, hack has come back or not

    If the hackers return even after you clean the site, consider finding a more secure host.

    The WordPress team has provided a list of recommended hosting providers. For more details and other recommendations, please search through the forums or via Google (or your preferred search engine).

    One more question about Google SEO. Since, there are thousands of bad links that go to my blog, what is the best way to remove them ? Ask to Google to remove all the links of my blog and after, ask for a new exploration or just ask to explore again without delete them first ?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘mo.php file keeps getting hacked’ is closed to new replies.