Summary
Storyden allows users with the MANAGE_ROLES permission to grant ADMINISTRATOR privileges without already being administrators. A user with that role-management access may use account or role operations to gain administrative control of the instance.
Affected context
The vulnerability affects Storyden through version 1.26.16 in role and account management functionality. It becomes risky when a user who has MANAGE_ROLES can assign the ADMINISTRATOR permission through AccountAddRole or create or update a role with that permission, without an administrator-level authorization check preventing the change.
Exploit preconditions
- Attack surface: Storyden account and role management operations
- Required access: An authenticated account with the MANAGE_ROLES permission
- Trigger point: Calling AccountAddRole for another controlled account, or using RoleCreate or RoleUpdate to grant ADMINISTRATOR
- Why exploitation is possible: The role-management capability permits assigning administrator privileges without requiring the caller to be an administrator
Why this happens
The underlying issue is an authorization failure in privileged role management. The application does not adequately distinguish permission to manage roles from permission to grant the highest-level administrator privilege. This maps to CWE-269: Improper Privilege Management, where privileges are assigned or controlled in a way that allows users to exceed their intended authority.
Potential impact
- A user with MANAGE_ROLES may gain administrator-level access
- An attacker could take control of the Storyden instance
- Administrative capabilities could be used to alter instance settings or manage accounts
General mitigation guidance
Defensive patterns include separating routine role management from grants of highly privileged permissions, and requiring an appropriately authorized administrator for sensitive privilege changes.
- Apply server-side authorization checks to every operation that assigns or modifies roles
- Use explicit allowlists or policy rules for grantable permissions
- Follow least-privilege principles when assigning MANAGE_ROLES
- Audit and monitor changes to administrator privileges
- Default to denying privilege changes when authorization is unclear
How teams detect issues like this
Review authorization logic for AccountAddRole, RoleCreate, and RoleUpdate, especially paths that can assign ADMINISTRATOR. Look for checks that rely only on MANAGE_ROLES rather than verifying authority to grant the requested privilege.
- Use static analysis or code review rules to flag privilege assignment without a corresponding authorization check
- Test role-management operations with accounts that have MANAGE_ROLES but are not administrators
- Monitor audit records for administrator grants and role changes
- Enforce policy checks for sensitive permission assignments in development and deployment workflows

