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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-79752 — CVE-2026-79752 披露包,涉及 CakePHP 5.2.13 中通过 FunctionsBuilder::cast 的 SQL 注入漏洞,包含一个 Python PoC 脚本和用于授权复现的 Docker 实验环境。 | Kitploit
工具/GitHubGitHub/abraxas/cve-2026-79752
漏洞扫描器漏洞分析漏洞利用Web应用程序漏洞利用Web安全渗透测试学习与教育数据库安全实验室与实践
GitHubabraxas/cve-2026-79752

CVE-2026-79752

CVE-2026-79752 披露包,涉及 CakePHP 5.2.13 中通过 FunctionsBuilder::cast 的 SQL 注入漏洞,包含一个 Python PoC 脚本和用于授权复现的 Docker 实验环境。

1天前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
查看仓库
分享

Abraxas Labs — CVE-2026-79752

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

CVE-2026-79752

CakePHP 5.2.13 — cakephp

CakePHP 是一个用于 PHP 的快速开发框架。在 4.5.12、4.6.5、5.1.9、5.2.14 和 5.3.7 之前,src/Database/FunctionsBuilder.php 中的 FunctionsBuilder::cast、FunctionsBuilder::extract、FunctionsBuilder::datePart 和 FunctionsBuilder::dateAdd 接受用户可控的 dataType、part 或 unit 值,并将它们作为未转义的结构片段拼接到生成的 SQL 中。将不可信输入传递给这些参数的应用程序可能导致 SQL 注入,其机密性、完整性和可用性影响取决于数据库连接的权限。此问题已在 4.5.12、4.6.5、5.1.9、5.2.14 和 5.3.7 版本中修复。

CVECVE-2026-79752 · CVE.org
CWECWE-89
CVSS严重:9.2 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
产品CakePHP
受影响版本5.2.x 至 5.2.13(以及 4.5.x < 4.5.12、4.6.x < 4.6.5、5.1.x < 5.1.9、5.3.x < 5.3.7)
已修复版本5.2.14、5.3.7、5.1.9、4.6.5、4.5.12
认证无(见 source map)
许可证GNU Affero GPL v3.0
实验环境仅限 127.0.0.1 · 供应商/客户披露包,不是扫描器

安全公告(来自 source map)

cast() 的 $dataType 是注入点。HTTP 是实验应用上的 GET /?type=,不是 WP 路由。


入口

  • 方法: GET
  • 路径: /?type=
  • 路由: 实验环境 GET /?type= -> Connection::func()->cast('body', $_GET['type'])。FunctionsBuilder::cast setConjunction AS add literal dataType。CakePHP 5.2.13。已在 5.2.14 修复。
  • 备注: CVE-2026-79752 CWE-89 CakePHP 5.2.13。见证 POCWitness79752。不是 WordPress。

调用链

  • GET /?type=&lt;injected SQL type&gt;
  • FunctionsBuilder::cast splices type as literal
  • SQLite executes CAST(body AS ...)
  • notes.body POCWitness79752 in HTTP body

实验环境前提条件

  • CakePHP 数据库 5.2.13
  • 实验应用将 GET type 传入 cast()
  • sqlite notes.body = POCWitness79752

见证

HTTP body 中出现 POCWitness79752,并且 sql= 行显示注入片段(而不仅仅是 CAST(body AS TEXT))。

非成功

  • 仅有 CAST AS TEXT,sql= 中没有注入片段
  • composer 500
  • 反弹 shell

补丁 / 修复

首先执行: 将 CakePHP 更新到 5.2.14(或 5.3.7 / 5.1.9 / 4.6.5 / 4.5.12)。公告:GHSA-vjqc-q4mp-2rvf。

升级后验证

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

如果无法立即更新

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

复现(授权实验环境)

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

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

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


实验镜像

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

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

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


