CWE一覧に戻る
CWE-441

意図しない代理人または仲介人(「混乱した代理人)

Unintended Proxy or Intermediary ('Confused Deputy')
脆弱性 レビュー中
JA

製品が上流コンポーネントからリクエスト、メッセージ、またはディレクティブを受け取るが、製品の制御圏外にある外部アクターにリクエストを転送する前に、製品がリクエストの元のソースを十分に保持しない。これにより、製品がリクエストの送信元であるかのように見え、上流コンポーネントと外部アクターとの間でプロキシまたは他の仲介者として機能することになる。

攻撃者がターゲットに直接コンタクトできないが、製品がターゲットにアクセスできる場合、攻撃者は製品にリクエストを送り、それをターゲットに転送させることができる。リクエストは攻撃者のシステムではなく、製品のシステムから送られているように見える。その結果、攻撃者は、リクエストが攻撃者から直接来ていないため、アクセス制御(ファイアウォールなど)を回避したり、悪意のあるリクエストの送信元を隠したりすることができる。

プロキシ機能とメッセージ転送はしばしば正当な目的を果たすので、この問題が脆弱性になるのは以下の場合だけである:

EN

The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. This causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor.

If an attacker cannot directly contact a target, but the product has access to the target, then the attacker can send a request to the product and have it be forwarded to the target. The request would appear to be coming from the product's system, not the attacker's system. As a result, the attacker can bypass access controls (such as firewalls) or hide the source of malicious requests, since the requests would not be coming directly from the attacker.

Since proxy functionality and message-forwarding often serve a legitimate purpose, this issue only becomes a vulnerability when:

Scope: Non-Repudiation, Access Control / Impact: Gain Privileges or Assume Identity; Hide Activities; Execute Unauthorized Code or Commands
Enforce the use of strong mutual authentication mechanism between the two parties.
Whenever a product is an intermediary or proxy for
transactions between two other components, the proxy core
should not drop the identity of the initiator of the
transaction. The immutability of the identity of the
initiator must be maintained and should be forwarded all the
way to the target.
MITRE公式ページ — CWE-441