Skip to content
Topic

Hardening

Securing the router: services, users, management access, vulnerabilities to close: all dojo articles on this topic.

Illustrazione per Il matcher psd di MikroTik: come RouterOS riconosce le scansioni di porte
Knowledge base
Knowledge base · Port scan detection

MikroTik’s psd matcher: how RouterOS spots port scans

the RouterOS firewall's psd matcher recognizes port scans: it adds a weight for each different port the same address touches in quick succession, and when the total reaches the threshold the rule fires. Usually it puts the scanner in an address list, and another rule drops it. It goes below the rules that accept the good traffic, and it doesn't see slow scans.

7 min read
Illustrazione per Firewall filter MikroTik: chain input, forward, output e ordine delle regoleKnowledge base
Knowledge base · Firewall filter

MikroTik firewall filter: input, forward, output chains and rule order

The RouterOS firewall filter sorts every packet into one of three chains: input (to the router), forward (through the router), output (from the router). In each chain the rules are read top to bottom and the first one that matches with an action like accept or drop ends the game; if none matches, the packet passes. That's why a new rule always goes above the final drop, never below.

Illustrazione per Address list del firewall MikroTik: come funzionano in RouterOS 7Knowledge base
Knowledge base · Address list

MikroTik firewall address lists: how they work in RouterOS

An address list is a list of addresses with a name, which firewall rules use in place of an address written by hand. You write the entries yourself (static) or the firewall adds them as traffic goes by (dynamic, usually with an expiry). On this mechanism you build blacklists, port knocking, management allowlists, and domain filters.

Illustrazione per Interface list MikroTik: come funzionano e perché il firewall le preferisceKnowledge base
Knowledge base · Interface list

MikroTik interface lists: how they work and why the firewall likes them

An interface list is a group of interfaces with a name, for example WAN or LAN. Firewall rules, neighbor discovery, and the MAC server look at the list instead of the single port: when you add a PPPoE line, an LTE one, or a second WAN, you put it in the list and the rules apply to it right away.

Illustrazione per CVE-2026-84411Security
CVE-2026-84411

Critical vulnerability in RouterOS web service

CVE-2026-84411 is a critical vulnerability (CVSS 9.8) in the RouterOS management web service that allows an unauthenticated attacker to execute arbitrary code as root or cause a denial of service. All RouterOS versions below 7.24 are affected. The immediate action is to update the firmware to version 7.24 or later and restrict access to the web service to trusted networks only.

Critical · 9.8
Illustrazione per CVE-2025-56566Security
CVE-2025-56566

Cleartext credentials on SPI flash

MikroTik firmware 7.19.4 stores authentication credentials and network state in cleartext on non-volatile memory. An attacker with physical access to the device can extract this data from an SPI flash dump without authenticating. No corrective versions or specific mitigations have been communicated by the vendor.

Medium · 4.6
Illustrazione per CVE-2026-89020Security
CVE-2026-89020

Stack-based buffer overflow in mtget (RouterOS)

CVE-2026-89020 is a stack-based buffer overflow vulnerability in the mtget binary of RouterOS that allows an authenticated user to crash the mtget worker process by sending a /tool fetch command with a TFTP path of 507 bytes or more. RouterOS versions prior to 7.23.4 (long-term) and 7.24.2 (stable) are affected. To protect yourself, you must update to one of the indicated fixed versions.

Medium · 4.3
Illustrazione per CVE-2026-67277Security
CVE-2026-67277

Critical vulnerability in the RouterOS btest service

CVE-2026-67277 is a high-severity vulnerability (CVSS 8.2) that allows an unauthenticated client to cause a RouterOS kernel reboot via the Bandwidth Test (btest) service. The vulnerability affects versions prior to 6.49.21, 7.23.4, and 7.24.2 and was added to the CISA KEV catalog on September 10, 2026. You must immediately update the firmware to the fixed versions or disable the btest service if it is not in use.

High · 8.2Exploited
Illustrazione per Aggiornamento di sicurezza critico per RouterOS: cosa fare subitoAdvisories
MikroTik advisory

RouterOS: security advisory and fixed versions

MikroTik has released a critical security update for RouterOS due to a recently discovered vulnerability. While most configurations are not at immediate risk, the update is strongly recommended for all users. The fixed versions include 7.25 beta 3, 7.24.2, 7.23.4, and 6.49.21 (and later).

Illustrazione per Port knocking su MikroTik: WinBox si apre solo a chi bussaDojo

Port knocking on MikroTik: WinBox opens only to those who knock

The router's management port stays closed to everyone and opens for one hour only to whoever touches three ports in the right sequence. The RouterOS 7 firewall rules, three ways to knock from Linux (knock, nc and pure bash), and how much you can trust it.

Illustrazione per Difetto di gestione sessioni nell'API di RouterOSSecurity
CVE-2026-14227

Session Management Flaw in RouterOS API

CVE-2026-14227 is an Insufficient Session Expiration vulnerability in the RouterOS API that allows authenticated sessions to retain elevated privileges even after rights are reduced or the timeout is exceeded. It affects all RouterOS versions with the API enabled and reachable from untrusted networks. Immediate mitigation consists of disabling the API if not required or restricting access to authorized hosts only, pending a corrective release.

Medium · 4.9
Illustrazione per CVE-2026-16347Security
CVE-2026-16347

RouterOS API Vulnerability: Brute-Force Risk

CVE-2026-16347 is a high-severity vulnerability (CVSS 8.8) affecting all RouterOS versions due to the lack of effective limits on API authentication attempts. An attacker can perform a high volume of login attempts to guess administrative credentials. Immediate mitigation consists of disabling the API if not required or restricting access to authorized management hosts only, pending a corrective release.

High · 8.8
Illustrazione per CVE-2026-39042Security
CVE-2026-39042

Denial of Service in libumsg.so of RouterOS

CVE-2026-39042 is an Integer Overflow or Wraparound vulnerability in the unflatten() function of the libumsg.so library that allows a remote attacker to cause a denial of service. It affects versions 7.21.x prior to v.7.21.4 and 7.22.x prior to v.7.22.2. You must update the firmware to the indicated corrective versions.

High · 7.5