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

Abierto
#1,778 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

@zaynab123-code ya está trabajando en esto.

Desde el 26/11/2026.

  • #1784 de @zaynab123-code — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python, typescript
Área
backend, security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Python
Estrellas
322
Forks
793
Merge medio
6 d 9 h
PR fusionados (30 d)
20

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AOSSIE-Org/PictoPy

Todos los issues de AOSSIE-Org/PictoPy

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.