CWE-621Variable Extraction Error

PUBLISHEDweakness record
released 2007-05-07 · last modified 2026-04-30

Metadata

CWE ID:
CWE-621
摘要:
Variant
结构:
Simple
状态:
Incomplete
发布日期:
2007-05-07
更新日期:
2026-04-30

名称

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. This could cause the program to overwrite unintended variables.

For example, in PHP, extraction can be used to provide functionality similar to register_globals, a dangerous functionality that is frequently disabled in production systems. Calling extract() or import_request_variables() without the proper arguments could allow arbitrary global variables to be overwritten, including superglobals. Similar functionality is possible in other interpreted languages, including custom languages.

常见后果

范围:
Integrity
影响:
Modify Application Data
注释:
An attacker could modify sensitive data or program variables.

相关 CWE