WordPress

WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes.

-- Wikipedia

Attacking WordPress | HackerTarget.com

nmap

nmap -p80 --script http-wordpress-enum --script-args check-latest=true,root=/wordpress -vvv <ip>
nmap -p80 --script http-wordpress-users --script-args basepath=/wp/,limit=100 -vvv <ip>
nmap -sV --script http-wordpress-brute --script-args uri=/wp/wp-login.php -vvv <ip>

(may take some time)

User enum

curl http://<host>/index.php/wp-json/wp/v2/users

WPScan

WordPress Security Scanner -> Register on wpscan.com to get an API token, to include checking of the "WordPress Vulnerability Database".

Enumerate (PWK2.0 style)

Enumerate users

Interesting files

Web Security Geeks - The Security Blog: Pentesting CMS : Wordpress Joomla Drupal

Install reverse shell plugin (authenticated)

Zip the file

Install the plugin Plugins -> Add New -> Upload Plugin -> Browse -> Install Now

execute command

Get a full shell

  • Generate payload using msfvenom

  • Upload via SimpleHTTPServer and wget (url encoding!)

  • chmod +x

  • Execute

Last updated