MikroTik WinBox Authentication Downgrade Exposes Password Hashes

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2019-3981?

CVE-2019-3981 is a vulnerability classified as Channel Accessible by Non-Endpoint, affecting WinBox (affected versions: Winbox 3.20 and below.). This vulnerability is rated Low, with a CVSS score of 3.7. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

MikroTik Winbox 3.20 and below is vulnerable to man in the middle attacks. A man in the middle can downgrade the client's authentication protocol and recover the user's username and MD5 hashed password.

Affected products and scope

  • The normalized record identifies MikroTik WinBox 3.20 and below as affected.
  • Tenable's advisory also lists RouterOS 6.43 and above among the affected products for the related WinBox deployment.
  • The supplied evidence does not confirm an exact fixed release for this vulnerability. The status of other WinBox or RouterOS branches should therefore not be inferred solely because they are absent from the record.

Technical details

MikroTik WinBox uses a key-agreement mechanism during authentication. In affected deployments, RouterOS changed the WinBox interface from Diffie-Hellman to ECSRP-5 to remove the man-in-the-middle possibility, but a client can still be downgraded to Diffie-Hellman. An on-path attacker can influence the negotiation; after the Diffie-Hellman exchange, the client sends its username and an MD5-hashed password using a salt defined by the attacker. The WinBox interface uses port 8291, so the primary precondition is the ability to intercept or influence the management connection. The normalized attack characteristics indicate network reachability, no required privileges, no user interaction, and high attack complexity. This is consistent with CWE-300; the available evidence does not establish whether the recovered hash can be used directly, must be cracked first, or can be reused against another service.

Exploitability

  • Reachability: The attack is network-based and requires a man-in-the-middle position on the WinBox connection.
  • Authentication and interaction: The record indicates that no prior privileges and no additional user interaction are required.
  • Complexity: The attack has high complexity because the attacker must control or influence the network path.
  • Public status: The record marks a public exploit as available, and Tenable states that a proof of concept was published. The record does not establish observed exploitation, a named campaign, or a specific victim.

Technical impact

A man-in-the-middle attacker can force authentication to use a weaker mechanism and obtain the username and MD5 password hash. The confirmed technical outcome is credential confidentiality loss, not data modification or denial of service. If the hash is cracked or reused, an administrative account could be compromised; that possibility depends on password protection and other authentication controls. The primary affected scope is the confidentiality of the management session and its credentials, provided the attacker can influence the WinBox connection.

Business impact

The vulnerability can expose authentication information transmitted during an intercepted WinBox session. A disclosed username and password hash may contribute to account compromise if the hash is cracked, reused, or combined with other information; this is a possible consequence, not a confirmed outcome of every attack. The available evidence does not describe direct configuration changes, data modification, or service disruption. Operational risk is concentrated in management channels that traverse networks where an untrusted party can obtain a man-in-the-middle position.

Remediation

  1. Identify all WinBox clients and RouterOS devices within the affected scope, then follow the vendor's official remediation guidance. The supplied evidence does not confirm an exact fixed release; Tenable's advisory stated that no solution existed at publication time.
  2. Until an appropriate fix is verified, restrict WinBox access to trusted management networks and avoid carrying management traffic across paths where an attacker could interpose. This is a compensating control, not a confirmed fix.
  3. If exposure of credentials through a potentially intercepted session cannot be ruled out, consider rotating the related passwords and assess whether the same credentials were reused elsewhere.
  4. Recheck both WinBox clients and RouterOS devices after remediation. Do not treat a fix for one branch or component as proof that all parallel branches are remediated.

Detection

  1. Inventory workstations running WinBox and compare their versions with the affected boundary.
  2. Inventory MikroTik devices running RouterOS with the WinBox interface enabled or reachable, including services using port 8291.
  3. Identify management paths that traverse untrusted networks or segments where another party could intercept or alter the connection.
  4. Review authentication and management-access logs for unusual activity after sessions involving potentially affected clients. This is precautionary monitoring only; the available evidence does not define a specific IOC or log signature, and the absence of suspicious log entries cannot prove that exposure did not occur.
Sources (17)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.