The product does not properly restrict reading from or writing to dynamically-identified variables.
Many languages offer powerful features that allow the programmer to access arbitrary variables that are specified by an input string. While these features can offer significant flexibility and reduce development time, they can be extremely dangerous if attackers can modify unintended variables that have security implications.
Impact: Modify Application Data
An attacker could modify sensitive data or program variables.
Impact: Execute Unauthorized Code or Commands
Impact: Varies by ContextAlter Execution Logic
Strategy: Input Validation
Strategy: Refactoring
//Log user in, and set $isAdmin to true if user is an administrator*
php