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.
In Episode 2, we saw that RouterOS processes communicate via M2. But how does an external client — for example, the WinBox application on your laptop — authenticate? It cannot simply send an M2 message with the password in clear text. There must be a cryptographic protocol that protects the credentials.
For WebFig (port 80), MikroTik chose the standard path: ECDH (Elliptic Curve Diffie-Hellman) over Curve25519. The client and the server exchange public keys, derive a shared secret, and from then on everything is encrypted. The password travels encrypted inside the channel. Simple, standard, secure.
Reserved for members
This content is reserved for those in the dojo.
Entry is free: you subscribe to the newsletter with your email and then choose to join the dojo, without a password. How it works