BUG: A locked album can be shared over the network without its password
Maintainers usually reply within 4 days
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
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
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
- Create an album and lock it with a password.
- On the Albums page, open the album's ⋯ menu and choose Share.
- The share dialog opens straight away. No album password is asked for.
- Create a link with Require a password turned off.
- 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:handleShareAlbumopens the share dialog directly, whilehandleAlbumClickasks for the password first for a locked album.backend/app/share/media.py:share_media_album_namenotes thatis_lockedis deliberately ignored, because sharing has its own authorization. That authorization is optional, though, so a locked album can be shared with none.
Possible fixes
- 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. - 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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/PictoPy
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Possibly taken @jayssSmm claimed this 1 day ago. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/PictoPy#1780 · 5 comments ·
Maintainers usually reply within 4 days
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workPossibly taken @swastiksharma45 claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
AOSSIE-Org/PictoPy#1779 · 2 comments ·
Maintainers usually reply within 4 days
-
BUG: PROD: Face search shows "No Matches Found" for every empty result, even when AI tagging is offPossibly taken @dhruvbit claimed this 3 days ago. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AOSSIE-Org/PictoPy#1770 · 3 comments ·
Maintainers usually reply within 4 days
-
BUG: Add images to album: success message shows requested count, not number actually addedPossibly taken @riyanshbhosale claimed this 5 days ago. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/PictoPy#1740 · 4 comments ·
Maintainers usually reply within 4 days
-
BUG: /sync-folder does not validate the supplied folder_idMay be free again @sathvikn113 claimed this 10 days ago, and no pull request is open. Openbug possible-duplicate
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/PictoPy#1731 · 5 comments ·
Maintainers usually reply within 4 days
All issues in AOSSIE-Org/PictoPy
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
bad-antics/lateralus-lang#1140 ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
fixture good first issue help wanted vendor:cisco
Difficulty 1/5 1-3 hours Newbie friendliness 85/100