Skip to content
Topic

WinBox and WebFig

WinBox, WebFig, and the router’s web management service: all dojo articles on this topic.

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 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 ACME in casa: la tua CA interna sul MikroTikDojo

ACME at home: your own internal CA on MikroTik

ACME is a standard, not just Let's Encrypt: point the RouterOS client at your own internal CA (step-ca) and the router issues and renews the certificates of its internal services on its own, without opening anything to the Internet. Install on Debian/Ubuntu, import the root, issuance and a packet-level capture. Tested in the lab.

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 HTTPS vero sul MikroTik con Let's EncryptDojo

Real HTTPS on MikroTik with Let’s Encrypt

A real, free, automatic certificate for the router with the RouterOS 7 ACME client: we open port 80, watch the http-01 challenge packet by packet (with two instructive failures, scanners and MPIC included), dissect the issued certificate and follow the chain down to ISRG Root X1. Tested in the lab.

Illustrazione per CVE-2026-103903: Bypass autenticazione WinBox su RouterOS < 7.24.5Lab
Lab · CVE-2026-103903

CVE-2026-103903: WinBox authentication bypass on RouterOS < 7.24.5

We demonstrated that a user with reduced privileges can obtain the authorization policy of an administrative account by manipulating the WinBox authentication process. However, we were unable to elevate the actual privileges of the attacker's session.

Illustrazione per CVE-2026-89035: Replay token di sessione WebFig su RouterOSLab
Lab · CVE-2026-89035

CVE-2026-89035: WebFig session token replay on RouterOS

We successfully reproduced the CVE-2026-89035 vulnerability on a RouterOS 7.24.5 CHR, demonstrating that a captured WebFig session token can be replayed on a new ECDH connection to obtain administrative access without a password. The vulnerability is fixed in RouterOS versions 7.24.6 and 7.23.7.

Illustrazione per CVE-2026-89035Security
CVE-2026-89035

WebFig Vulnerability: Session Token Replay

CVE-2026-89035 is an authentication vulnerability in the RouterOS WebFig interface that allows an attacker to reuse stolen session tokens to gain persistent administrative access. It affects versions up to 7.24.5; no stable fixed version is currently available. If you use WebFig, ensure it is reachable only from the trusted administration network and consider disabling the service if not required.

High · 7.4
Illustrazione per CVE-2026-67281: Path traversal e crash WebFig su RouterOSLab
Lab · CVE-2026-67281

CVE-2026-67281: Path traversal and WebFig crash on RouterOS

We reproduced system file reading (path traversal) with an authenticated session and the WebFig service crash without authentication, but we were unable to achieve unauthenticated file reading. The vulnerability is confirmed on RouterOS 7.22.3 and 7.24.1.

Illustrazione per Prova in laboratorioLab
Lab · CVE-2026-84411

CVE-2026-84411: Persistent DoS on RouterOS WebFig Reproduced in the Lab

We deterministically reproduced a persistent Denial of Service on the RouterOS WebFig service, caused by an integer underflow that hangs the www process. The issue is present in versions up to 7.22.3 and is resolved starting from version 7.23, with the complete fix recommended in 7.24.