ZeroHour
Cyber Security Newspublished ()ingested Tushar Subhra Dutta
Part of a story covered by 2 sources: “MikroTrick: Chained MikroTik RouterOS SSH Flaws Enable Unauthenticated Full Admin Takeover of Internet-Exposed Routers” — merged summary and timeline →

MikroTrick Attack Lets Hackers Gain Full Admin Control of MikroTik Routers Without Login

highExploit / PoC exploited in the wildimportance 78CVE-2026-67279CVE-2026-86060
AI summary · glm-5.3-flash

Bishop Fox's MikroTrick chains CVE-2026-67279 and CVE-2026-86060 to gain unauthenticated admin control of internet-exposed MikroTik RouterOS devices, with compromise evidence.

MikroTrick chains CVE-2026-67279, an SSH rekeying flaw letting unauthenticated clients reach post-authentication functions, with CVE-2026-86060, where dash-prefixed usernames make a helper load a trusted identity record granting full administrator access on RouterOS 7.x builds. Bishop Fox reproduced full passwordless takeover and found configuration artifacts on internet-facing devices, indicating exploitation began before the flaws became public. Fixes shipped in RouterOS 6.49.21, 7.23.4, and 7.24.2; observed persistence includes a 'logrotate' script and 'daily-maint' scheduler recreating a privileged account with owner="0".

  • Chained SSH flaws yield unauthenticated full admin control on RouterOS 7.x
  • Rekeying bypass also affects 6.x, but full takeover was not reproduced there
  • IoCs: logrotate script, daily-maint scheduler at 03:00, owner="0" artifacts
  • Patching blocks new attacks but does not evict intruders already established
  • Treat exposed routers as compromised; rotate secrets and restrict SSH
VendorsMikroTik
ProductsRouterOS
OrganizationsBishop Fox

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2026-67279
Unauthenticated SSH Session Bypass Enables File Writes in MikroTik RouterOS

CVE-2026-67279 is an authentication-ordering flaw (CWE-841) in the SSH server of MikroTik RouterOS: after a client-requested SSH rekey, the server enters the connection protocol even though user authentication was never attempted. An unauthenticated SSH client can therefore open a session channel and send an exec request, and on affected builds the server dispatches the command without any credentials. This lets the attacker create, overwrite, and reconstruct files in the RouterOS managed file namespace, including support files that contain configuration and diagnostic data. Any MikroTik device running RouterOS builds older than the fixed releases is affected, although remote exploitation requires the SSH service to be reachable by the attacker. No public proof-of-concept is known, the issue is not in CISA's KEV catalog, and EPSS estimates a 0.4% probability of exploitation in the next 30 days, so no exploitation is currently known.

Do: Upgrade RouterOS to 6.49.21 (Long-term v6), 7.23.4 (Long-term v7), or 7.24.2 (Stable). Until patched, restrict SSH access to trusted management networks/VPN or disable the SSH service where it is not needed. Review the RouterOS file list and SSH logs for unexpected or reconstructed files and session activity, since attackers have recently chained multiple MikroTik flaws against routers.

6.9<1%
  • MikroTik RouterOS (Long-term branch, v6) prior to 6.49.21
  • MikroTik RouterOS (Long-term branch, v7) prior to 7.23.4
  • MikroTik RouterOS (Stable branch, v7) prior to 7.24.2
massmillions of installed RouterOS devices, with plausibly hundreds of thousands of SSH-exposed systems
CVE-2026-86060
Argument-Injection Flaw in MikroTik RouterOS SSH Login Enables Privilege Escalation

CVE-2026-86060 is an argument-injection flaw (CWE-88) in MikroTik RouterOS's SSH login path: when a login supplies a username beginning with a prohibited character, the RouterOS login helper mishandles the argument, allowing the trusted RouterOS policy mask to be changed and privileges to be escalated. An unauthenticated attacker only needs the ability to reach the router's SSH service, since exploitation happens during the SSH login process itself. By altering the policy mask the attacker gains elevated rights on the device, and news reports indicate attackers have used this technique — including logins with usernames such as '-2' — as part of chains that take over routers without needing a password. Any RouterOS deployment running versions before the fixes (6.49.21 Long-term, 7.23.4 Long-term, 7.24.2 Stable) with SSH enabled or reachable is affected, with internet-exposed SSH at highest risk. Multiple outlets report the RouterOS flaws are being actively exploited in the wild, although no public proof-of-concept is known and the flaw is not yet in CISA KEV.

Do: Upgrade RouterOS to 6.49.21 (Long-term), 7.23.4 (Long-term) or 7.24.2 (Stable) as applicable. Until patched, restrict SSH (TCP 22) to trusted management networks or disable the SSH service if unused, and review authentication logs and user/group policy settings for tampering — reports indicate attackers log in with usernames beginning with '-' (e.g., '-2').

