
Laboratorio reproducible para CVE-2020-0610 (BlueGate) - Vulnerabilidad de ejecución remota de código en Windows RD Gateway UDP/DTLS. Incluye scripts de PowerShell, guía de configuración y ejemplos de validación de plantillas nuclei.
PR de Nuclei: https://github.com/projectdiscovery/nuclei-templates/pull/13076
Un entorno de laboratorio completo y reproducible para CVE-2020-0610 (BlueGate), una vulnerabilidad crítica de ejecución remota de código sin autenticación previa en Microsoft Windows Remote Desktop Gateway (RD Gateway). Este laboratorio permite a los investigadores de seguridad probar y validar la vulnerabilidad de forma segura utilizando técnicas mínimas y no destructivas de handshake DTLS.
CVE-2020-0610 es una vulnerabilidad crítica de RCE en Windows RD Gateway que permite a atacantes no autenticados ejecutar código arbitrario enviando paquetes UDP especialmente diseñados al puerto 3391. La vulnerabilidad afecta a:
Puntuación CVSS: 9.8 (Crítica) Vector de ataque: Red (UDP/3391) Autenticación: No requerida Impacto: Compromiso total del sistema
# Via Server Manager GUI
Server Manager → Add Roles and Features → Remote Desktop Services → RD Gateway
# Via RD Gateway Manager
RD Gateway Manager → <ServerName> → Properties → Transport Settings
→ Check "Allow users to connect by using UDP" → OK
# Run as Administrator
powershell -ExecutionPolicy Bypass -File .\scripts\add-udp-3391-firewall.ps1
# Verify RD Gateway and firewall configuration
powershell -ExecutionPolicy Bypass -File .\scripts\sanity-check.ps1
# Using Nuclei scanner
nuclei -t network/cves/2020/CVE-2020-0610.yaml \
-u <target_host> \
-var rdg_port=3391 \
-var dtls_timeout=6 \
-debug
DEBUG_HEX:
NUCLEI_RESULT:VULNERABLE
DEBUG_HEX: 160303...ffff0080
NUCLEI_RESULT:NOT_VULNERABLE
El indicador clave es la presencia del sufijo ffff0080 (representación little-endian de 0x8000ffff) en sistemas parcheados.
lab-rdg-bluegate/
├── README.md # This comprehensive guide
├── scripts/
│ ├── add-udp-3391-firewall.ps1 # Firewall configuration
│ └── sanity-check.ps1 # System validation
└── samples/
├── nuclei-debug-vulnerable.txt # Example vulnerable output
└── nuclei-debug-patched.txt # Example patched output
Este laboratorio fue creado para apoyar a la comunidad de investigación en seguridad. Las contribuciones son bienvenidas:
Este entorno de laboratorio se proporciona únicamente con fines educativos y de pruebas de seguridad autorizadas. Los usuarios son responsables de:
CVE-2020-0610 BlueGate RD Gateway Windows Server Remote Code Execution UDP DTLS Nuclei Security Research Vulnerability Lab Penetration Testing Red Team Blue Team Cybersecurity