参考资料

  • CVE-2026-79752 · NVD

  • CVE-2026-79752 · CVE.org

  • github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0

  • github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e

  • github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676

  • github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d

  • github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45

  • github.com/cakephp/cakephp/pull/19520

  • github.com/cakephp/cakephp/pull/19528

  • github.com/cakephp/cakephp/releases/tag/4.5.12

  • github.com/cakephp/cakephp/releases/tag/4.6.5

  • github.com/cakephp/cakephp/releases/tag/5.1.9

  • github.com/cakephp/cakephp/releases/tag/5.2.14

  • github.com/cakephp/cakephp/releases/tag/5.3.7

  • github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf

  • github.com/CVEProject/cvelistV5/tree/main/cves/2026/79xxx/CVE-2026-79752.json

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

  • github.com/advisories/GHSA-vjqc-q4mp-2rvf

  • github.com/cakephp/cakephp/releases/tag/5.1.8

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


记录(结构化)

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

- input: `https://nvd.nist.gov/vuln/detail/CVE-2026-79752`
- CWE: CWE-89
- published: 2026-09-17T15:16:51.673

## NVD description

CakePHP is a rapid development framework for PHP. Prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7, FunctionsBuilder::cast, FunctionsBuilder::extract, FunctionsBuilder::datePart, and FunctionsBuilder::dateAdd in src/Database/FunctionsBuilder.php accept user-controlled dataType, part, or unit values and incorporate them into generated SQL as unescaped structural fragments. An application that passes untrusted input to these parameters can permit SQL injection with confidentiality, integrity, and availability impact according to the database connection's privileges. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7.

## MITRE description

CakePHP is a rapid development framework for PHP. Prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7, FunctionsBuilder::cast, FunctionsBuilder::extract, FunctionsBuilder::datePart, and FunctionsBuilder::dateAdd in src/Database/FunctionsBuilder.php accept user-controlled dataType, part, or unit values and incorporate them into generated SQL as unescaped structural fragments. An application that passes untrusted input to these parameters can permit SQL injection with confidentiality, integrity, and availability impact according to the database connection's privileges. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7.

## Affected

- cakephp cakephp < 4.5.12 affected, >= 4.6.0, < 4.6.5 affected, >= 5.0.0, < 5.1.9 affected, >= 5.2.0, < 5.2.14 affected, >= 5.3.0, < 5.3.7 affected
- OSV: 

## References (JSON sources only)

- https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0
- https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e
- https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676
- https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d
- https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45
- https://github.com/cakephp/cakephp/pull/19520
- https://github.com/cakephp/cakephp/pull/19528
- https://github.com/cakephp/cakephp/releases/tag/4.5.12
- https://github.com/cakephp/cakephp/releases/tag/4.6.5
- https://github.com/cakephp/cakephp/releases/tag/5.1.9
- https://github.com/cakephp/cakephp/releases/tag/5.2.14
- https://github.com/cakephp/cakephp/releases/tag/5.3.7
- https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/79xxx/CVE-2026-79752.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-79752
- https://github.com/advisories/GHSA-vjqc-q4mp-2rvf
- https://github.com/cakephp/cakephp/releases/tag/5.1.8

## GitHub advisory

CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

### Impact
The `FunctionsBuilder::cast($field, $dataType)`, `extract($part, $expr)`, `datePart($part, $expr)`, `dateAdd($expr, $value, $unit)` methods are vulnerable to SQL injection if user controlled data is supplied to the ($dataType / $part / $unit) parameters.

### Patches
5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes 

### Workarounds
Don't provide user controlled data to these functions/parameters.

## OSV

CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

CakePHP is a rapid development framework for PHP. Prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7, FunctionsBuilder::cast, FunctionsBuilder::extract, FunctionsBuilder::datePart, and FunctionsBuilder::dateAdd in src/Database/FunctionsBuilder.php accept user-controlled dataType, part, or unit values and incorporate them into generated SQL as unescaped structural fragments. An application that passes untrusted input to these parameters can permit SQL injection with confidentiality, integrity, and availability impact according to the database connection's privileges. This issue is fixed i

许可证

本披露包依据 GNU Affero General Public License v3.0 许可。参见 LICENSE。


免责声明

本包仅供供应商、站点所有者和授权实验室使用。该脚本仅与 127.0.0.1 通信。Abraxas Labs 未授权将其用于你并不拥有的系统。不提供任何担保。

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

下载工具