结构: Simple
Abstraction: Base
状态: Incomplete
被利用可能性: unkown
In a language where the user can influence the name of a variable at runtime, if the variable names are not controlled, an attacker can read or write to arbitrary variables, or access arbitrary functions.
The resultant vulnerabilities depend on the behavior of the application, both at the crossover point and in any control/data flow that is reachable by the related variables or functions.
cwe_Nature: ChildOf cwe_CWE_ID: 914 cwe_View_ID: 1000 cwe_Ordinal: Primary
cwe_Nature: ChildOf cwe_CWE_ID: 914 cwe_View_ID: 699 cwe_Ordinal: Primary
cwe_Nature: PeerOf cwe_CWE_ID: 183 cwe_View_ID: 1000
Language: [{'cwe_Name': 'PHP', 'cwe_Prevalence': 'Undetermined'}, {'cwe_Name': 'Perl', 'cwe_Prevalence': 'Undetermined'}]
范围 | 影响 | 注释 |
---|---|---|
['Confidentiality', 'Integrity', 'Availability'] | ['Modify Application Data', 'Execute Unauthorized Code or Commands'] | An attacker could gain unauthorized access to internal program variables and execute arbitrary code. |
策略: Refactoring
Refactor the code to avoid dynamic variable evaluation whenever possible.
策略: Input Validation
Use only whitelists of acceptable variable or function names.
策略:
For function names, ensure that you are only calling functions that accept the proper number of arguments, to avoid unexpected null arguments.
标识 | 说明 | 链接 |
---|---|---|
CVE-2009-0422 | Chain: Dynamic variable evaluation allows resultant remote file inclusion and path traversal. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0422 |
CVE-2007-2431 | Chain: dynamic variable evaluation in PHP program used to modify critical, unexpected $_SERVER variable for resultant XSS. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2431 |
CVE-2006-4904 | Chain: dynamic variable evaluation in PHP program used to conduct remote file inclusion. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4904 |
CVE-2006-4019 | Dynamic variable evaluation in mail program allows reading and modifying attachments and preferences of other users. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4019 |