CWE-98
Overview
- CWE ID
- 98
- CWE Name
- Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
- CWE Abstraction
- Variant
- CWE structure
- Simple
- CWE Status
- Draft
Description
The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions.
Extended Description
In certain versions and configurations of PHP, this can allow an attacker to specify a URL to a remote location from which the software will obtain the code to execute. In other cases in association with path traversal, the attacker can specify a local fi