Điều kiện tiên quyết
The targeted application must have a bug that allows an adversary to control which code file is loaded at some juncture.
Some variants of this attack may require that old versions of some code files be present and in predictable locations.
Tài nguyên cần thiết
The adversary needs to have enough access to the target application to control the identity of a locally included file. The attacker may also need to be able to upload arbitrary code files to the target machine, although any location for these files may be acceptable.
Các biện pháp giảm thiểu
Implementation: Avoid passing user input to filesystem or framework API. If necessary to do so, implement a specific, allowlist approach.
Điểm yếu liên quan
| CWE-ID |
Tên điểm yếu |
|
Inclusion of Functionality from Untrusted Control Sphere The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. |
Tài liệu tham khảo
REF-613
OWASP Web Security Testing Guide
https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion.html
Gửi
| Tên |
Tổ chức |
Ngày |
Ngày phát hành |
| CAPEC Content Team |
The MITRE Corporation |
2014-06-23 +00:00 |
|
Sửa đổi
| Tên |
Tổ chức |
Ngày |
Bình luận |
| CAPEC Content Team |
The MITRE Corporation |
2015-11-09 +00:00 |
Updated References |
| CAPEC Content Team |
The MITRE Corporation |
2017-08-04 +00:00 |
Updated Attack_Motivation-Consequences, Attack_Prerequisites, Resources_Required, Solutions_and_Mitigations |
| CAPEC Content Team |
The MITRE Corporation |
2018-07-31 +00:00 |
Updated References |
| CAPEC Content Team |
The MITRE Corporation |
2019-04-04 +00:00 |
Updated Related_Weaknesses |
| CAPEC Content Team |
The MITRE Corporation |
2020-07-30 +00:00 |
Updated Mitigations |
| CAPEC Content Team |
The MITRE Corporation |
2020-12-17 +00:00 |
Updated References |