9.21% KEV PoC ×2
  • MikroTik RouterOS v6 (Long-term channel) versions prior to 6.49.21 (fixed in 6.49.21)
  • MikroTik RouterOS v7 (Long-term channel) versions prior to 7.23.4 (fixed in 7.23.4)
  • MikroTik RouterOS v7 (Stable channel) versions prior to 7.24.2 (fixed in 7.24.2)
mass≈1M+ devices: hundreds of thousands to over a million RouterOS devices are routinely observed internet-exposed, and far more expose SSH to the LAN
Full article809 words · extracted from cybersecuritynews.com · click to collapse

MikroTik router owners face a security problem after researchers reproduced a takeover chain that can hand an outsider full administrator control without a password.

The attack, MikroTrick, targets exposed RouterOS devices through SSH and can turn a network gateway into an attacker-controlled foothold. The risk is serious because a router handles traffic entering and leaving a home or business.

An intruder with administrative rights could change settings, create hidden accounts, intercept data, or use the device to reach systems behind it. Evidence indicates exploitation began before the flaws became public.

Bishop Fox identified the chain while examining the flaws and later found configuration artifacts consistent with real-world compromise on internet-facing devices.

Bishop Fox said in a report shared with Cyber Security News (CSN) that its testing reproduced a full takeover on vulnerable 7.x builds.

The disclosure follows reports of active MikroTik RouterOS exploitation that urged administrators to update exposed equipment. The findings add a warning: an update blocks fresh attacks, but does not remove an attacker who has already created a way back into the router.

MikroTrick Attack Lets Hackers Gain Full Admin Control of MikroTik Routers

MikroTrick combines CVE-2026-67279 and CVE-2026-86060, two weaknesses at different points in the RouterOS SSH login process. Neither needs a stolen password in testing, making internet-exposed SSH services the main concern for defenders.

The first bug appears during SSH rekeying, a routine process that refreshes encryption keys in a connection. On affected builds, a client that has not logged in can use rekeying to reach functions available only after authentication.

It can open a session channel and request command execution, although it has no valid identity yet. The second bug turns that limited foothold into full control. RouterOS sends the username supplied over SSH to a helper that assigns identity and permissions.

A value beginning with a dash can make the helper read a trusted identity record from an internal channel instead of treating it as a normal username. On vulnerable 7.x versions, researchers found that an attacker-controlled terminal can supply that record.

By providing an administrator identity and permissions, an attacker can cause the device to accept them without normal login. That is why this is more severe than a simple bypass and why unauthenticated router access risks deserve rapid attention.

The first-stage bypass also affects 6.x, but Bishop Fox did not achieve an administrative session there with the same method. The tested full takeover applies to vulnerable RouterOS 7.x builds. That distinction matters for remediation, but is no reason to leave an exposed device unpatched.

Patch, Hunt, and Recover

MikroTik addressed the six flaws covered by the September advisory in supported releases. Organizations should update the applicable branch to RouterOS 6.49.21, 7.23.4, 7.24.2, or later.

The changes prevent unauthenticated sessions from reaching protected requests and reject usernames that could invoke the helper’s special control syntax.

Patching alone is not a cleanup plan. Administrators should treat previously exposed routers as potentially compromised, then review privileged users, configuration history, remote logs, scripts, schedulers, proxies, tunnels, and the RouterOS flagged state.

The importance of checking configuration is reinforced by MikroTik botnet exposure risks, where unpatched internet-facing routers remained a target.

Bishop Fox found that RouterOS login records may vanish after a reboot because logs are stored in memory by default. However, persistence can survive.

Researchers observed a script and scheduled task that recreated a privileged account daily, while their ownership appeared as numeric identity 0 rather than a named administrator.

This is a hunting lead, not proof by itself, since legitimate objects may have unusual ownership. If compromise is suspected, collect the configuration and logs before resetting the router.

Rebuild it from a verified baseline, rotate every password, key, and other secret it stored or could have observed, and limit SSH to trusted administration networks.

These steps can prevent the traffic monitoring and internal access seen in Cisco router espionage incidents, where compromised gateways supported broader intrusion.

Indicators of compromise (IoCs):-

TypeIndicatorDescription
RouterOS script namelogrotateScript observed on compromised devices that recreated a full-privilege account if it was removed
RouterOS scheduler namedaily-maintScheduled task configured to run the logrotate script once daily at 03:00
RouterOS ownership artifactowner="0"Numeric ownership associated with suspicious persistence objects and objects created through the tested attack chain

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Cut every SOC alert investigation by 21 min. Power your SOC with instant IOC context for immediate response: Integrate TI Lookup in your SOC

Tushar Subhra Dutta

Tushar is a senior cybersecurity and breach reporter. He specializes in covering cybersecurity news, trends, and emerging threats, data breaches, and malware attacks. With years of experience, he brings clarity and depth to complex security topics.

Text extracted automatically; images, tables and formatting may be missing. Original: https://cybersecuritynews.com/mikrotrick-attack/