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

# 调试页面上的信息泄露

### 调试页面上的信息泄露

**实验说明**

该实验包含一个会泄露应用程序敏感信息的调试页面。/ 目标是识别并提交环境变量 **SECRET/ KEY**.

**初步观察**

通过拦截 HTTP 请求，我们看到发送了一个 **GET** 包含与 socket 密钥相关参数的查询。/ 这表明存在暴露的调试或诊断机制。

**使用 Burp Suite 进行分析**

* 通过查看 **站点地图** 在 Burp Suite 中，识别出一个敏感页面。
* 一个 **phpinfo** 页面可访问，这是一个严重的信息泄露。

<figure><img src="/files/66ff707ce43c0c521d62819a8d6d0ff1df244b08" alt=""><figcaption></figcaption></figure>

**存在漏洞的资源**

已识别的路径：

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

此页面显示 PHP 的完整配置，包括环境变量。

**泄露的敏感数据**

在 `phpinfo.php` 页面上，显示了以下变量：

* **SECRET/\_KEY** :

<figure><img src="/files/195df0c3f6a9b56514826c422b720f54a31577e8" 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/zh/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.
