> 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/ja/web/authentication/username-enumeration-via-different-responses.md).

# 異なるレスポンスを利用したユーザー名列挙

異なるレスポンスを利用したユーザー名列挙の PortSwigger Web Security Academy ラボ向けノート。攻撃フロー、ペイロードテスト、Burp Suite による検証、および是正策の文脈を含みます。

### 異なるレスポンスによるユーザー名列挙

このサイトは次の脆弱性があります:

* 異なるレスポンスメッセージによるユーザー名の列挙;
* 総当たりによるパスワード。

目的は次のとおりです:

1. 単語リストから有効なユーザー名を見つける。
2. 別の単語リストから、対応するパスワードを総当たりで探す。
3. ログインしてユーザーアカウントページにアクセスする。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-ccf67dcce26dcb02361d0b122a217b0baf941691%2F%7B61DF05E8-D935-493C-A8BA-42F89F5BF167%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 準備

* このサイトには典型的な **ログイン** フォームがあります。
* 次のリストがあります: **ユーザー名** および **passwords** は演習環境で提供されています。
* 接続要求を傍受して次へ送信します: **Burp Intruder**.

#### 1. ユーザーリスト

1. 接続試行を傍受して次へ送信します: **Intruder**.
2. ペイロードを次に配置します: **username** パラメータに管理者のユーザーIDを指定することで、管理者権限を取得できます。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-d64b3af1411e7ddc82aa5b4402b72fad22cbcc4c%2F%7B0A70DC87-588C-4D73-BCAF-F6C8640691A7%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

* 読み込む **ユーザーの単語リスト** は演習環境で提供されています。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-343bb5b164b93bdf0b805791b01f94bc649de7c3%2F%7B046A8173-59EB-484C-ABCC-B98AFAA50EC1%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

1. 攻撃を開始し、応答（ステータス、長さなど）を観察します。

ユーザー名 **`apollo`**&#x3067;は、応答が異なる **長さ** が他と異なります。

→ これは次を示しています: **`apollo`** は有効な **username**.

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-880b9c0db9f438e08a0ef307ec12294cc17e1d3a%2F%7B299782D1-1A98-4977-89AD-8C95D9068556%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 2. パスワードの総当たり攻撃

1. ログイン要求を次で再開します: **ユーザー名を次に固定して `apollo`**.
2. 次の方法で再度リクエストを送信します: **Intruder**.
3. 今回はペイロードを次に配置します: **パスワード** パラメータに管理者のユーザーIDを指定することで、管理者権限を取得できます。
4. 読み込む **パスワードリスト** が提供されています。
5. 攻撃を開始し、応答を分析します。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-b7ea540ea8a7329fdc8028f9da40afb6c901514f%2F%7B2AFE17EE-304B-469A-AD9D-EBBAD864C983%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

その **`mustang`** パスワードは異なる **応答を生成します** （例: 長さや内容）で、成功した **接続**.

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-f92948a7310a9632c0ef2d47e7803cabad1e056a%2F%7BE01944EF-74C1-4ACD-B148-FF4EB5AD9631%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 3. 最終ログイン

有効な認証情報は次のとおりです:

* **ユーザー名：** `apollo`
* **パスワード：** `mustang`


---

# 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/ja/web/authentication/username-enumeration-via-different-responses.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.
