> 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/information-disclosure/information-disclosure-on-a-debug-page.md).

# Раскрытие информации на странице отладки

### Раскрытие информации на странице отладки

**Описание лабораторной работы**

Эта лабораторная работа содержит страницу отладки, которая раскрывает конфиденциальную информацию о приложении. / Цель состоит в том, чтобы выявить и отправить переменную окружения **SECRET/ KEY**.

**Первоначальное наблюдение**

Перехватывая HTTP-запросы, мы видим отправку **GET** запроса, содержащего параметр, связанный с ключом сокета. / Это указывает на наличие раскрытых механизмов отладки или диагностики.

**Анализ с помощью Burp Suite**

* Исследуя **Карта сайта** в Burp Suite обнаружена конфиденциальная страница.
* Один **phpinfo** страница доступна, что является критической утечкой информации.

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

**Уязвимый ресурс**

Обнаруженный путь:

```bash
/cgi-bin/phpinfo.php
```

Эта страница отображает полную конфигурацию PHP, включая переменные окружения.

**Раскрытые конфиденциальные данные**

На `phpinfo.php` странице отображается следующая переменная:

* **SECRET/\_KEY** :

<figure><img src="/files/8e0c8f6a8a467da40432835f74c746da79b07093" 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/information-disclosure/information-disclosure-on-a-debug-page.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.
