Testing RouterOS SSH Host-Key Rejection in a Lab
CVE-2026-67280 is a trust-boundary defect, so the strongest post-patch test is a negative one. A RouterOS device should not complete an outbound SSH session with a different valid server that has been placed on the path. The test must verify rejection before credentials are sent and before command output is trusted.
Build a safe test scope
Use isolated RouterOS hardware or virtual instances and a dedicated test network. Do not redirect production traffic. The affected range is 6.0.0 before 7.25, and the fixed behavior is present in 7.25 or later. Keep a device on an affected lab build only if policy allows, isolate it, and remove it from production management paths.
Prepare two SSH servers with different valid host keys. The intended server should record every authentication attempt and command. The alternate server should be visibly distinct in logs but still complete a valid SSH handshake.
Establish the baseline
On the affected lab build, run a harmless command through /system ssh or /system ssh-exec to the intended server. Record the destination, username, key behavior, command output, and remote-server evidence.
Then route the connection to the alternate server without changing the destination identity expected by the test. Observe what the client does. The advisory says affected RouterOS could continue with an unrelated valid host key. Preserve the evidence and avoid using a real credential.
Test the fixed build
Upgrade the lab device to RouterOS 7.25 or later. Repeat the same test. Confirm that the client rejects the unexpected host identity before sending the test password and before accepting command output.
Verify the intended-server case as well. A control that blocks every connection is not a successful fix. The client should accept the expected identity, complete the intended action, and leave a reviewable record.
Test failure handling
Turn off the alternate server during a second run. Confirm that the automation fails closed and reports a connection error rather than treating silence as success. Then run a command that reaches the intended server but returns a non-success result. Confirm that the workflow records the distinction.
Test DNS and route changes within the lab. A correct host-key policy should protect the outbound session even when the path changes. If a test requires updating trust records, verify who can approve that change and how the change is logged.
Measure the exposed population carefully
ZoomEye's CVE filter returned 0 and the selected product query app="MikroTik RouterOS" returned 941,812 matches. The result is a product inventory, not a vulnerability confirmation.
Use internal version and job data to choose test owners and remediation priorities. A device that never calls /system ssh or /system ssh-exec still needs an accurate inventory record, but its immediate workflow risk differs.
Record the result
Keep the test build, source configuration, server key identities, commands, timestamps, logs, and pass or fail outcome. A later reviewer should be able to tell whether the wrong key was rejected, whether credentials were sent, and what the client reported.
The test completes when the fixed client rejects an unexpected valid host key, accepts the intended one, fails closed on connection errors, and produces evidence that operators can use in production monitoring.
Top comments (0)