Authentication bypass in MikroTik RouterOS

Published: 2018-04-24 | Updated: 2018-08-20
Severity Critical
Patch available YES
Number of vulnerabilities 1
CVE ID CVE-2018-14847
CWE ID CWE-287
Exploitation vector Network
Public exploit This vulnerability is being exploited in the wild.
Vulnerable software MikroTik RouterOS Subscribe
Vendor MikroTik

Security Advisory

This security advisory describes one critical risk vulnerability.

2018-04-25 - The bulletin was updated, added vulnerability details and information about in vulnerability exploitation in the wild, raised severity rating from High to Critical.
2018-05-20 - removed version 6.40.8 from list of vulnerable versions.
2018-08-20 - CVE added.

1) Improper authentication

Severity: Critical

CVSSv3: 9.1 [CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C] [PCI]

CVE-ID: CVE-2018-14847

CWE-ID: CWE-287 - Improper Authentication

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to improper authentication in the exposed by default Winbox interface on port 8291/TCP. A remote attacker can send specially crafted packets to the affected service, bypass authentication, download local database with user accounts and gain full access to the vulnerable device.

Successful exploitation of the vulnerability may result in system compromise.

Note: this vulnerability has being exploited in the wild in April 2018.

Mitigation

Update to version 6.40.8 or 6.42.1.

Vulnerable software versions

MikroTik RouterOS: 6.36.4, 6.40, 6.40.1, 6.40.2, 6.40.3, 6.40.4, 6.40.5, 6.40.6, 6.40.7, 6.41, 6.41.1, 6.41.2, 6.41.3, 6.41.4, 6.42

CPE External links

https://mikrotik.com/download/changelogs/
https://forum.mikrotik.com/viewtopic.php?f=21&t=133533

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

How the attacker can exploit this vulnerability?

The attacker would have to send a specially crafted request to the affected device in order to exploit this vulnerability.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.