# Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (CWE-95) The product receives input from an upstream component, but it does not neutralize code syntax before using the input in a dynamic evaluation call. - Prevalence: Alta Sin reglas de Shoulder - Impact: Alto OWASP Top 10 #3 - Prevention: Ver MITRE Referencia externa **OWASP:** Injection (A03:2021-Injection) - #3 ## Description When user input is passed to eval() or similar functions without sanitization, attackers can inject arbitrary code that will be executed with the application's privileges. ## Prevention ## Consequences - Ejecutar código no autorizado - Leer datos de la aplicación - Modificar datos de la aplicación ## Mitigations - Evita usar eval() y funciones de ejecución dinámica de código similares - Usa alternativas más seguras como JSON.parse() para parsear datos - Si eval es necesario, usa validación estricta de entrada y sandboxing