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

Aperta
#1,778 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@zaynab123-code ci sta già lavorando.

Dal 26/11/2026.

  • #1784 di @zaynab123-code — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, typescript
Ambito
backend, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Python
Stelle
322
Fork
793
Merge medio
6g 9h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AOSSIE-Org/PictoPy

Tutte le issue di AOSSIE-Org/PictoPy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.