Weakness (CWE)
CWE-621: Variable Extraction Error
The product uses external input to determine the names of variables into which information is extracted, without verifying that the names of the specified variables are valid.
How to prevent it (3 mitigations)
-
Implementation
Use allowlists of variable names that can be extracted.
-
Implementation
Consider refactoring your code to avoid extraction routines altogether.
-
Implementation
In PHP, call extract() with options such as EXTR_SKIP and EXTR_PREFIX_ALL; call import_request_variables() with a prefix argument. Note that these capabilities are not present in all PHP versions.
Source: MITRE CWE-621
2 results · Feed
-
Critical 9.8
Multipart-file uploads call variables to be improperly registered in the global scope. In cases where variables are not…
-
Medium 5.4
phpMyAdmin Global variables scope injection vulnerability
import.php in phpMyAdmin 4.x before 4.0.4.1 does not properly restrict the ability of input data to specify a file format, which allows remote authenticated users to modify the GLOBALS superglobal array, and consequently change the configuration, via a crafte…