MikroTik RouterOS is expected to keep an SSH connection in the transport or user-authentication phase until the server accepts user authentication. The defect is improper enforcement of this behavioral workflow (CWE-841): after an attacker-controlled rekey request completes, the server advances to connection and channel handling even though no authentication was attempted.
The high-level sequence is:
- A client reaches the RouterOS SSH service and negotiates an encrypted connection.
- Before user authentication, the client requests a rekey.
- On an affected build, the post-rekey state is treated as if channel handling were permitted.
- The client opens a
session channel and sends an exec request; the server dispatches the command and exposes file operations in the RouterOS managed file namespace.
The attacker-controlled input is the SSH protocol exchange, not a valid password, key, or authenticated username. Public evidence identifies the state transition and resulting file operations, but does not identify a lower-level function or parser defect beyond the workflow error.