Skip to content
Lab

Lab

RouterOS vulnerabilities tested in my lab: what happens, who is exposed, and how to defend yourself. For 30 days, only for dojo students.

Image generated locally with ComfyUI from randomly selected elements. How the images are created

Illustrazione per CVE-2026-39042: DoS pre-auth su WebFig via integer overflow in libumsg.so
Lab
Lab · CVE-2026-39042

CVE-2026-39042: Pre-auth DoS on WebFig via integer overflow in libumsg.so

We reproduced an integer overflow (CWE-190) in the nv::message::unflatten() function of RouterOS, allowing a remote unauthenticated attacker to crash the www (WebFig) process, causing a DoS of the web service. The crash was verified on RouterOS 7.20 and 7.22.1, while the fixed version 7.22.2 rejects the payload without interruption.

3 min read
Illustrazione per FOISted: il jailbreak di RouterOS v6 (e perché v7 è immune)Lab
Lab · RouterOS under the lens

FOISted: the RouterOS v6 jailbreak (and why v7 is immune)

In 2022, Margin Research presented a jailbreak for RouterOS v6 at REcon that worked on all versions from 6.34 to 6.49.6. The bug was in the www process: an IPC handler called FoisHandler took a pointer from the body of an M2 message and invoked it as a function. The protection was a policy bitmask (0x80000000) unreachable from the GUI, but bypassable by sending a raw M2 message with policy 0xFFFFFFFF. Combined with a ROP chain, it allowed arbitrary code execution. RouterOS v7 is immune: FoisHandler was removed in the architecture redesign. We verified this with strings on the www binary of v7.24.5: the string "Fois" does not appear. ---

Illustrazione per Dark web e RouterOS: anatomia di un compromesso in laboratorioLab
Lab · Dark web and RouterOS

Dark web and RouterOS: anatomy of a compromised router (and the script that unmasks it)

We take a lab router, compromise it with RouterOS commands alone — no malware — and make it confess with a read-only script. Plus the defence that writes to you: the configuration diff narrated by an AI, by email.

Illustrazione per CVE-2026-16347: Brute force API RouterOS su CHR 7.23.3Lab
Lab · CVE-2026-16347

CVE-2026-16347: RouterOS API brute force on CHR 7.23.3

We verified that the RouterOS API does not implement global rate-limiting or account lockout, allowing effective brute force attacks. With concurrent connections, the attempt rate exceeds 60 per second, making the attack feasible against weak passwords.

Illustrazione per EC-SRP5: l'autenticazione WinBox sotto la lenteLab
Lab · RouterOS Under the Microscope

EC-SRP5: WinBox Authentication Under the Microscope

We captured the WinBox authentication handshake (port 8291) and analyzed the EC-SRP5 protocol, a PAKE (Password-Authenticated Key Exchange) based on a 2001 IEEE draft that never became a standard. MikroTik modified it with a double-hash and the use of the Weierstrass projective form, making it incompatible with any reference implementation. The password cannot be extracted from the handshake alone, but the user enumeration oracle is closed on v7.24.5 (always 51 bytes of response). We found confirmations in the binaries: libucrypto.so contains both WCurve (Weierstrass) and Curve25519 (Montgomery), and user contains MD5, SHA1, and SHA256 for password hashing.

Illustrazione per Dark web e RouterOS: OSINT e monitoraggio in praticaLab
Lab · Dark web and RouterOS

Dark web and RouterOS: OSINT, your router seen from outside

Last week a router had published its entire configuration on the dark web. This time you step to the other side of the counter: five questions and real commands to see your router through the eyes of someone who would buy that access — before someone else does.

Illustrazione per CVE-2026-14227: Sessioni API attive mantengono permessi dopo downgradeLab
Lab · CVE-2026-14227

CVE-2026-14227: Active API sessions retain permissions after downgrade

We verified that on RouterOS 7.23.3, an active API session is not invalidated when user permissions are reduced. The user can continue to execute commands with previous privileges as long as the session remains open.

Illustrazione per Nova Messages (M2): il sistema nervoso di RouterOSLab
Lab · RouterOS under the microscope

Nova Messages (M2): The Nervous System of RouterOS

We decoded the M2 (Nova Message) protocol, the proprietary IPC system used by the 80 RouterOS processes to communicate with each other. It is a binary key-value format with an M2 magic number, 6 data types, and a SYS namespace for routing. The loader process acts as the central hub: it receives all messages and dispatches them to the destination. M2 is not just IPC: it is also the on-disk serialization format — the user database, backups, and configurations are all M2 messages. We wrote a Python parser and verified that M2 is active on RouterOS 7.24.5 via the /jsproxy handshake of WebFig.

Illustrazione per Dark web e RouterOS: come un router finisce nel mercato degli accessiLab
Lab · Dark web and RouterOS

Dark web and RouterOS: how a router ends up in the access market

Your router may already be for sale in the dark web's access market: your network, your «clean» IP, $2,700 on average. And to put it there nobody installed a virus — they just reconfigured it.

Illustrazione per CVE-2026-67277: Memory disclosure nel servizio btest di RouterOSLab
Lab · CVE-2026-67277

CVE-2026-67277: Memory disclosure in the btest service of RouterOS

We have verified that an unauthenticated client can exploit the btest service to extract uninitialized data from kernel memory. The issue is resolved by updating RouterOS to versions 6.49.21, 7.23.4, or 7.24.2.

Illustrazione per onionwatch: ho costruito un motore di ricerca del dark web (e non ci ho trovato quello che pensavo)Lab

onionwatch: I built a dark web search engine (and didn’t find what I thought I would)

I thought the dark web was the exploit shelf. Then I built an engine to look inside it and found a dump of stolen data, refilled every day by double-extortion ransomware.

Illustrazione per Cosa c'è dentro un firmware MikroTik? Apriamo un file .npkLab
Lab · RouterOS under the microscope

What’s inside a MikroTik firmware? Opening a .npk file

We opened a RouterOS 7.24.5 .npk file — 20 megabytes of compressed data containing a complete operating system: 80 processes, 15 libraries, 28 root CA certificates, 9 modular packages, 260 Linux 5.6.3 kernel modules, a full JavaScript web interface with its own Curve25519 implementation, and a database of 79 apps for traffic classification. It is not a "firmware update": it is RouterOS in its entirety, public, inspectable, and modifiable by anyone with access to the file.

Illustrazione per CVE-2025-56566: Credenziali in chiaro nella flash di RouterOS 7.19.4 e 7.24.5Lab
Lab · CVE-2025-56566

CVE-2025-56566: Plaintext credentials in the flash of RouterOS 7.19.4 and 7.24.5

We have verified that credentials for external services (SMTP, PPP) and DHCP leases are stored in plaintext in the non-volatile memory of MikroTik devices. The vulnerability persists in the latest stable version tested, 7.24.5, confirming the absence of a fix at the time of testing.