> 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-vulnerabilities/insecure-direct-object-reference-idor-attack/idors-url-snapshot-pentesting-web.md).

# IDOR URL 快照

**初步观察** 在分析了 **pcap** 使用 Wireshark 分析该文件后，未发现可直接利用的内容。

<figure><img src="/files/020e1e89992b5a237935815f517a31dba4b984bf" alt=""><figcaption></figcaption></figure>

然而，我们注意到每次上传文件时，都会创建一个 **快照** 。URL 匹配中包含一个提供快照标识符的参数，例如： `snapshot_data=2`.

<figure><img src="/files/32b8001e9efbdbd77e5f1dd536f6479b6ff62e3d" alt=""><figcaption></figcaption></figure>

通过修改 URL 中的参数来访问快照 0，我们获得了一个包含敏感信息的文件。

### **使用 Wireshark 分析**

通过检查该文件的帧 **pcap**，我们识别出一个用户的凭据：

* 用户名： `nathan`
* 密码： `Buck3tH4TF0RM3!`

<figure><img src="/files/a05c94484f53b70a9c1bbe412fceb6b17facaeac" 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-vulnerabilities/insecure-direct-object-reference-idor-attack/idors-url-snapshot-pentesting-web.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.
