Summary
Instatic contains an authorization bypass in the row-author handler: it loads rows without applying the table-level access check used by the protected access-loading path. An authenticated user with content.edit.any but without data.system.tables.read may be able to read system-table rows and reassign their authors through the affected API endpoint.
Affected context
The issue affects Instatic before 0.0.21 in the CMS data-row author handler. It becomes a risk when an authenticated user can reach the author-update API and has content.edit.any but lacks data.system.tables.read; the handler's row-loading path may bypass the table-level access check.
Exploit preconditions
- Attack surface: The
/admin/api/cms/data/rows/:id/authorAPI endpoint - Required access: An authenticated account with
content.edit.anybut withoutdata.system.tables.read - Trigger point: A PATCH request handled by
handleRowAuthor - Why exploitation is possible: The handler uses
getDataRow()rather thanloadRowForAccess(), so table-level authorization checks may be skipped when accessing a row.
Why this happens
The underlying issue is a missing authorization check, mapped to CWE-862: Missing Authorization. The handler retrieves a row through a path that does not enforce the table-level access policy, then allows the author operation to proceed. Authorization should be enforced consistently at the resource being accessed, rather than relying on a different permission or an unguarded data-loading function.
Potential impact
- Users with insufficient table-level permission may be able to read system-table rows.
- An attacker could reassign row authors, affecting attribution or workflow ownership.
- Unauthorized access or changes could undermine data confidentiality and integrity.
General mitigation guidance
Common defensive patterns include:
- Enforce authorization checks for the specific table and row before reading or modifying data.
- Use data-access helpers that consistently apply policy checks, and avoid bypassing them in mutation handlers.
- Treat each API operation as an independent authorization boundary; do not infer permission from a broader or unrelated capability.
- Apply least privilege to user roles and separate read, edit, and author-assignment permissions where appropriate.
- Deny access by default when a resource's authorization context cannot be established.
How teams detect issues like this
- Review row and mutation handlers for data-loading paths that do not enforce the same authorization policy as protected access helpers.
- Use static analysis or code-review checks to flag sensitive data access and updates that occur before resource-level authorization.
- Test API authorization with accounts that have edit capabilities but lack the relevant table-read permissions.
- Enforce policy tests in CI to verify that unauthorized requests are denied and do not expose or modify rows.

