Forums

site hacked and admin password and email changed (2 posts)

  1. ashley.robjohns
    Member
    Posted 9 months ago #

    I installed a brand new copy of wordpress on a clean site, with no plug-ins or extras and within 24 hours the site had been compromised with "hacked by ho1onk" in the Site Title and Tagline, the administrator account (it was not admin) had its password and email changed to "hogyzhnc@gmail.com" also. A google search for this seem to suggest it is a rather widespread problem.

    All passwords were random 16chars alphanumeric and mixed caps.

    My question is by what method can this happen. I am having disagreements with my hosting provider as to how this happened. They suspect the admin username and password were compromised and the site changed manually. I suspect a bot and possibly SQL injection method, but am not yet up to scratch on how this would be done. My argument stems around not being able to set wp-config to 640 permissions (currently 644) as per the hardening wordpress document, thus leaving it open to extract the plain text sql information. My host provider denies this and thinks even with 644 permissions it is impossible to read the wp-config file from the web.

    Can anyone explain as to how this might have happened, and whether it is actually possible to extract the contents of the wp-config file if it has world read permission?

  2. ClaytonJames
    Member
    Posted 9 months ago #

    Given the limited set of circumstances and bearing in mind that it was a fresh install with no plugins or themes added yet; all things being equal, I might suspect a couple of things immediately.

    a) It might be possible that your pc/laptop (especially if a Windows system) may have malware that has captured ftp or your wordpress login credentials from your ftp client or browser. Checking your ftp logs for the last 24hrs should tell you if someone executed commands in a time frame where you did not. Might not hurt to actually take a look at your access logs.

    b) The second thing that comes to mind - and this especially applies if you are on shared hosting - is that you may have suffered an intrusion that originated on the server itself.

    Check your access logs, check your local pc for malware, trojans, etc...

Reply

You must log in to post.

About this Topic