> 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/access-control.md).

# 访问控制

访问控制失效、IDOR、权限提升、角色操纵、授权绕过以及管理员面板暴露。

PortSwigger Web Security Academy 实验室的访问控制笔记，重点关注实际测试步骤、Burp Suite 验证、payload 行为和利用流程。

## 测试流程

1. 识别存在漏洞的功能，以及相关的请求、参数、请求头、Cookie 或浏览器端 sink。
2. 在进一步发起攻击之前，先在 Burp Suite 中使用最小有效载荷复现该行为。
3. 使用清晰的概念验证来验证影响，例如账户访问、数据泄露、代码执行、SSRF 或状态变更。
4. 在记录利用路径时，保持有效载荷、URL、令牌和实验室凭据不变。

## 实验

<table><thead><tr><th data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="/zh/web/access-control/access-control-based-on-the-referer-header.md">基于 Referer 头的访问控制</a></td></tr><tr><td><a href="/zh/web/access-control/admin-functionality-with-unpredictable-url.md">使用不可预测 URL 的管理员功能</a></td></tr><tr><td><a href="/zh/web/access-control/bypassing-access-control-based-on-http-method.md">通过 HTTP 方法绕过访问控制</a></td></tr><tr><td><a href="/zh/web/access-control/bypassing-url-based-access-control.md">绕过基于 URL 的访问控制</a></td></tr><tr><td><a href="/zh/web/access-control/change-role-in-user-profile.md">在用户资料中更改角色</a></td></tr><tr><td><a href="/zh/web/access-control/changing-the-role-in-the-user-profile.md">更改用户资料中的角色</a></td></tr><tr><td><a href="/zh/web/access-control/data-filtering-during-redirection-with-parameter-controlled-id.md">通过参数控制 ID 进行重定向时的数据过滤</a></td></tr><tr><td><a href="/zh/web/access-control/insecure-direct-references-to-objects.md">对对象的不安全直接引用</a></td></tr><tr><td><a href="/zh/web/access-control/multi-step-process-without-access-control.md">无访问控制的多步骤流程</a></td></tr><tr><td><a href="/zh/web/access-control/password-filtering-via-parameter-controlled-id.md">通过参数控制 ID 进行密码过滤</a></td></tr><tr><td><a href="/zh/web/access-control/unprotected-admin-functionality.md">未受保护的管理员功能</a></td></tr><tr><td><a href="/zh/web/access-control/user-id-controlled-by-parameter.md">由参数控制的用户 ID</a></td></tr><tr><td><a href="/zh/web/access-control/user-id-controlled-by-parameter-unpredictable-guid.md">由参数控制的不可预测 GUID 用户 ID</a></td></tr><tr><td><a href="/zh/web/access-control/user-id-controlled-by-unpredictable-guid-parameter.md">由不可预测 GUID 参数控制的用户 ID</a></td></tr><tr><td><a href="/zh/web/access-control/user-role-controlled-by-a-parameter.md">由参数控制的用户角色</a></td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/zh/web/access-control.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
