Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-75827 — CVE-2026-75827 的概念验证与实验环境,该漏洞是通过 Blueprint 动态数据 error_log 实现的 Grav 任意文件写入,附带复现脚本和 Docker 实验环境。 | Kitploit
工具/GitHubGitHub/abraxas/cve-2026-75827
漏洞分析漏洞利用Web应用程序漏洞利用Web安全渗透测试学习与教育实验室与实践
GitHubabraxas/cve-2026-75827

CVE-2026-75827

CVE-2026-75827 的概念验证与实验环境,该漏洞是通过 Blueprint 动态数据 error_log 实现的 Grav 任意文件写入,附带复现脚本和 Docker 实验环境。

查看仓库
19小时42分前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Abraxas Labs — CVE-2026-75827

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  CVE-2026-75827

CVE-2026-75827

grav 2.0.13 — getgrav

Grav 2.0.15 之前版本在 Blueprint 动态数据裸函数校验中存在任意文件写入漏洞,该校验使用不完整的拒绝列表而非正向允许列表。拥有页面编辑或 blueprint 配置访问权限的攻击者可通过数据指令调用 error_log 函数,将 PHP 载荷追加到 Web 可访问文件中,从而实现远程代码执行。

CVECVE-2026-75827 · CVE.org
CWECWE-94
CVSSHigh: 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
产品grav
受影响所有版本 至 2.0.13(含)
已修复2.0.15 及更高版本
认证无(见 source map)
实验环境仅限 127.0.0.1 · 厂商/客户披露包,非扫描器

公告(来自 source map)

任意文件写入是通过表单 blueprint 中的 data-options@ 调用 error_log,而非上传 action=。HTTP 请求为 GET /poc-form,然后 GET /poc-witness.txt。


入口

  • 方法: GET
  • 路径: /poc-form
  • 路由: 公开表单页面,其 blueprint 包含 data-options@: ['error_log', witness, 3, poc-witness.txt]。Form 插件 Blueprint::getBlueprint() → dynamicData → call_user_func_array('error_log', ...)。页面编辑(实验环境种子)放置了该指令;GET 触发写入。然后 GET /poc-witness.txt。
  • 备注: CVE-2026-75827 CWE-94:Grav <=2.0.14 的 Blueprint::isSafeDynamicCall() 裸函数分支使用 Utils::isDangerousFunction 拒绝列表;error_log 被遗漏。2.0.15 对裸函数使用允许列表。见证字符串为 GET /poc-witness.txt 中的 POCWitness75827(error_log 追加,非 shell)。不要写入 system()/exec() PHP。

调用链

  • Lab seed: admin user + Form plugin + page 03.poc-form with data-options@: error_log
  • GET /poc-form → Form::getBlueprint() → Blueprint::dynamicData → isSafeDynamicCall('error_log') true → error_log(witness, 3, poc-witness.txt)
  • GET /poc-witness.txt → POCWitness75827

实验环境前置条件

  • Grav 2.0.13 admin skeleton(已启用 form 插件)
  • 页面 /poc-form 包含 data-options@: ['error_log', 'POCWitness75827\n', 3, 'poc-witness.txt']
  • Web 根目录可写,以便 error_log 可创建 poc-witness.txt
  • 存在管理员 labadmin/labadmin(页面编辑);对表单的 GET 即为触发点

见证

GET /poc-witness.txt 响应体包含 POCWitness75827。首页 HTML 或空 404 不是文件写入的见证。

非成功

  • 不含见证文件的通用 200 Grav 首页 HTML
  • 404 poc-witness.txt
  • 反向 shell 或出站连接
  • system()/exec() PHP 载荷

补丁 / 修复

首先执行: 将 grav 更新至 2.0.15 或更高版本。

升级后验证

  • 针对已修补版本重新运行 CVE-2026-75827-Abraxas-Labs.py:映射的见证不得出现。
  • 在部署的代码树中确认厂商公告 / 变更集(见参考资料)。
  • WAF 签名是延迟,不是补丁。

如果无法立即更新

  • 禁用或隔离受影响的组件。
  • 在生产环境中排查见证条件(新增特权用户、异常文件、注入的行——即此 CVE 映射所命名的任何内容)。

复现(授权实验环境)

仅针对 http://127.0.0.1:8088(或你绑定的回环地址)。不要将此脚本指向互联网。

root@kitploit:~
python3 CVE-2026-75827-Abraxas-Labs.py

成功标志是响应体中出现上述见证。通用 200 HTML 不是。


实验环境镜像

用于复现的回环栈。除非此文件夹中的 Dockerfile 从源码构建,否则使用官方镜像。

  • lab/docker-compose.yml
  • lab/docker-compose.override.yml
  • lab/php-lab.ini
  • lab/Dockerfile
root@kitploit:~
cd lab
docker compose up --force-recreate

