-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingreleasedAvailable in the stable releaseAvailable in the stable releasesecurityImpact on server or browser securityImpact on server or browser security
Description
Files created by PhotoPrism, such as the imported files ending up in the "originals" directory, album YAMLs under "storage/albums/folder", YAMLs under "storage/sidecar" folder, and many other, are created with executable bit set in permissions.
Steps to reproduce:
- Have a photo imported.
- Check permissions on the file that appeared in "originals".
Expected behavior:
The created files don't have the executable bit set unless they are executables.
Likely cause of the problem:
photoprism/internal/photoprism/mediafile.go
Line 687 in 69682de
| destFile, err := os.OpenFile(dest, os.O_RDWR|os.O_CREATE, os.ModePerm) |
Line 30 in 69682de
| destFile, err := os.OpenFile(dest, os.O_RDWR|os.O_CREATE, os.ModePerm) |
os.ModePerm that is 0o777; need to use 0o666, since the file created is not intended to be an executable in either case.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingreleasedAvailable in the stable releaseAvailable in the stable releasesecurityImpact on server or browser securityImpact on server or browser security
Type
Projects
Status
Release 🌈