-
-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
Currently the OIDC have admin group hard coded in /var/www/config/config.php file as group name "filerise-admins" for the hacker it is easy target. During OIDC authentication JWT payload can inject user group to "filerise-admins" to access admin rights.
To Reproduce
Steps to reproduce the behavior:
- Go to '/var/www/config/config.php'
- Line '76'
- 'define('FR_OIDC_ADMIN_GROUP', 'filerise-admins');'
- See error
Advice to change to docker compose environment values to determent admin group:
#FR_OIDC_AUTO_CREATE: "true/false"
#FR_OIDC_GROUP_CLAIM: "groups"
#FR_OIDC_ADMIN_GROUP: "....."
#FR_OIDC_ALLOW_DEMOTE: "true/false"
- Go to '/var/www/config/config.php'
- Line '76'
- Replace to 'define('FR_OIDC_ADMIN_GROUP', getenv('FR_OIDC_ADMIN_GROUP') ?: '');'
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request