CWE-616Incomplete Identification of Uploaded File Variables (PHP)

PUBLISHEDweakness record
released 2007-05-07 · last modified 2023-06-29

Metadata

CWE ID:
CWE-616
摘要:
Variant
结构:
Simple
状态:
Incomplete
发布日期:
2007-05-07
更新日期:
2023-06-29

名称

Incomplete Identification of Uploaded File Variables (PHP)

描述

The PHP application uses an old method for processing uploaded files by referencing the four global variables that are set for each file (e.g. $varname, $varname_size, $varname_name, $varname_type). These variables could be overwritten by attackers, causing the application to process unauthorized files.

These global variables could be overwritten by POST requests, cookies, or other methods of populating or overwriting these variables. This could be used to read or process arbitrary files by providing values such as "/etc/passwd".

常见后果

范围:
Confidentiality, Integrity
影响:
Read Files or Directories, Modify Files or Directories

相关 CWE