Summary
NocoDB has an authorization bypass in its internal batch endpoint that can let authenticated base Editors modify records in data-read-only sources. The risk arises when the batch envelope names a writable decoy table while its sub-operations target a different, read-only table.
Affected context
The issue affects NocoDB deployments with the vulnerable batch handling behavior when an authenticated base Editor can access the internal batch endpoint. It becomes risky when authorization is based on the table named in the batch envelope rather than each table targeted by its data operations.
Exploit preconditions
- Attack surface: NocoDB's internal batch endpoint
- Required access: An authenticated account with base Editor privileges
- Trigger point: Processing a batch request containing dataUpdate, dataInsert, or dataDelete sub-operations
- Why exploitation is possible: The batch envelope can name a writable decoy table while a sub-operation targets a data-read-only source table, bypassing the intended access restriction
Why this happens
The authorization check does not consistently bind the permission decision to the resource affected by each operation. If the system trusts the table named in the batch envelope instead of independently authorizing every sub-operation against its target, an Editor may perform actions outside their intended permissions. This is an authorization enforcement failure mapped to CWE-863: Incorrect Authorization.
Potential impact
- An attacker may alter records in a data-read-only source.
- An attacker could insert unauthorized data or delete existing records.
- Data integrity and availability may be affected.
General mitigation guidance
Defensive patterns include authorizing every batch sub-operation against its actual target resource and operation, rather than relying on envelope-level metadata. Systems can reject requests when envelope and sub-operation targets do not align, apply deny-by-default checks for read-only sources, and minimize the privileges granted to user roles and service accounts. Treat client-supplied resource identifiers as untrusted and enforce consistent authorization at the point where each change is applied.
How teams detect issues like this
Review batch-processing code for authorization decisions made only at the request-envelope level, and check whether each sub-operation is independently authorized against its target. Static analysis and code review can flag paths where client-supplied table identifiers influence authorization or where read-only policy checks are missing. Policy tests can verify that Editor roles cannot write to read-only sources through any endpoint or batch operation.

