BUG: A locked album can be shared over the network without its password

オープン
#1,778 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

@zaynab123-code がすでに取り組んでいます。

2026年11月26日 から。

  • #1784 @zaynab123-code による — オープン

評価

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

調査の方向性

Read frontend/src/pages/Album/Album.tsx around handleShareAlbum and handleAlbumClick, then trace the backend password check verify_album_password and backend/app/share/media.py's share_media_album_name. Confirm how the existing check can authorize sharing a locked album. Done when sharing requires a valid album password or a share password for locked albums, and the unprotected network link no longer exposes its photos.

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

説明

bug enhancement possible-duplicate
Is there an existing issue for this?
  • I have searched the existing issues
What happened?

On the Albums page, a locked album can be shared from its menu without entering the album's password.

Steps to reproduce
  1. Create an album and lock it with a password.
  2. On the Albums page, open the album's ⋯ menu and choose Share.
  3. The share dialog opens straight away. No album password is asked for.
  4. Create a link with Require a password turned off.
  5. Open the link from another device on the network.
Expected

Sharing a locked album should need its password, the same as opening it does (clicking a locked album opens the password dialog first).

Actual

Anyone with the link can see every photo in the album. The lock protects the album inside the app, but the share option exposes it to the network without the password.

Where
  • frontend/src/pages/Album/Album.tsx: handleShareAlbum opens the share dialog directly, while handleAlbumClick asks for the password first for a locked album.
  • backend/app/share/media.py: share_media_album_name notes that is_locked is deliberately ignored, because sharing has its own authorization. That authorization is optional, though, so a locked album can be shared with none.
Possible fixes
  1. For a locked album, ask for the album password before the share dialog opens. Verify it with the backend's existing album password check (verify_album_password) so the check is not frontend-only.
  2. Or require a share password whenever the album is locked.

Option 1 matches how opening a locked album already works. I would be happy to work on whichever the maintainers prefer.

Record
  • I agree to follow this project's Code of Conduct
主要言語
Python
スター
322
フォーク
793
平均マージ
6日 9時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

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

AOSSIE-Org/PictoPy のほかの issue

AOSSIE-Org/PictoPy の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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