
Laboratório reproduzível para CVE-2020-0610 (BlueGate) - vulnerabilidade de execução remota de código no Windows RD Gateway via UDP/DTLS. Inclui scripts PowerShell, guia de configuração e exemplos de validação de template nuclei.
Nuclei PR: https://github.com/projectdiscovery/nuclei-templates/pull/13076
Um ambiente laboratorial abrangente e reproduzível para CVE-2020-0610 (BlueGate), uma vulnerabilidade crítica de execução remota de código pré-autenticação no Microsoft Windows Remote Desktop Gateway (RD Gateway). Este laboratório permite que pesquisadores de segurança testem e validem a vulnerabilidade com segurança usando técnicas mínimas e não destrutivas de handshake DTLS.
CVE-2020-0610 é uma vulnerabilidade crítica de RCE no Windows RD Gateway que permite que atacantes não autenticados executem código arbitrário enviando pacotes UDP especialmente criados para a porta 3391. A vulnerabilidade afeta:
Pontuação CVSS: 9.8 (Crítica) Vetor de Ataque: Rede (UDP/3391) Autenticação: Nenhuma exigida Impacto: Comprometimento total do 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
O principal indicador é a presença do trailer ffff0080 (representação little-endian de 0x8000ffff) em sistemas corrigidos.
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 laboratório foi criado para apoiar a comunidade de pesquisa em segurança. Contribuições são bem-vindas:
Este ambiente de laboratório é fornecido apenas para fins educacionais e de teste de segurança autorizado. Os usuários são responsáveis por:
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