Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

GET /organisations/{orgID}/users returns password hash and emailHash

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend, security

調査の方向性

OrganisationsController.tsを読み、include: { users: true }を使用しているgetOrganisationUsersを見つけます。背景を把握するため、関連する修正である#878と#926を確認してください。このルートのレスポンスにpasswordとemailHashが含まれないことを検証するテストを追加します。次に、ユーザーの組み込みで両方のフィールドが省かれることを確認し、関連するテストを実行してください。

索引モデルが issue の本文から書いたものです。

説明

backend bug

GET /organisations/{orgID}/users returns every column of each user in the organisation, including the stored password hash and emailHash, so any OrganisationAdmin can read them.

getOrganisationUsers in OrganisationsController.ts uses include: { users: true } with no omit. #878 and #926 fixed the same leak on the /users routes, but this route was missed. The handler also logs the full response, which #943 already covers.

Fix: include: { users: { omit: { password: true, emailHash: true } } }, plus a test that asserts both fields are absent. If #937 lands first, its UserResponse[] response type leaves both fields out of the type but not out of the response, so the omit is still needed.

Related: #921, #922, #943, #937.

主要言語
TypeScript
スター
4
フォーク
0
平均マージ
14時間 50分
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

Garvan-Data-Science-Platform/ctrl のほかの issue

Garvan-Data-Science-Platform/ctrl の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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