Summary
Teable's plugin and nested-resource APIs do not consistently verify that the requested object belongs to the resource the caller is authorized to access. An authenticated attacker may use another tenant's identifiers to disclose or alter data, rotate or reveal a plugin's OAuth secret, or delete a plugin.
Affected context
The issue affects Teable deployments before the fix where plugin secret regeneration and deletion routes lack permission enforcement and ownership checks. It also occurs in nested API requests where authorization is based on a caller-supplied parent resource identifier, but the service retrieves or updates a child object using only its identifier.
Exploit preconditions
- Attack surface: Authenticated plugin-management and nested-resource API endpoints
- Required access: An account able to make authenticated API requests and supply resource identifiers
- Trigger point: Calling plugin secret or deletion routes, or requesting nested resources such as views or plugin storage
- Why exploitation is possible: The API may authorize a caller-controlled parent resource without confirming that the requested child object or plugin belongs to that parent or to the caller
Why this happens
Authorization is not consistently bound to the object being accessed. Some plugin operations lack route-level permission checks and ownership validation, while nested-resource services resolve children by identifier without verifying their relationship to the authorized parent.
This is primarily CWE-639: Authorization Bypass Through User-Controlled Key. Missing permission checks also relate to CWE-862: Missing Authorization, and the broader failure to enforce access restrictions relates to CWE-284: Improper Access Control.
Potential impact
- An attacker could disclose another tenant's view configuration, filter values, field layout, or share identifier.
- An attacker could rotate and disclose an OAuth secret belonging to another plugin.
- An attacker could overwrite another tenant's plugin storage or delete a plugin, including a system plugin.
- Exposed configuration or credentials may enable further unauthorized access or disruption.
General mitigation guidance
Defensive patterns focus on enforcing authorization against the exact object being accessed:
- Require explicit permissions and ownership checks for every sensitive plugin operation.
- Resolve nested objects through the authorized parent-child relationship rather than by child identifier alone.
- Derive trusted parent identifiers from authenticated context where possible, rather than relying on caller-supplied values.
- Apply tenant scoping consistently to reads, updates, deletes, and secret-management operations.
- Use least-privilege controls for plugin management and protect secrets from disclosure by default.
How teams detect issues like this
- Review routes for sensitive operations that lack explicit permission checks or service-level ownership validation.
- Use static analysis and code review rules to flag object lookups by caller-supplied identifiers without tenant or parent-resource scoping.
- Test authorization policies with mismatched parent and child identifiers across tenants.
- Monitor for unusual plugin secret rotations, plugin deletions, or cross-tenant resource access attempts.
- Enforce API policies that require authorization decisions to be tied to the specific object and operation.

