Summary
NocoDB's public shared-view endpoints can retrieve records by primary key without enforcing the view's row filter. Someone with an anonymous share link may be able to enumerate sequential keys to access excluded linked data or download associated attachments.
Affected context
The issue occurs in public shared-view endpoints that fetch records by primary key, including link, has-many, and attachment download endpoints. It becomes risky when an endpoint does not apply the shared view's row filter to the fetched record, allowing a share-link holder to access data excluded from the view.
Exploit preconditions
- Attack surface: Public shared-view link, link, has-many, or attachment download endpoints
- Required access: An anonymous share link; authenticated access is not described as necessary
- Trigger point: A request that fetches a record or attachment using its primary key
- Why exploitation is possible: The endpoint fetches by key without applying the view's row filter, and sequential keys may be enumerable
Why this happens
The underlying issue is an authorization check that does not constrain primary-key lookups to the records permitted by the shared view. This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where a user-controlled identifier can select an object without an effective authorization check. The row filter is not consistently enforced across the affected retrieval paths.
Potential impact
- Anonymous share-link holders may access records excluded from the view
- Linked data may be disclosed through link or has-many endpoints
- Attachments associated with excluded records could be downloaded
- Enumeration may expose more data than the shared view was intended to reveal
General mitigation guidance
Mitigation generally focuses on enforcing authorization consistently at the point where each record or attachment is retrieved.
Common defensive patterns include:
- Applying the shared view's row filter to every record lookup, including relationship and attachment paths
- Deriving authorization from the active share context rather than trusting a supplied primary key
- Using secure-by-default access controls that deny access when authorization cannot be established
- Limiting the data and operations available to anonymous share links
- Avoiding predictable identifiers as a substitute for authorization, and applying least privilege to shared access
How teams detect issues like this
High-level detection approaches include:
- Reviewing endpoint code for primary-key lookups that do not apply view-level authorization or row filters
- Using static analysis or code review checks to flag object retrieval based on user-controlled identifiers without an authorization check
- Testing that records excluded by a shared view remain inaccessible through direct, relationship, and attachment retrieval paths
- Enforcing policies that require authorization checks for every object access path, including anonymous endpoints
Automated code review tools may help identify inconsistent checks, but should be paired with tests of the actual access controls.

