Saltar al contenido
DUPIN
ALERTAS · EN VIVO
Contacto

VULNERABILIDAD

CVE-2026-87690 Recorrido de rutas en ios_image_gather de Metasploit Framework

El módulo post/apple_ios/gather/ios_image_gather de Metasploit Framework tiene un recorrido de rutas relativo (CWE-22): interpola sin sanitizar nombres de archivo de un listado de directorio de Meterpreter, controlado por un dispositivo iOS hostil, en la ruta de destino de client.fs.file.download_file(). Esto permite escribir archivos arbitrarios, por ejemplo sobrescribir ~/.msf4/msfconsole.rc, que msfconsole ejecuta al iniciar, y lograr ejecución de código.

Alerta de Nureq Monitor

Detectada 12 OCT · 04:56

CVSS 3.1

8.8ALTA

PROBABILIDAD DE EXPLOTACIÓN (EPSS)

0,4 % PERCENTIL 34

EXPLOTACIÓN ACTIVA

No confirmada

EXPLOIT PÚBLICO

No conocido

Qué es CVE-2026-87690

El módulo post/apple_ios/gather/ios_image_gather de Metasploit Framework tiene un recorrido de rutas relativo (CWE-22): interpola sin sanitizar nombres de archivo de un listado de directorio de Meterpreter, controlado por un dispositivo iOS hostil, en la ruta de destino de client.fs.file.download_file(). Esto permite escribir archivos arbitrarios, por ejemplo sobrescribir ~/.msf4/msfconsole.rc, que msfconsole ejecuta al iniciar, y lograr ejecución de código.

Productos y versiones afectadas

  • Rapid7 Metasploit Framework

    • hasta antes de 6.5.5

Qué hacer

  1. Verificá si usás Metasploit Framework y en qué versión: el rango afectado figura arriba.
  2. Actualizá a la versión corregida que indique el fabricante en su aviso (ver referencias) o aplicá la mitigación que publique.
  3. Revisá registros y accesos de los sistemas expuestos para descartar que se haya aprovechado antes de corregir.

Calculadora CVSS

CVSS 3.1 · 8.8 ALTA

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

VECTOR DE ATAQUE (AV)
Red
COMPLEJIDAD DEL ATAQUE (AC)
Baja
PRIVILEGIOS REQUERIDOS (PR)
Ninguno
INTERACCIÓN DEL USUARIO (UI)
Requerida
ALCANCE (S)
Sin cambio
CONFIDENCIALIDAD (C)
Alta
INTEGRIDAD (I)
Alta
DISPONIBILIDAD (A)
Alta

Abrir la calculadora completa

Descripción original

The Metasploit Framework post module post/apple_ios/gather/ios_image_gather is affected by a relative path traversal vulnerability (CWE-22). The module interpolates file names taken from a Meterpreter directory listing — data fully controlled by a hostile or tampered iOS device — directly into the local destination path passed to client.fs.file.download_file(), with no sanitization. The underlying stdapi sink (lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb) writes to whatever path is supplied, so a listing entry such as ../../msfconsole.rc escapes the intended ~/.msf4/loot/<random> directory and overwrites ~/.msf4/msfconsole.rc, a resource file that every msfconsole invocation automatically executes at startup (lib/msf/ui/console/driver.rb:196). An attacker-controlled device that lures an operator into running this gather module achieves an arbitrary file write as the operator; because the written msfconsole.rc can load a second written file (a Ruby plugin whose top-level code runs on require), this converts into persistent code execution and an interactive shell as the operator (frequently root) on the pentester's workstation at the next console launch. The same traversal was previously fixed upstream in the recursive downloader (stdapi/fs/dir.rb scrubs separators); this module omitted the equivalent scrub. The fix applies the same separator scrub (or File.basename) to listing entries before building the local path.

Referencias

Historial de la alerta

  1. VULNERABILIDAD Nueva vulnerabilidad detectada.

CÓMO SE HIZOResumen traducido automáticamente al español a partir de la descripción original. Ante dudas, la descripción original y las referencias del fabricante son la fuente de verdad. Cómo funciona.