Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Wordpress hacked

dee

Joined
May 8, 2013
Posts
2,596
Reaction score
914
Hi All,

I just discovered this morning that one of my sites has been hacked. I only noticed when i checked the site without being logged in as admin. It seems the posts they had been putting in dont show up when logged in. I think i've caught it quickly and completely reset. Restored database from one i know is clean and re installed worpress. Got the hosts involved to scan server (20i ..... they've been fantastic ) and all clean again. One thing that came out of it that i didnt know is that vunerabilities can be used within themes that you're not even using ! So if anyone has a few themes uploaded that they arent using, then delete them.

Not sure how it happened. No FTP users set up and locked. Latest worpress and all plugins up to date etc (and not using many)

Any how..... my point. Ive checked my webmaster search console there was a spike a couple days ago in indexed urls . The amount of urls indexed suddely jumped about by about 1000 odd a few days ago. A couple of questions please for the experiencd bods.

1/ is there a way of getting a list of indexed urls from the console ?

2/ Ive started to remove the urls in console for the ones i found when doing google "site: mysite" search, but is there a bulk remove method ?

Thanks for any insight.
 
Always a concern, just checked my stats, "14954 lockouts" since I installed the 'Limit Login Attempts' plugin. Most try accessing via the default usernames of 'admin' or 'administrator' but fortunately I don't use either, though there are quite a few attempts using the actual username I have!

Good point on the unused themes though, I'm going to remove all but my current one.
 
Always a concern, just checked my stats, "14954 lockouts" since I installed the 'Limit Login Attempts' plugin. Most try accessing via the default usernames of 'admin' or 'administrator' but fortunately I don't use either, though there are quite a few attempts using the actual username I have!

Good point on the unused themes though, I'm going to remove all but my current one.

Yep... im finding out all kinds of stuff I didnt know. For instance. Did you know that wordpress provides an API that even makes it easy for a brute force hacker to a get a list of users who have published postes. Go to a wordpress install and use this url:

example.com/wp-json/wp/v2/users


 
I've found iThemes is a pretty good plugin for Wp
 
  • Informative
Reactions: dee
Yep... im finding out all kinds of stuff I didnt know. For instance. Did you know that wordpress provides an API that even makes it easy for a brute force hacker to a get a list of users who have published postes. Go to a wordpress install and use this url:

example.com/wp-json/wp/v2/users

Oh wow, that is shocking, I had just changed my username (again) because it was being used as an attempt to log in, and using that url, can immediately see my new username listed. Was no point bothering lol
 
Bloody hell the big G is fast with removing URLS. I put a list in manually 1 by 1 of about 50 2 hours ago and all gone from sIte:"my domain" listings.

Would still love to know if thes a bulk remove option.
 
Yep... im finding out all kinds of stuff I didnt know. For instance. Did you know that wordpress provides an API that even makes it easy for a brute force hacker to a get a list of users who have published postes. Go to a wordpress install and use this url:

example.com/wp-json/wp/v2/users

Wordfence plugin stops that as far as I know. Don't know whether there's other ways around it. And you can also limit login attempts etc etc. I use it on my sites. https://en-gb.wordpress.org/plugins/wordfence/
 
that link on my site produces...

{"code":"rest_user_cannot_view","message":"Sorry, you are not allowed to list users.","data":{"status":401}}

If you try and go to wp-admin or any admin login page, they don't work, I've moved them and renamed them.

I have also locked out all ISPs apart from my mobile and my broadband ISP from loading any admin pages, so even if you find your way in, you can't load the pages (this is done with a htaccess file stored outside the webroot).

I have a bunch of measures I use, and slowly rolling them out to all of my sites. Themes, Plugins and such are all vulnerable too, gotta lose any not at use.
 
that link on my site produces...

{"code":"rest_user_cannot_view","message":"Sorry, you are not allowed to list users.","data":{"status":401}}

If you try and go to wp-admin or any admin login page, they don't work, I've moved them and renamed them.

I have also locked out all ISPs apart from my mobile and my broadband ISP from loading any admin pages, so even if you find your way in, you can't load the pages (this is done with a htaccess file stored outside the webroot).

I have a bunch of measures I use, and slowly rolling them out to all of my sites. Themes, Plugins and such are all vulnerable too, gotta lose any not at use.

They all seem like great measures.... just the moving of admin login page seems like a game changer. Are they easy implementations ?
 
There are a few plugins which I assume use htaccess trickery to move the admin files. I use one on another set, let me look what its called.
 
There are a few plugins which I assume use htaccess trickery to move the admin files. I use one on another set, let me look what its called.

Aaaah... I see. Sorry, i thought from your text you'd hard coded into the hook or something. Thanks.
 
There was a post some months ago that I posted my recommended settings for wordfence, Not got time to find it at the moment but i believe the original thread was by @Murray .
 
Wordfence plugin stops that as far as I know. Don't know whether there's other ways around it. And you can also limit login attempts etc etc. I use it on my sites. https://en-gb.wordpress.org/plugins/wordfence/
Thanks, that takes care of two plugins for me, login limits and protection. Scary how many log in attempts I'm seeing live, but my site receives up to 10k visits per day! I'm still using Akismet Anti-Spam for reducing spam comments, seems to work (unless I rarely get any!).
 
That was it, thought I had screenshot my Wordfence settings though. Will try and post it up if i get a moment.
 

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Featured Services

Auctions Ending - Flip.uk

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Register for the auction

Latest Comments

Acorn Domains Merch
MariaBuy Marketplace

New Threads

Domain Forum Friends

Other domain-related communities we can recommend.

Our Mods' Businesses

Perfect
Service
Laskos
*the exceptional businesses of our esteemed moderators
Top Bottom