Summary
LaraDashboard has an authorization flaw that can let administrators with the settings.edit permission access core-upgrade operations intended only for Superadmins. Depending on the action used, an authorized attacker may obtain a database backup containing password hashes or restore or upgrade the site.
LaraDashboard has an authorization flaw that can let administrators with the settings.edit permission access core-upgrade operations intended only for Superadmins. Depending on the action used, an authorized attacker may obtain a database backup containing password hashes or restore or upgrade the site.
Affected context
The issue occurs in SettingPolicy::manageCoreUpgrades() and affects the /admin/settings/core-upgrades actions for backup, download, restore, and upgrade. It is relevant when an administrator who is not a Superadmin has the settings.edit permission and can reach these operations.
The issue occurs in SettingPolicy::manageCoreUpgrades() and affects the /admin/settings/core-upgrades actions for backup, download, restore, and upgrade. It is relevant when an administrator who is not a Superadmin has the settings.edit permission and can reach these operations.
Exploit preconditions
- Attack surface: The authenticated
/admin/settings/core-upgradesinterface - Required access: An account with administrative access and the
settings.editpermission, but without Superadmin status - Trigger point: A core-upgrade backup, download, restore, or upgrade action
- Why exploitation is possible: The authorization check does not consistently enforce the Superadmin-only restriction for these operations
- Attack surface: The authenticated
/admin/settings/core-upgradesinterface - Required access: An account with administrative access and the
settings.editpermission, but without Superadmin status - Trigger point: A core-upgrade backup, download, restore, or upgrade action
- Why exploitation is possible: The authorization check does not consistently enforce the Superadmin-only restriction for these operations
Why this happens
The policy method does not correctly restrict core-upgrade actions to Superadmins. This is an authorization decision error mapped to CWE-863: Incorrect Authorization: a permission check grants access to a sensitive operation to an account that should not be authorized.
The policy method does not correctly restrict core-upgrade actions to Superadmins. This is an authorization decision error mapped to CWE-863: Incorrect Authorization: a permission check grants access to a sensitive operation to an account that should not be authorized.
Potential impact
- An attacker with the required administrator access may obtain database dumps containing password hashes.
- They could restore data or otherwise alter site state through restore operations.
- They could initiate core-upgrade operations without Superadmin authorization.
- Unauthorized changes could affect the availability or integrity of the site.
- An attacker with the required administrator access may obtain database dumps containing password hashes.
- They could restore data or otherwise alter site state through restore operations.
- They could initiate core-upgrade operations without Superadmin authorization.
- Unauthorized changes could affect the availability or integrity of the site.
General mitigation guidance
Defensive patterns focus on making authorization checks explicit, consistent, and enforced at the point of each sensitive operation.
- Apply a Superadmin-level authorization check to every core-upgrade action, including backup downloads and restore operations.
- Deny access by default when a role or permission check is missing or ambiguous.
- Keep authorization decisions separate from interface visibility so hidden controls cannot substitute for server-side enforcement.
- Limit administrative privileges and access to database backups, and protect backup contents as sensitive data.
Defensive patterns focus on making authorization checks explicit, consistent, and enforced at the point of each sensitive operation.
- Apply a Superadmin-level authorization check to every core-upgrade action, including backup downloads and restore operations.
- Deny access by default when a role or permission check is missing or ambiguous.
- Keep authorization decisions separate from interface visibility so hidden controls cannot substitute for server-side enforcement.
- Limit administrative privileges and access to database backups, and protect backup contents as sensitive data.
How teams detect issues like this
- Review policy methods and route handlers for mismatches between documented role requirements and implemented permission checks.
- Use static analysis or automated code review rules to flag sensitive operations guarded only by broad permissions such as
settings.edit. - Test authorization boundaries with accounts representing Superadmin and non-Superadmin roles, including direct requests to each action.
- Apply policy checks in CI or other security gates for routes that expose backups, restore functionality, or upgrade controls.
- Review policy methods and route handlers for mismatches between documented role requirements and implemented permission checks.
- Use static analysis or automated code review rules to flag sensitive operations guarded only by broad permissions such as
settings.edit. - Test authorization boundaries with accounts representing Superadmin and non-Superadmin roles, including direct requests to each action.
- Apply policy checks in CI or other security gates for routes that expose backups, restore functionality, or upgrade controls.

