Skip to content

Instantly share code, notes, and snippets.

View abdulgaphy's full-sized avatar

Raji Abdulgafar abdulgaphy

View GitHub Profile
@abdulgaphy
abdulgaphy / ms-msdt.MD
Created June 3, 2022 04:29 — forked from tothi/ms-msdt.MD
The MS-MSDT 0-day Office RCE Proof-of-Concept Payload Building Process

MS-MSDT 0-day Office RCE

MS Office docx files may contain external OLE Object references as HTML files. There is an HTML sceme "ms-msdt:" which invokes the msdt diagnostic tool, what is capable of executing arbitrary code (specified in parameters).

The result is a terrifying attack vector for getting RCE through opening malicious docx files (without using macros).

Here are the steps to build a Proof-of-Concept docx:

  1. Open Word (used up-to-date 2019 Pro, 16.0.10386.20017), create a dummy document, insert an (OLE) object (as a Bitmap Image), save it in docx.
@abdulgaphy
abdulgaphy / infosec_newbie.md
Created December 14, 2018 07:46 — forked from mubix/infosec_newbie.md
How to start in Infosec