# 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: Hoch Keine Shoulder-Regeln - Impact: Hoch OWASP Top 10 #3 - Prevention: MITRE ansehen Externe Referenz **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 - Nicht autorisierten Code ausführen - Anwendungsdaten lesen - Anwendungsdaten ändern ## Mitigations - Vermeide eval() und ähnliche Funktionen zur dynamischen Codeausführung - Verwende sicherere Alternativen wie JSON.parse() für das Parsen von Daten - Wenn eval unvermeidbar ist, setze strikte Eingabevalidierung und Sandboxing ein