如果 YAML 挂载了本地目录(来自版本表的插件 zip / 源码标签),请将存在漏洞的产品代码树绑定到 Compose 旁边。除 127.0.0.1 外不要发布任何内容。


参考资料

  • CVE-2026-75827 · NVD

  • CVE-2026-75827 · CVE.org

  • github.com/getgrav/grav/security/advisories/GHSA-f8wv-xp27-6gq7

  • www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-error-log

  • github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75827.json

  • nvd.nist.gov/vuln/detail/CVE-2026-75827

  • github.com/advisories/GHSA-f8wv-xp27-6gq7

  • Abraxas Labs: abraxaslabs.tech · github.com/abraxas · @abraxas_null


记录(结构化)

root@kitploit:~
# CVE-2026-75827  (structured records)

- input: `https://nvd.nist.gov/vuln/detail/CVE-2026-75827`
- CWE: CWE-94
- published: 2026-08-18T12:19:32.553

## NVD description

Grav before 2.0.15 contains an arbitrary file write vulnerability in the Blueprint dynamic-data bare-function validation that uses an incomplete denylist instead of a positive allowlist. Attackers with page-edit or blueprint-config access can invoke the error_log function through a data directive to append PHP payloads to web-accessible files, achieving remote code execution.

## MITRE description

Grav before 2.0.15 contains an arbitrary file write vulnerability in the Blueprint dynamic-data bare-function validation that uses an incomplete denylist instead of a positive allowlist. Attackers with page-edit or blueprint-config access can invoke the error_log function through a data directive to append PHP payloads to web-accessible files, achieving remote code execution.

## Affected

- getgrav grav 0 affected, 2.0.15 unaffected
- OSV: 

## References (JSON sources only)

- https://github.com/getgrav/grav/security/advisories/GHSA-f8wv-xp27-6gq7
- https://www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-error-log
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75827.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-75827
- https://github.com/advisories/GHSA-f8wv-xp27-6gq7

## GitHub advisory

Grav: Blueprint dynamic-data bare-function branch is denylist-gated and omits error_log, giving arbitrary file write

## Affected versions and vulnerable location

- Confirmed on grav core at `78ebfc1` (tag 2.0.13).
- Sinks:
  - `system/src/Grav/Common/Data/Blueprint.php:455-458` `call_user_func_array($o, $params)` (bare-function dynamic-data provider).
  - Twin: `system/src/Grav/Framework/Flex/FlexDirectory.php:936-938` `call_user_func_array($function, $params)`.
- Validation gate: `Blueprint::isSafeDynamicCall()` at `Blueprint.php:514-536`.
  - `Class::method` branch (`:514-527`) uses a strict positive allowlist `self::$allowedDynamicCallables`.
  - Bare-function branch (`:530-534`) uses only a denylist: `if (is_string($function) && Utils::isDangerousFunction($function)) return false; return !self::paramsContainDangerousCallable($params);`.
- Denylist: `Utils::isDangerousFunction()` (`system/src/Grav/Common/Utils.php`, list around `:2020-2270`).

## Root cause

GHSA-7pgq/CVE-2026-64850 hardened the `Class::method` half of the dynamic-callable validation to a positive allowlist because a page-edit account could otherwise name any static method as a provider and reach file/secret gadgets. The bare-function half was left on a denylist (`isDangerousFunction`). Any bare PHP function not on that list executes.

`error_log` is not on the denylist (verified: no occurrence in `Utils.php`). `error_log($message, 3, $destination)` appends attacker-controlled `$message` to attacker-controlled file `$destination`, an arbitrary-file-append primitive. `paramsContainDangerousCallable()` (`:587-603`) only scans params for dangerous callable strings, so a PHP payload string and a destination path both pass. (`stream_socket_client`, `dl`, and `mb_send_mail` are likewise absent, giving SSRF/other primitives.)

## Attacker model

The same surface the published dynamic-data advisories accept as reachable: a `data-*@` directive in a form blueprint the Form plugin assembles from page frontmatter (GHSA-fj2p), or a `data@` field in a Flex directory/pages/users blueprint (GHSA-c4wf). A page-edit / blueprint-config account, no shell.

## Reachability trace

1. Author a blueprint field with a bare-function data directive, e.g.
   `data-options@: ['error_log', '<?php system($_GET[0]); ?>', 3, 'user/data/x.php']`.
2. `Blueprint::init()` resolves the directive; `isSafeDynamicCall('error_log', $params)` reaches the bare-function branch (`:530`), `isDangerousFunction('error_log')` is false, `paramsContainDangerousCallable([...])` is false (no callable strings),

免责声明

此包面向厂商、站点所有者及授权实验环境。脚本仅与 127.0.0.1 通信。将其用于你并不拥有的系统未获 Abraxas Labs 授权。不提供任何担保。

abraxaslabs.tech · github.com/abraxas · @abraxas_null

下载工具