引入方式
Implementation
適用平台
程式語言
類別: Not Language-Specific (Undetermined)
技術
類別: Not Technology-Specific (Undetermined)
常見後果
| 範圍 |
影響 |
可能性 |
Integrity Access Control | Alter Execution Logic, Bypass Protection Mechanism
注意:An incomplete comparison can lead to resultant weaknesses, e.g., by operating on the wrong object or making a security decision without considering a required factor. | |
觀察到的案例
| 參考資料 |
描述 |
| PHP remote file inclusion in web application that filters "http" and "https" URLs, but not "ftp". |
| Product does not prevent access to restricted directories due to partial string comparison with a public directory |
偵測方法
Manual Static Analysis
Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.
漏洞對應備注
理由說明 : This CWE entry is a Class and might have Base-level children that would be more appropriate
備註 : Examine children of this entry to see if there is a better fit
提交
| 名稱 |
機構 |
日期 |
發布日期 |
Version |
| CWE Content Team |
MITRE |
2018-01-04 +00:00 |
2018-03-29 +00:00 |
3.1 |
修改記錄
| 名稱 |
機構 |
日期 |
備註 |
| CWE Content Team |
MITRE |
2019-01-03 +00:00 |
updated Relationships |
| CWE Content Team |
MITRE |
2020-02-24 +00:00 |
updated Description, Relationships, Type |
| CWE Content Team |
MITRE |
2021-03-15 +00:00 |
updated Demonstrative_Examples |
| CWE Content Team |
MITRE |
2023-01-31 +00:00 |
updated Description |
| 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 |
2023-10-26 +00:00 |
updated Observed_Examples |
| CWE Content Team |
MITRE |
2025-12-11 +00:00 |
updated Applicable_Platforms, Common_Consequences, Description |
| CWE Content Team |
MITRE |
2026-04-30 +00:00 |
updated Detection_Factors, Potential_Mitigations |