mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
File Manager recursive permission change applies directory permissions to files (sets 770 on files) #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chiareu on 3/31/2026
CloudPanel version(s) affected
2.5.3
Description
When using CloudPanel File Manager to change permissions recursively on a directory, the system incorrectly applies the same permission mode to both directories and files.
Specifically, when setting a directory to 770, all contained files are also set to 770, instead of using appropriate file permissions.
Impact:
Technical concern:
This suggests the recursive permission logic is applying directory mode to files, instead of distinguishing between:
Severity:
Medium to High (incorrect permission handling with security implications)
How to reproduce
Expected behaviour:
Possible Solution
Suggestion:
Additional Context