漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Grav before 2.0.18 Remote Code Execution via sort filter
Vulnerability Description
Grav before 2.0.18 (affected versions <= 2.0.17) contains a remote code execution vulnerability in the Twig sort filter. The sortFunc wrapper in GravExtension.php hardcodes Twig's isSandboxed argument to false, so unlike |map/|filter/|reduce, |sort accepts a plain function name inside the sandbox; the remaining denylist misses spl_autoload, which performs a PHP include. An authenticated user with only page-write rights (admin.pages or api.pages.write) can supply a crafted payload (e.g., via form frontmatter rendered by the Email plugin) that invokes spl_autoload through the sort filter, resulting in arbitrary PHP execution as the web server user.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Vulnerability Title
Grav 代码注入漏洞
Vulnerability Description
Grav是Grav组织开源的一款基于文件的扁平化内容管理系统。 Grav 2.0.18之前版本存在代码注入漏洞,该漏洞源于Twig sort过滤器中的sortFunc包装器将Twig的isSandboxed参数硬编码为false,且黑名单未包含spl_autoload,导致仅具备页面写入权限的已认证用户可通过特制载荷调用spl_autoload,进而以Web服务器用户身份执行任意PHP代码。
CVSS Information
N/A
Vulnerability Type
N/A