Inspect query authorization and retrieval limits

SEC-014 / v1.2.1 / 2026-10-19

Editorial inspection guidance. Start with read-only permissions; fixes, credential revocation, and production changes follow the owner’s authorization.

Read-only review example

For this kind of environment

An API exposes user or organization data through detail, list, and export endpoints.

First read
Read how each endpoint checks the caller against the requested resource.
Where to look
  • How organization and user context is established.
  • Authorization conditions for detail, list, and export access.
  • Limits covering volume, pagination, and bulk retrieval.
Evidence to retain
Record actor-resource-action rules and the scope of existing denial and volume tests.
What this does not establish
Hard-to-guess IDs and login requirements do not establish authorization. Do not make unauthorized requests.

Applicability

Environments where user or organization identity determines accessible data, including bulk-query controls.

Read the incidents behind this rule (29)
Rule on GitHub ↗

Where to look first

  • API routes, authorization, tenant filtering, and database queries
  • Pagination, exports, retrieval limits, and monitoring configuration

Inspection steps

  1. Inspect server-side caller and record authorization; use evidence from an authorized test environment for unauthenticated, insufficient-role, and cross-tenant denial.
  2. Inspect per-user and per-tenant volume limits and detection, including repeated ordinary requests, pagination, and access spread across endpoints.
  3. In an authorized test environment, verify authorization across private endpoints and methods, rejection of malformed tokens, invitations and role changes.

Remediation direction

  • Centralize server-side authorization and set appropriate limits and alerts; verify allowed and denied queries with synthetic data.

Evidence required for completion

  • Record API coverage, role/ownership combinations, allow/deny results, retrieval limits, and alert evidence; identify untested endpoints and exports.

Limits and unverified scope

  • Limits do not repair authorization flaws. Do not exercise bulk requests or real customer queries in production; unavailable permissions or test evidence mean unverified.

Read this in context

Additional references