취약점 도입 방식
Implementation
적용 가능한 플랫폼
언어
이름: PHP (Undetermined)
일반적인 결과
| 범위 |
영향 |
가능성 |
Confidentiality Integrity | Read Files or Directories, Modify Files or Directories
참고: These variables could be overwritten by attackers via POST requests, cookies, or other methods, causing the application to read or process unauthorized files. | |
관찰된 예시
| 참고 자료 |
설명 |
| Forum does not properly verify whether a file was uploaded or if the associated variables were set by POST, allowing remote attackers to read arbitrary files. |
| Product doesn't check if the variables for an upload were set by uploading the file, or other methods such as $_POST. |
| Product does not distinguish uploaded file from other files. |
잠재적 완화 방법
Phases : Architecture and Design
Use PHP 4 or later.
Phases : Architecture and Design
If you must support older PHP versions, write your own version of is_uploaded_file() and run it against $HTTP_POST_FILES['userfile']))
Phases : Implementation
For later PHP versions, reference uploaded files using the $HTTP_POST_FILES or $_FILES variables, and use is_uploaded_file() or move_uploaded_file() to ensure that you are dealing with an uploaded file.
취약점 매핑 메모
근거 : This CWE entry is at the Variant level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
댓글 : Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
참고 자료
REF-502
A Study in Scarlet - section 5, "File Upload"
Shaun Clowes.
제출
| 이름 |
조직 |
날짜 |
출시일 |
Version |
| PLOVER |
|
2007-05-07 +00:00 |
2007-05-07 +00:00 |
Draft 6 |
수정 사항
| 이름 |
조직 |
날짜 |
댓글 |
| Eric Dalci |
Cigital |
2008-07-01 +00:00 |
updated Time_of_Introduction |
| CWE Content Team |
MITRE |
2008-09-08 +00:00 |
updated Relationships, Observed_Example, Other_Notes, Taxonomy_Mappings, Weakness_Ordinalities |
| CWE Content Team |
MITRE |
2008-10-14 +00:00 |
updated Description, Other_Notes, Potential_Mitigations |
| CWE Content Team |
MITRE |
2011-03-29 +00:00 |
updated Other_Notes |
| CWE Content Team |
MITRE |
2011-06-01 +00:00 |
updated Common_Consequences |
| CWE Content Team |
MITRE |
2012-05-11 +00:00 |
updated Observed_Examples, Relationships |
| CWE Content Team |
MITRE |
2012-10-30 +00:00 |
updated Potential_Mitigations |
| CWE Content Team |
MITRE |
2014-07-30 +00:00 |
updated Relationships, Taxonomy_Mappings |
| CWE Content Team |
MITRE |
2020-02-24 +00:00 |
updated Relationships |
| CWE Content Team |
MITRE |
2023-04-27 +00:00 |
updated Relationships |
| CWE Content Team |
MITRE |
2023-06-29 +00:00 |
updated Mapping_Notes |
| CWE Content Team |
MITRE |
2026-10-28 +00:00 |
updated Common_Consequences, Description, Dimensions |