- May 18, 2012
- 6,680
- 6,599
Hi,
I have a site on WordPress platform which got hacked today. Although, no damage was done to the site, just the title and footer of the site was changed to show "Hacked by ----blah blah----". I wasn't able to log in and I couldn't receive the email for resetting password. I have limit login attempts and Wordfence plugins installed, and i receive emails when someone gets locked out trying password combinations, but nothing like that happened. I had the backup and everything and I could have restored everything right away, but that would have erased any traces of login that I could find on my site. So, after thinking for some time I thought I should check the Database of my website, and I know where the username and encrypted password are stored in the DB. So, I browsed and found that the username was changed and I didn't know if the password was changed or not because it was encrypted. So I changed back my username and also encrypted a password using md5 algo and pasted in the password field. Now, I was able to log into my account. When I was browsing the DB to see what was happened, I also noticed that the Blog title value was changed hence the change in the title and footer of the website. I changed it back and logged into my WP dashboard. Now, it was time to see the logs and I saw that someone logged into my WP account from an IP (I found the IP), but he didn't change anything besides the username, password and the title. Well, one cannot change the username from WP dashboard without using plugins, and I didn't see any trace of a new plugin installed on my site. So, it must have been done by editing the DB. Plus he only changed the title which is easy to change from the DB as well. So, that makes me think that he anyhow got into my DB and changed those fields using some vulnerability (I am not ruling out the possibility that he first logged into the WP, and then changed everything from there). Unless I find out the cause of my site getting hacked, I cannot do anything and he can/would edit my site again.
One solution I can think of is to remove the wp-login file when I am not going to log into my site, and uploading it just before i want to log into the WP dashboard, but if it was the DB which got hacked then this won't help in any way.
So, anyone with experience please give me some suggestions or help me if you can. I would really appreciate your help.
Thanks
I have a site on WordPress platform which got hacked today. Although, no damage was done to the site, just the title and footer of the site was changed to show "Hacked by ----blah blah----". I wasn't able to log in and I couldn't receive the email for resetting password. I have limit login attempts and Wordfence plugins installed, and i receive emails when someone gets locked out trying password combinations, but nothing like that happened. I had the backup and everything and I could have restored everything right away, but that would have erased any traces of login that I could find on my site. So, after thinking for some time I thought I should check the Database of my website, and I know where the username and encrypted password are stored in the DB. So, I browsed and found that the username was changed and I didn't know if the password was changed or not because it was encrypted. So I changed back my username and also encrypted a password using md5 algo and pasted in the password field. Now, I was able to log into my account. When I was browsing the DB to see what was happened, I also noticed that the Blog title value was changed hence the change in the title and footer of the website. I changed it back and logged into my WP dashboard. Now, it was time to see the logs and I saw that someone logged into my WP account from an IP (I found the IP), but he didn't change anything besides the username, password and the title. Well, one cannot change the username from WP dashboard without using plugins, and I didn't see any trace of a new plugin installed on my site. So, it must have been done by editing the DB. Plus he only changed the title which is easy to change from the DB as well. So, that makes me think that he anyhow got into my DB and changed those fields using some vulnerability (I am not ruling out the possibility that he first logged into the WP, and then changed everything from there). Unless I find out the cause of my site getting hacked, I cannot do anything and he can/would edit my site again.
One solution I can think of is to remove the wp-login file when I am not going to log into my site, and uploading it just before i want to log into the WP dashboard, but if it was the DB which got hacked then this won't help in any way.
So, anyone with experience please give me some suggestions or help me if you can. I would really appreciate your help.
Thanks