An important security issue was discovered in YunoHost. A fixed version was released in version 12.1.41.
We recommend to upgrade and run the migration 0037_fix_bad_permissions as soon as possible. This migration could take a while and will search for paths left writable by other users and fix these too large permissions.
yunohost tools migrations run 0037_fix_bad_permissions
You might have some good reasons to grant write permissions to others on some paths, if so you should reapply your customization manually. After the migration, you can check the list of change in the log of the migration.
IMPORTANT: On some servers, this migration may take several hours (or days) if there are a large number of files.
Alternatively, if you don’t want to run the migration on all your writable mounted filesystems, you can fix your paths by hand with the command bellow (think to replace <PATH> by the part of the tree files you want to fix):
/usr/bin/find <PATH> -mount \( -path /proc -o -path /sys -o -path /dev -o -path /run -o -path /var/spool/postfix -o \( -regextype posix-extended -regex .*/.snapshots(/.*)? \) \) -prune -o \( -type f -or -type d -or -type s \) -perm -o+w ! -perm /o+t -exec chmod o-w {} ; -print
NB: if you have skipped the migration 0036 about DKIM from the web admin, you can run this migration later with the following command:
yunohost tools migrations run 0036_dkim_keys_upgrade