|
First vulnerability in line 9, according to PHP manual.
#class_exists
class_exists
- This function checks whether or not the given class has been definded
class_exists ( string $class_name, bool $autoload = true) : bool
##Parameter
class_name
The class name. THe name is matched in a case-insensitive manner.
auto_load
Whether or not to call __autoload by default
In this case, the class_exists
function will check if the controller name we pass in is a valid, but it will first have to called the autoload function making sure all the function is loaded. When this happens, it actually includes the unknown $classname
parameter we passed in.