CustomAlerts.getAlert discloses alert existence to any authenticated user, including accounts with no site access

オープン 初心者向け
#310 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

matomo-org/plugin-CustomAlerts のほかの issue

matomo-org/plugin-CustomAlerts の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。