Skip to content

OIDC Admin Group assigment in Docker Compose file #86

@s-juozaitis

Description

@s-juozaitis

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:

  1. Go to '/var/www/config/config.php'
  2. Line '76'
  3. 'define('FR_OIDC_ADMIN_GROUP', 'filerise-admins');'
  4. 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"

  1. Go to '/var/www/config/config.php'
  2. Line '76'
  3. Replace to 'define('FR_OIDC_ADMIN_GROUP', getenv('FR_OIDC_ADMIN_GROUP') ?: '');'

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions