Skip to content

Security Finding (3.7) SEC-021: Static Roles in Security User Object #178

Description

@DyanGalih

Finding ID: SEC-021
Location: lib/Security/User.php
CVSS: 3.7

getRoles() returns only ['ROLE_USER'] for all users, disconnecting Symfony role system from application groups and preventing integration with other bundles expecting standard roles.

Impact: Permission model inconsistencies; third-party bundles misbehave.

Remediation (short): Map group codes to Symfony roles (e.g., add ROLE_ADMIN/ROLE_SUPER_ADMIN for super admin groups) and return unique roles.

Reference: SECURITY_REVIEW.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions