> 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/business-logic/inconsistent-security-controls.md).

# 一貫性のないセキュリティ制御

一貫性のないセキュリティ制御の PortSwigger Web Security Academy ラボ向けノート。攻撃フロー、ペイロードテスト、Burp Suite による検証、および是正策の文脈を含みます。

### 一貫性のないセキュリティ制御

**ラボの目的**

このラボには、一貫性のないセキュリティチェックに関連する論理的な欠陥があります。 / 任意のユーザーが、本来は会社の従業員だけに予約された管理機能にアクセスできます。 / 目的は、管理パネルにアクセスしてユーザーを削除することです **carlos**.

**初期観察**

管理インターフェースに直接アクセスしようとすると、次のメッセージが表示されます:

> *管理インターフェースは、DontWannaCryユーザーとしてログインしている場合にのみ利用できます*

へのアクセス `/admin` したがって、〜に属するユーザーに制限されます **DontWannaCry** ドメインに存在するアプリケーションの一覧を作っていきましょう。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-00b61d550c80761c4d65153f3db8f1ae6e423d1a%2Fimage%20(221).png?alt=media" alt=""><figcaption></figcaption></figure>

**登録の試行**

新しいユーザーは次の内容で登録されます:

* **ユーザー名**: `DontWannaCry` （既に存在する）
* **メールアドレス**: 攻撃者が管理するアドレス/ `attacker@exploit-0a2500bc04ce231c81841ade012e0049.exploit-server.net`

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-98e59af6772b98d590529f0085d8a13439a0f565%2Fimage%20(224).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-5a54ffad4a29badedc933d6a9bcbabe5cca8b43c%2Fimage%20(225).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-af619b5a42ea8801e4110ff2ff329c737606e71d%2Fimage%20(226).png?alt=media" alt=""><figcaption></figcaption></figure>

使用した認証情報は次のとおりです:

* **ユーザー**: `DontWannaCry`
* **パスワード**: `jordan`

接続は正常に機能します。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-5ef776b0321aeeca5733e0b6904b5f3320e67e7d%2Fimage%20(227).png?alt=media" alt=""><figcaption></figcaption></figure>

**メールアドレスの変更**

ログインすると、追加の検証なしに次の方法でアカウントのメールアドレスを変更できます:

```bash
jordan@dontwannacry.com
```

この変更の正当性は確認されません。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-d66e12ee6fb36b1bab6e11f7265e81e61bb064fd%2Fimage%20(228).png?alt=media" alt=""><figcaption></figcaption></figure>

**管理インターフェースへのアクセス**

メールを変更した後、そのユーザーは次のドメインに属すると見なされます **DontWannaCry**。 / 〜へのアクセス `/admin` インターフェースへのアクセスが許可されます。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-e9764a777490eae8513db1f813f3ac108f655a4c%2Fimage%20(229).png?alt=media" 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 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/business-logic/inconsistent-security-controls.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.
