SECURING AND ATTACKING WORDPRESS

Today, we will discuss about the attacking and securing the WordPress websites. The techniques I am going to discuss are used to attack and break the WordPress websites. The intention of this post is not to teach how to hack the WordPress sites and destroy someone’s valuable work. But this post will be helpful for the WordPress developers who are new in coding and are unaware of the vulnerabilities that might present in the plugins and other things they use. The aim of this post is to raise the awareness about the security of the WordPress websites. By knowing the method of attacks, we can easily get to the backdoor of our WordPress websites and can enhance the security. Somehow, the penetration testers may find this post useful as I am providing some content on penetration testing also.

Most WordPress Website owners Don’t Know

Most of the WordPress website owners don’t know about how the WordPress websites are compromised. According to a survey, in year 2012 alone, more than 1, 70,000 WordPress websites were hacked and the number is increasing day after day.
The backdoor of the WordPress can be analyzed by this graph that describes how the WordPress websites are compromised : –
So, the biggest reason of getting a WordPress website hacked is the use of malicious plugins and brute force attacks. Most of the newbie WordPress developers use the malicious plugins unknowingly and give the database and login information to the hackers by their own.

Plugins : Biggest Risk

Plugins plays an important role in the development of any WordPress websites and plugins are the reason why the WordPress is so popular today. There are approximately 50,000 plugins available in the official WordPress website. The plugins makes the development of the website easy and simple, just plug & play and get the expected output. But we are unaware of the fact that the plugins are the biggest entry point for the hackers.
If you are using unknown plugin to your WordPress website, then it might contain some malicious code that can fetch your data without your permission from your database.If this is somewhere, hacker will use union query and can fetch your all database rows from wp_users table and below is an example query to fetch all WordPress users using union query to know email addresses of all users.