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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-77635 — CVE-2026-77635 的披露包和 Python PoC,该漏洞是 CakePHP 的 jsonValue() 配合 PostgresDriver 时存在的未认证 SQL 注入,包含一个回环 Docker 实验环境。 | Kitploit
工具/GitHubGitHub/abraxas/cve-2026-77635
漏洞扫描器漏洞分析漏洞利用Web应用程序漏洞利用Web安全渗透测试数据库安全实验室与实践
GitHubabraxas/cve-2026-77635

CVE-2026-77635

CVE-2026-77635 的披露包和 Python PoC,该漏洞是 CakePHP 的 jsonValue() 配合 PostgresDriver 时存在的未认证 SQL 注入,包含一个回环 Docker 实验环境。

查看仓库
11天前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Abraxas Labs — CVE-2026-77635

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

CVE-2026-77635

CakePHP 5.2.13 — cakephp

CakePHP 是一个用于 PHP 的快速开发框架。在各自发布线的 5.1.10、5.2.15 和 5.3.7 版本之前,FunctionsBuilder::jsonValue() 与 PostgresDriver 配合使用时,如果用户可控数据被传入 jsonPath 参数,则存在 SQL 注入漏洞。该问题已在 5.1.10、5.2.15 和 5.3.7 版本中修复。

CVECVE-2026-77635 · 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:L/SC:N/SI:N/SA:N
产品CakePHP
受影响版本5.2.x 至 5.2.13(还包括 5.1.x < 5.1.10、5.3.x < 5.3.7)
已修复版本5.2.15、5.1.10、5.3.7
认证无(见 source map)
许可证GNU Affero GPL v3.0
实验环境仅限 127.0.0.1 · 供应商/客户披露包,并非扫描器

安全公告(来自 source map)

jsonValue 的 $jsonPath 是注入点。HTTP 请求为实验应用上的 GET /?path=。


入口

  • 方法: GET
  • 路径: /?path=
  • 路由: FunctionsBuilder::jsonValue + PostgresDriver JSON_VALUE -> JSONB_PATH_QUERY。CakePHP 5.2.13。已在 5.2.15 修复。
  • 备注: CVE-2026-77635 CWE-89。见证 POCWitness77635。需要 PostgreSQL。

调用链

  • GET /?path=&lt;injected jsonPath&gt;
  • PostgresDriver quoteIdentifier into JSONB_PATH_QUERY
  • SELECT leaks notes.secret

实验环境前提条件

  • cakephp/database 5.2.13
  • PostgreSQL
  • notes.secret = POCWitness77635

见证

HTTP 响应体中的 POCWitness77635 以及 sql= 包含注入片段。

非成功情况

  • 无注入时 json path 结果为空
  • 连接 postgres 被拒绝
  • 反弹 shell

补丁 / 修复

首先执行此操作: 将 CakePHP 更新至 5.2.15(或 5.1.10 / 5.3.7)。公告:GHSA-fxf7-vhh8-7vpq。

升级后验证

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

如果无法立即更新

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

复现(授权实验环境)

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

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

成功标志是响应体中出现上述见证。普通的 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-77635 · NVD

  • CVE-2026-77635 · CVE.org

  • github.com/cakephp/cakephp/commit/138f2f61486532c29ee4d106da2a9848c1ff1ab3

  • github.com/cakephp/cakephp/commit/489a40fb7c6e597af33fe0f7264047afccb90d55

  • github.com/cakephp/cakephp/commit/9f1ad970a3b72293d4a37e694276645f804e819f

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

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

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

  • github.com/cakephp/cakephp/security/advisories/GHSA-fxf7-vhh8-7vpq

  • github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77635.json

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

  • github.com/advisories/GHSA-fxf7-vhh8-7vpq

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


记录(结构化)

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

- input: `https://nvd.nist.gov/vuln/detail/CVE-2026-77635`
- CWE: CWE-89
- published: 2026-08-24T21:17:48.457

## NVD description

CakePHP is a rapid development framework for PHP. Prior to versions 5.1.10, 5.2.15, and 5.3.7 on their respective release lines, FunctionsBuilder::jsonValue() with PostgresDriver is vulnerable to SQL injection when user-controlled data is supplied to the jsonPath parameter. This issue is fixed in versions 5.1.10, 5.2.15, and 5.3.7.

## MITRE description

CakePHP is a rapid development framework for PHP. Prior to versions 5.1.10, 5.2.15, and 5.3.7 on their respective release lines, FunctionsBuilder::jsonValue() with PostgresDriver is vulnerable to SQL injection when user-controlled data is supplied to the jsonPath parameter. This issue is fixed in versions 5.1.10, 5.2.15, and 5.3.7.

## Affected

- cakephp cakephp >= 5.1.0, < 5.1.10 affected, >= 5.2.0, < 5.2.15 affected, >= 5.3.0, < 5.3.7 affected
- cakephp cakephp/database >= 5.1.0, < 5.1.10 affected, >= 5.2.0, < 5.2.15 affected, >= 5.3.0, < 5.3.7 affected
- OSV: 

## References (JSON sources only)

- https://github.com/cakephp/cakephp/commit/138f2f61486532c29ee4d106da2a9848c1ff1ab3
- https://github.com/cakephp/cakephp/commit/489a40fb7c6e597af33fe0f7264047afccb90d55
- https://github.com/cakephp/cakephp/commit/9f1ad970a3b72293d4a37e694276645f804e819f
- https://github.com/cakephp/cakephp/releases/tag/5.1.10
- https://github.com/cakephp/cakephp/releases/tag/5.2.15
- https://github.com/cakephp/cakephp/releases/tag/5.3.7
- https://github.com/cakephp/cakephp/security/advisories/GHSA-fxf7-vhh8-7vpq
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77635.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-77635
- https://github.com/advisories/GHSA-fxf7-vhh8-7vpq

## GitHub advisory

CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver

### Impact
The `FunctionsBuilder::jsonValue($field, $jsonPath)` methods with the Postgres driver is vulnerable to SQL injection if user controlled data is supplied to the `$jsonPath` parameter.

### Patches
5.1.10, 5.2.15, 5.3.7 

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

## OSV

CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver

CakePHP is a rapid development framework for PHP. Prior to versions 5.1.10, 5.2.15, and 5.3.7 on their respective release lines, FunctionsBuilder::jsonValue() with PostgresDriver is vulnerable to SQL injection when user-controlled data is supplied to the jsonPath parameter. This issue is fixed in versions 5.1.10, 5.2.15, and 5.3.7.

许可证

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


免责声明

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

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

下载工具