HACKERXPLOITE
Sunday, January 9, 2022
WordPress Penetration Testing: Discovery
How to Perform WordPress Vulnerability Assessment & Penetration Testing – Tools, Checklist, & Sample Report
Article Summary
These days, Cyber attacks have become a regular phenomenon, featuring almost every week in the headlines. At times, it’s just some crazy fan printing pages from vulnerable printers around the globe to vote for his icon, other times it could be a group of hackers targeting popular CMSes with malware. Even a script kiddie can exploit common vulnerabilities in your site and damage critical infrastructure using loads of tools available online for free. Especially users of open source CMS like WordPress are amongst the soft targets. With the rise in cyber attacks, WordPress security audit has become more important than ever.
The Internet is a worldwide platform for sharing information. It is a community of common interests. No country is immune to such global challenges as cybercrime, hacking, and invasion of privacy.
WordPress Pentesting: Getting Ready
In order to start testing your WordPress site for vulnerabilities, you need to set up the environment first. So, when it comes to WordPress security audit or any other kind of pentest, Kali Linux is considered the holy grail. The reason being that Kali provides a huge amount of hacking tools for free.
Therefore, first, we need to install Kali Linux on a system to pentest our WordPress site. Multiple approaches can be followed for this as Kali can be installed on a virtual box, a PC, or even an Android phone! However, for this article, we shall be using the virtual box. It is noteworthy here that in a real attack scenario, using Virtual Box to obtain reverse shell can become tricky due to multiple port forwarding involved.
Installing Kali Linux for WordPress Security Audit
Now once, we have installed Kali, it is time to go for WordPress penetration testing. However, before conducting a security audit of a WordPress site, it is necessary to seek the permission of the related authority.
Seeking Consent for WordPress Penetration Testing
Before actively attacking a target, it is important that you take permission and get a contract signed from the respective WordPress site owner. In case you fail to do so, legal complications may arise. You might even have to face jail time depending on the country and the cyber laws where the target is located. Moreover, the tools of Kali come with a warning that they should be run only after getting approval from the target or for educational purposes only. Once all this is done, make sure to draft a good agreement with the help of a cybersecurity lawyer. Further, there are certain proactive steps that can be taken to avoid complications:
It is common wisdom to use virtual machines as much as possible for WordPress security audits to avoid complications.
In case you host a WordPress site on a third-party server, you may need the consent of the hosting provider before conducting a WordPress security audit on your own site!
Trying to find vulnerabilities beyond your authorized resources may lead to a felony. Avoid accidentally testing unauthorized resources like routers owned by a different company.
The Three Steps of WordPress Penetration Testing
WordPress Penetration Testing: Mapping
The first step towards WordPress penetration testing while using the “Black Box” approach is gathering as much information about the target as possible. This is known as Mapping or Reconnaissance. This can be done through a variety of tools. Let us take a look at some of them.
NMAP
NMAP a.k.a ‘Network Mapper’ offers a wide variety of flexibility while mapping a target for WordPress security audit. Not only can NMAP scan ports and fingerprint backend technologies, but it can also evade firewalls to scan stealthily, use NSE scripts for automatic vulnerability discovery and so much more!
To access this tool, simply open the command line terminal on your Kali Linux and type:
nmap
Doing so would open the help interface of this tool containing all the key features. Now let us take a look at a live target. In the image given below, Nmap scans the domain scanme.nmap.org which is provided by the Nmap site to test this tool.
The ‘-A’ option of Nmap means enabling OS detection, version detection, script scanning, and traceroute. Thereafter, the -T option helps Nmap to fine-grain the timing controls. The number 4 means an aggressive scan. Finally, Nmap has provided us with the following info:
Open ports along with the services running on them i.e. port 80 are open with Apache 2.0.52 running.
The operating system running on the target machine that is Linux 2.6.0-2.6.11. Along with the uptime of the server.
Thereafter, Nmap has also consecutively scanned our internal machine named ‘d0ze’ with Local IP 192.168.12.3. This scan has also revealed the Open ports along with their services and OS. Not only this, but Nmap has also enumerated the MAC address of this local machine. This is just the tip of the iceberg as Nmap can perform a wider variety of tasks. Apart from Nmap, some other popular tools for mapping site for WordPress security audit are:
Zenmap
If beginners find trouble using Nmap, a GUI alternative of Nmap known as Zenmap can be used for automation.
ReconDog
Another good tool available on Github for black-box mapping is Recondog. Its description calls it a “Reconnaissance Swiss Army Knife”. It uses a mixture of OSINT and Mapping for WordPress security audits.
Open Source Intelligence (OSINT)
Moreover, other info about the target to conduct a WordPress security audit can be gathered from the public domain. Information like:
Number of Subdomains available.
Nameservers.
Ownership info and emails of employees(for social engineering attacks).
Geolocation.
The resources that can be used for gathering OSNIT are:
Whois.com
Socialmention.com
recon-ng (Kali Linux tool)
theharvester (Kali Linux tool)
Shodan search engine
Netcraft
Dark Web Sites:
http://onion.city/
https://ahmia.fi/search/
http://thehiddenwiki.org/
http://xmh57jrzrnw6insl.onion/ (Torch a.k.a. The Tor Search)
WPintel Chrome Plugin
You can use a WordPress Vulnerability scanner plugin like WPintel to scan your WordPress site for vulnerabilities, version, themes, plugins, and even enumerate users.
Need a complete WordPress security audit?. Drop us a message on the chat widget, and we’d be happy to help you fix it. Help me with my WordPress Penetration Testing now.
WordPress Penetration Testing: Discovery
Post mapping all the technologies, it is now time for finding active vulnerabilities to conduct a WordPress security audit. The discovery p...
-
Post mapping all the technologies, it is now time for finding active vulnerabilities to conduct a WordPress security audit. The discovery p...
-
Article Summary These days, Cyber attacks have become a regular phenomenon, featuring almost every week in the headlines. At times, it’s j...









