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:
Joomla database
- Check the Official documentation
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
Templates
on the bottom left underConfiguration
to pull up the templates menu. - Click on a template name. Letโs choose
protostar
under theTemplate
column header. This will bring us to theTemplates: Customise
page.
- 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:
- Save & Close
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