Summary
An authorization flaw in NocoDB allows organization Creators to access routes intended for users with other roles because the ACL middleware does not enforce its allowed-role restrictions. Depending on the routes reached, this could let an attacker generate a super admin password reset link or read and modify SSO client secrets.
Affected context
The issue occurs in NocoDB's role-based access control middleware and affects routes whose access is intended to be limited by role. It becomes risky when an organization Creator can reach those routes and the middleware fails to check whether that role is allowed.
Exploit preconditions
- Attack surface: NocoDB organization-user and other role-restricted routes
- Required access: An account with the organization Creator role
- Trigger point: A request to a route protected by the ACL middleware
- Why exploitation is possible: The middleware does not enforce its configured allowed roles, allowing a Creator to reach actions intended for other roles
Why this happens
The authorization middleware fails to apply the allowed-role rules for protected routes. This is an authorization check implementation error mapped to CWE-863: Incorrect Authorization: access is granted without correctly verifying that the user's role is permitted to perform the requested action.
Potential impact
- An attacker with organization Creator access may generate a super admin password reset link and take over the instance.
- SSO client secrets could be exposed.
- SSO client secrets could be modified, potentially disrupting or undermining authentication integrations.
- Other role-restricted actions could be accessible to users who should not be authorized.
General mitigation guidance
Defensive patterns include enforcing authorization checks consistently at every protected route and defaulting to denial when a role or permission check is missing or inconclusive. Centralized, explicit permission policies can reduce inconsistent checks; sensitive actions should also verify the caller's privileges at the point of execution. Limit account privileges and protect secrets from unnecessary access, and use tests to confirm that disallowed roles cannot access sensitive operations.
How teams detect issues like this
- Review authorization middleware and route definitions for configured roles that are not actually checked.
- Use static analysis or code review to identify routes where authentication is present but role or permission enforcement is absent.
- Add policy tests that verify both permitted and denied roles for sensitive endpoints, including organization-user and SSO operations.
- Monitor access to password-reset and SSO-secret operations for unexpected roles or unusual activity.

