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

# Divulgation d’informations sur une page de débogage

### Divulgation d’informations sur la page de débogage

**Description du laboratoire**

Ce laboratoire contient une page de débogage qui divulgue des informations sensibles sur l’application. / L’objectif est d’identifier et de soumettre la variable d’environnement **SECRET/ CLÉ**.

**Observation initiale**

En interceptant les requêtes HTTP, nous voyons l’envoi d’une **GET** requête contenant un paramètre lié à une clé de socket. / Cela indique la présence de mécanismes de débogage ou de diagnostic exposés.

**Analyse avec Burp Suite**

* En explorant le **Plan du site** de Burp Suite, une page sensible est identifiée.
* Un **phpinfo** est accessible, ce qui constitue une fuite d’informations critique.

<figure><img src="/files/70031b0b109a6dddf33a700f6dad0c3d4b998d9f" alt=""><figcaption></figcaption></figure>

**Ressource vulnérable**

Chemin identifié :

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

Cette page affiche la configuration complète de PHP, y compris les variables d’environnement.

**Données sensibles divulguées**

Sur la `phpinfo.php` page, la variable suivante est affichée :

* **SECRET/\_KEY** :

<figure><img src="/files/315fb5db8a33702ba9c319809ae6d8464d7ff674" 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/fr/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.
