Exploit database

GH-bc5450e7bee1c1cb439ac1055c1ecba3

garciag1/charla-php2shell

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-109618

411 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2
garciag1/charla-php2shellRevision e46df0c99f91

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

demo/ataque/app/diagnostico.php

PHP · 1,051 bytes
<?php
/*  ================================================================
    DEMO ÉTICA — endpoint DELIBERADAMENTE vulnerable (inyección de comandos)
    ----------------------------------------------------------------
    NO es el exploit de PHP2Shell. NO usar en producción NUNCA.
    Sirve para que el público VEA qué es RCE: una petición web que
    termina ejecutando comandos en el servidor.

    El bug es un clásico: un dev quiso hacer una "herramienta de
    diagnóstico" y metió la entrada del usuario directo en system().
    ================================================================ */

header('Content-Type: text/plain; charset=utf-8');
$host = $_GET['host'] ?? '';

if ($host === '') {
    echo "Herramienta de diagnóstico de red\n";
    echo "Uso: ?host=8.8.8.8\n";
    exit;
}

echo "# Diagnóstico de: {$host}\n";
echo str_repeat('-', 40) . "\n";

//  <<< LA LÍNEA VULNERABLE >>>
//  $host entra sin validar ni escapar. Un ';' o un '&&' encadena comandos.
system("echo Resolviendo... && getent hosts " . $host);