コンテンツにスキップ

API Discoveryで検出されたエンドポイントに対する自動BOLA保護 

本記事はAPI Discovery(APID)により検出されたエンドポイントに対する自動BOLA保護について説明します。

その他のBOLA保護手段

あるいは、または併せてトリガによるBOLA保護を設定できます。

Overview

Behavioral attacks such as Broken Object Level Authorization (BOLA) exploit the vulnerability of the same name. This vulnerability allows an attacker to access an object by its identifier via an API request and either read or modify its data bypassing an authorization mechanism. This article instructs you on protecting your applications against BOLA attacks.

By default, Wallarm automatically discovers only vulnerabilities of the BOLA type (also known as IDOR) but does not detect its exploitation attempts.

BOLA protection restrictions

Only Wallarm node 4.2 and above supports BOLA attack detection.

Wallarm node 4.2 and above analyzes only the following requests for BOLA attack signs:

Requirements

To protect resources from BOLA attacks, make sure your environment meets the following requirements:

  • If the filtering node is deployed behind a proxy server or load balancer, configure displaying real clients' IP addresses.

保護ロジック

Once BOLA protection is enabled, Wallarm:

  1. Identifies API endpoints that are most likely to be the target of BOLA attacks, e.g. those with variability in path parameters: domain.com/path1/path2/path3/{variative_path4}.

    This stage takes a period of time

    Identification of vulnerable API endpoints takes a period of time required for deep observation of discovered API inventory and incoming traffic trends.

    Only API endpoints explored by the API Discovery module are protected against BOLA attacks in the automated way. Protected endpoints are highlighted with the corresponding icon.

  2. Protects vulnerable API endpoints against BOLA attacks. The default protection logic is the following:

    • Requests to a vulnerable endpoint exceeding the 180 requests threshold from the same IP per minute are considered BOLA attacks.
    • Only register BOLA attacks in the event list when the threshold of requests from the same IP is reached. Wallarm does not block BOLA attacks. Requests will keep going to your applications.

      The corresponding reaction in the autoprotection template is Only register attacks.

  3. Reacts to changes in API by protecting new vulnerable endpoints and disabling protection for removed endpoints.

設定

API Discoveryが必要

自動BOLA保護はAPI Discoveryモジュールを使用している場合に利用できます。

自動保護を有効にするには、Wallarm Console → BOLA protection に移動し、スイッチを有効の状態に切り替えてください:

BOLAトリガ

次に、BOLA自動検出テンプレートを編集することにより、Wallarmのデフォルト動作を以下のように微調整できます。

  • 同一IPからのリクエストがBOLA攻撃と判断される閾値を変更します。

  • 閾値を超えた際の反応を変更します:

    • Denylist IP - WallarmはBOLA攻撃のソースとなるIPをdenylistに登録し、これらのIPからのすべての通信をブロックします。
    • Graylist IP - WallarmはBOLA攻撃のソースとなるIPをgraylistに登録し、これらのIPからの悪意あるリクエストのみを、フィルタリングノードが safe blocking mode の場合にブロックします。

BOLAトリガ

無効化

自動BOLA保護を無効にするには、BOLA protectionセクションでスイッチを無効の状態に切り替えてください。

API Discoveryのサブスクリプションが期限切れになると、自動BOLA保護は自動的に無効化されます。