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

# 身份验证

身份验证绕过、用户枚举、密码重置缺陷、2FA 绕过、暴力破解、会话 Cookie 和账户接管。

PortSwigger Web Security Academy 实验的认证说明，重点关注实际测试步骤、Burp Suite 验证、载荷行为以及利用流程。

## 测试流程

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/authentication/2fa-bypass-via-brute-force.md">通过暴力破解绕过 2FA</a></td></tr><tr><td><a href="/zh/web/authentication/broken-2fa-logic.md">有缺陷的 2FA 逻辑</a></td></tr><tr><td><a href="/zh/web/authentication/broken-brute-force-protection-ip-block.md">基于 IP 阻止的失效暴力破解防护</a></td></tr><tr><td><a href="/zh/web/authentication/broken-brute-force-protection-with-multiple-credentials-per-request.md">每次请求包含多个凭据的失效暴力破解防护</a></td></tr><tr><td><a href="/zh/web/authentication/brute-forcing-a-stay-logged-in-cookie.md">暴力破解持久会话 Cookie</a></td></tr><tr><td><a href="/zh/web/authentication/flawed-password-reset-logic.md">密码重置中的错误逻辑</a></td></tr><tr><td><a href="/zh/web/authentication/offline-password-cracking.md">离线密码破解</a></td></tr><tr><td><a href="/zh/web/authentication/password-brute-force-via-password-change.md">通过密码修改功能进行密码暴力破解</a></td></tr><tr><td><a href="/zh/web/authentication/password-reset-poisoning-via-middleware.md">通过中间件进行密码重置投毒</a></td></tr><tr><td><a href="/zh/web/authentication/simple-2fa-bypass.md">简单的 2FA 绕过</a></td></tr><tr><td><a href="/zh/web/authentication/username-enumeration-via-account-lock.md">通过账户锁定进行用户名枚举</a></td></tr><tr><td><a href="/zh/web/authentication/username-enumeration-via-different-responses.md">通过不同响应进行用户名枚举</a></td></tr><tr><td><a href="/zh/web/authentication/username-enumeration-via-response-timing.md">通过响应时间进行用户名枚举</a></td></tr><tr><td><a href="/zh/web/authentication/username-enumeration-via-subtly-different-responses.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/authentication.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.
