CustomAlerts.getAlert discloses alert existence to any authenticated user, including accounts with no site access
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- php
調査の方向性
plugins/CustomAlerts/API.php の getAlert() から始め、その所有権チェックを、issue によると SQL で結果を絞り込む getAlerts() および getTriggeredAlerts() と比較してください。所有者でない場合の応答が、存在しないアラートに対する応答と区別できないようにし、その後、どちらの場合も同じ not-found エラーが返されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Reported to the Matomo HackerOne program (report #4220417) and closed as Informative — the program confirmed the code reading, ruled it a hardening gap rather than a bounty-eligible vulnerability, and suggested filing here; the fix shape below is the one the program itself proposed.
Behavior (CustomAlerts 5.3.3, plugins/CustomAlerts/API.php)
getAlert() throws CustomAlerts_AlertDoesNotExist (line 73) before Validator::checkUserHasPermissionForAlert is called (line 77). Any authenticated caller — including an account with no site access at all — can distinguish a nonexistent alert ID from a foreign-owned one purely from the error message. No alert definition, name, recipients, or history is exposed.
Suggested fix
Merge the existence and ownership responses into a single not-found error for any non-owner, the same way getAlerts / getTriggeredAlerts already scope their results in SQL.
Happy to provide the controlled-fixture reproduction details from the original report if useful.
- 主要言語
- PHP
- スター
- 17
- フォーク
- 24
- 平均マージ
- 20時間 38分
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
matomo-org/plugin-CustomAlerts のほかの issue
-
bug triaged
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
matomo-org/plugin-CustomAlerts#287 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
matomo-org/plugin-CustomAlerts#250 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
matomo-org/plugin-CustomAlerts#170 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
matomo-org/plugin-CustomAlerts#142 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
c: Privacy enhancement triaged
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
matomo-org/plugin-CustomAlerts#119 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
matomo-org/plugin-CustomAlerts の issue をすべて見る
似ている issue
-
Bug Status: Needs Triage
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
domain/checkout Platform(Default) priority/low testing/acceptance
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pluginsGLPI/addressing#132 ·
-
5.14.0 PIE packages still declare PHP >=8.3, so PIE installs them on PHP 8.3 and the build failsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
bug component:user_profiles
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
knowii-oss/knowii#1689 ·
メンテナーはふだん 1 日以内に返信