Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
ツール/GitHubGitHub/abraxas/cve-2026-79752
脆弱性スキャナー脆弱性分析エクスプロイトウェブアプリケーション悪用ウェブセキュリティペネトレーションテスト学習と教育データベースセキュリティラボと実践
GitHubabraxas/cve-2026-79752

CVE-2026-79752

CakePHP 5.2.13のFunctionsBuilder::castを介したSQLインジェクションに関するCVE-2026-79752の開示パック。許可された再現用の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
CVSSCritical: 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
ProductCakePHP
Affected5.2.x through 5.2.13 (also 4.5.x < 4.5.12, 4.6.x < 4.6.5, 5.1.x < 5.1.9, 5.3.x < 5.3.7)
Patched5.2.14, 5.3.7, 5.1.9, 4.6.5, 4.5.12
Authnone (see source map)
LicenseGNU Affero GPL v3.0
Lab127.0.0.1 only · vendor/client disclosure pack, not a scanner

アドバイザリ (ソースマップより)

cast() の $dataType がシンクです。HTTP はラボアプリ上の GET /?type= であり、WP のルートではありません。


エントリ

  • Method: GET
  • Path: /?type=
  • Router: Lab GET /?type= -> Connection::func()->cast('body', $_GET['type']). FunctionsBuilder::cast setConjunction AS add literal dataType. CakePHP 5.2.13. Fixed 5.2.14.
  • Notes: CVE-2026-79752 CWE-89 CakePHP 5.2.13. Witness POCWitness79752. Not 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 database 5.2.13
  • lab app passes GET type into cast()
  • sqlite notes.body = POCWitness79752

ウィットネス

HTTP ボディ内の POCWitness79752 かつ sql= 行に注入された断片が表示されること (CAST(body AS TEXT) のみではない)。

成功ではないもの

  • CAST AS TEXT のみで、sql= に注入断片がない
  • composer 500
  • リバースシェル

パッチ / 修復

まずこれを実施: 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

成功とは、レスポンスボディ内の上記のウィットネスです。一般的な 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

ツールをダウンロード