Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Mikrotrick_POC — Testing tool for the Mikrotrick exploit (CVE-2026-67276) | Kitploit
Tools/GitHubGitHub/4rt-net/mikrotrick_poc
Vulnerability ScannersVulnerability AnalysisExploitationNetwork SecurityPenetration TestingAuthentication
GitHub4rt-net/mikrotrick_poc

Mikrotrick_POC

Testing tool for the Mikrotrick exploit (CVE-2026-67276)

View Repository
9h 49m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

RouterOS SSH Modulus-Confusion Validator (CVE-2026-67276)

An automated behavioral validator designed to detect the SSH public key authentication bypass vulnerability in MikroTik RouterOS (CVE-2026-67276).

The script tests whether an SSH service incomplete-validation flaw allows authentication by establishing a handshake using a forged signature matching only the targeted public key's modulus.

Vulnerability Overview

CVE-2026-67276 stems from incomplete RSA public-key verification within the RouterOS SSH daemon handler. When processing a client's public key authentication request, affected versions match only the key type and the RSA public modulus ($n$), omitting validation of the public exponent ($e$).

An operator who possesses the target user's configured authorized public key can forge a login payload. By submitting an ephemeral key blob where the exponent is set to $1$ ($e=1$) alongside the valid authorized modulus, a mathematically predictable signature matching the exact structure the verifier expects can be passed. This bypasses authentication completely without possessing or needing the corresponding private key.

Affected Versions

  • Affects RouterOS stable versions prior to 7.24.2
  • Affects RouterOS long-term versions prior to 7.23.4

How the Validator Works

  1. Modulus Extraction: The script extracts the modulus ($n$) from a local copy of the legitimate ssh-rsa OpenSSH public key file.
Download Tool
  • Control Phase: It generates a completely randomized modulus and attempts an authentication sequence using the $e=1$ signature forge technique. If this succeeds, the tool safely alerts that the user target is not correctly gated, preventing a false positive.
  • Forged Phase: It executes a legitimate SSH handshake using the authorized modulus ($n$) and an exponent of $1$, automatically adjusting for standard signature types (ssh-rsa, rsa-sha2-256, or rsa-sha2-512).
  • Verdict Evaluation: If the control attempt fails properly but the forged modulus attempt is accepted, the instance is flagged as VULNERABLE.
  • Requirements

    The validator requires Python 3 and the paramiko library for custom SSH message construction.

    root@kitploit:~
    pip install paramiko
    

    Usage

    root@kitploit:~
    python3 ssh_modulus_forge_check.py -H <TARGET_IP> -u <USERNAME> -k <PATH_TO_AUTHORIZED_PUBLIC_KEY>
    

    Options

    FlagDescriptionDefault
    -H, --hostTarget host IP address or hostname.Required
    -p, --portTarget SSH port number.22
    -u, --userTarget username to validate.Required
    -k, --pubkeyPath to the legitimate .pub file bound to the target account.Required
    --sig-algForce signature type (ssh-rsa, rsa-sha2-256, rsa-sha2-512).auto
    --execRemote command to execute as proof-of-access upon success.None
    --timeoutNetwork and authentication connection timeouts in seconds.10

    Example Diagnostic Run

    root@kitploit:~
    python3 ssh_modulus_forge_check.py -H 192.168.88.1 -u admin -k id_rsa.pub --exec "/system resource print"
    

    Remediation

    To protect vulnerable devices, ensure that RouterOS installations are updated to fixed releases immediately. If patching cannot be scheduled natively, restrict administrative access to the service by enforcing localized IP firewall rules (/ip firewall filter) or using RouterOS services management (/ip service) to limit allowed source addresses.

    Disclaimer

    This implementation is intended solely for defensive behavior verification, credential auditing, and patch compliance validation on authorized networks.