Yii 2: Local file inclusion via view parameter name collision
The core view rendering method View::renderPhpFile() calls extract($params, EXTR_OVERWRITE) before the require statement that includes the view file. A caller-controlled parameter named file in the $params array overwrites the internal local variable that specifies which file is included — enabling a Local File Inclusion primitive.