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

Open
#1,778 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

@zaynab123-code is already working on this.

Since Nov 26, 2026.

  • #1784 by @zaynab123-code — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, typescript
Domain
backend, security

Research direction

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.

Written by the indexing model from the issue text.

Description

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
Dominant language
Python
Stars
322
Forks
793
Avg merge
6d 9h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/PictoPy

All issues in AOSSIE-Org/PictoPy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.