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-9999-Serverless-Event-Injection-to-Code-Overwrite — Exploit de prueba de concepto para CVE-2026-9999, que demuestra path traversal en eventos de almacenamiento de objetos serverless y sobrescribe el código fuente de la función para lograr RCE. | Kitploit
Herramientas/GitHubGitHub/george0papasotiriou/cve-2026-9999-serverless-event-injection-to-code-overwrite
Seguridad de Infraestructura en la NubeAnálisis de VulnerabilidadesExplotaciónSeguridad ServerlessSeguridad en la NubeAprendizaje y Educación
GitHubgeorge0papasotiriou/cve-2026-9999-serverless-event-injection-to-code-overwrite

CVE-2026-9999-Serverless-Event-Injection-to-Code-Overwrite

Exploit de prueba de concepto para CVE-2026-9999, que demuestra path traversal en eventos de almacenamiento de objetos serverless y sobrescribe el código fuente de la función para lograr RCE.

Ver Repositorio
10hace 1 mesAún no revisado

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

3. CVE-2026-9999 – Inyección de eventos en funciones serverless (Path Traversal → Sobrescritura de código)

Resumen

Una plataforma serverless que procesa eventos de almacenamiento de objetos no sanitiza el campo object.key, lo que permite a un atacante sobrescribir el código fuente de la función mediante path traversal.

Severidad: Crítica (RCE en la siguiente invocación)

Explotación y Simulación (Python)

root@kitploit:~
#!/usr/bin/env python3
"""
vulnerable_serverless.py - Simulated AWS Lambda-like runtime with event injection.
"""
import json, os, shutil, subprocess
from http.server import HTTPServer, BaseHTTPRequestHandler

FUNCTION_DIR = "/tmp/function"
os.makedirs(FUNCTION_DIR, exist_ok=True)
# initial function code
with open(os.path.join(FUNCTION_DIR, "handler.py"), "w") as f:
    f.write("""
def handler(event):
    return "Hello, " + event.get('name', 'world')
""")

class Handler(BaseHTTPRequestHandler):
    def do_POST(self):
        content_length = int(self.headers['Content-Length'])
        body = self.rfile.read(content_length)
        event = json.loads(body)
        # Vulnerable: use event['key'] to decide which file to load?
        # Simulate: the function source is overwritten by an "update" event from storage.
        if event.get('source') == 'storage':
            # Path traversal in object key
            object_key = event['object']['key']  # attacker controlled
            # Overwrite handler.py with the object content (simulated)
            dst = os.path.join(FUNCTION_DIR, "handler.py")
            # directory traversal to write outside? But we want to overwrite handler.py.
            # Attack: object.key = "../../../tmp/function/handler.py"
            # Normalize to ensure it's within FUNCTION_DIR? No validation!
            # The "get object" would fetch the file; here we just write injected code.
            injected_code = event.get('code', '# no code')
            # Resolve the full path – this is the vulnerability:
            full_path = os.path.normpath(os.path.join(FUNCTION_DIR, object_key))
            # Only check if it is under FUNCTION_DIR? Not present.
            with open(full_path, 'w') as f:
                f.write(injected_code)
            self.send_response(200)
            self.end_headers()
            self.wfile.write(b"Update applied")
        else:
            # Execute current handler (for demo)
            import handler
            result = handler.handler(event)
            self.send_response(200)
            self.end_headers()
            self.wfile.write(result.encode())

server = HTTPServer(('0.0.0.0', 8000), Handler)
server.serve_forever()

CVE-2026-9999 – Inyección de eventos serverless para sobrescritura de código

Severity: Critical

📖 Resumen

Una vulnerabilidad de path traversal en el procesamiento de eventos de una plataforma serverless permite a un atacante sobrescribir el código fuente de la función, lo que conduce a la ejecución remota de código en invocaciones posteriores.

⚙️ Detalles de la vulnerabilidad

  • Tipo: Path Traversal / Escritura insegura de archivos
  • Impacto: Ejecución remota de código (RCE)
  • Causa raíz: La plataforma confía en el campo object.key de los eventos de almacenamiento sin sanitizarlo, lo que permite que secuencias ../ escriban en rutas arbitrarias dentro del sandbox de la función.

🧪 Demostración del exploit

  1. Inicie el runtime vulnerable:
    root@kitploit:~
    python vulnerable_serverless.py
    
  2. Ejecute el exploit:
    root@kitploit:~
    python exploit_event_injection.py
    
Descargar herramienta