Demostración de Error Detallado

Intentando ejecutar una consulta SQL inválida...


¡Error de Base de Datos Expuesto!

La aplicación ha filtrado el siguiente mensaje de error detallado:

PDOException Object
(
    [message:protected] => SQLSTATE[42S02]: Base table or view not found: 1146 Table 'owasp_labs.tabla_inexistente' doesn't exist
    [string:Exception:private] => 
    [code:protected] => 42S02
    [file:protected] => /var/www/html/a05_security_misconfiguration/db_error.php
    [line:protected] => 14
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/html/a05_security_misconfiguration/db_error.php
                    [line] => 14
                    [function] => query
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT * FROM tabla_inexistente
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => 42S02
            [1] => 1146
            [2] => Table 'owasp_labs.tabla_inexistente' doesn't exist
        )

)