Zum Inhalt springen

Dynamic Code Execution (ARCH9131)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key swift.security.dynamic-code-execution · Severity critical · Category security · CWE CWE-95

Flags JSContext.evaluateScript / NSExpression(format:) / NSPredicate(format:) with a script built from untrusted data.

context.evaluateScript(userInput)
map the request onto a fixed set of operations

Never evaluate user input as code.