Skip to content

Object ownership (BOLA and IDOR) ​

Symptoms of object ownership checks, which learn which client owns each object and flag other clients that read it.

Nothing is learned or flagged ​

  • Cause: api.ownership.enabled is not true; the application has no identity key yet (on a fresh node the log says "object ownership checks wait for the application's identity key"); the learning period (ownership.learning, 24 hours by default) has not ended; clients have no identity or only an ignored kind (bola.no_identity events say so); or the IDs are not found. Short non-numeric path segments need an API description or a manual endpoint. Query and JSON names must match id_names, and values must have one of the id_shapes and be at most 128 bytes.
  • Check: the trace's bola step; the application's identity settings; the waap_bola_objects gauge (zero means nothing has been learned).
  • Fix: enable the checks; set up client identity (a verified consumer, a JWT claim, the session user or a session cookie); add id_names or a manual endpoint for the IDs.

bola.foreign_object for objects users legitimately share ​

  • Cause: a shared object is reported for its first readers until shared_after distinct clients have used it; or a whole kind of object is public (products, posts); or the object was handed out once to one client in a listing (a personal list) that others read by a link.
  • Check: the event's namespace and owner count, and whether the readers are one team.
  • Fix: add the namespace to public_namespaces; lower shared_after (at least 2); or add an exception for bola.foreign_object on the parameter.

One user is reported as foreign on their own objects ​

  • Cause: the user's identity changed between the requests that taught the owner and the later ones (a cookie identity across logins, an address identity before login and a token after); the object was forgotten (ttl or max_objects eviction, see waap_bola_evicted_total) and another client used it first; or the identity key was rotated.
  • Check: the identity key of both events (Events, filtered by identity).
  • Fix: use a stable identity source (a verified consumer or a JWT claim); raise ttl or max_objects.

bola.enumeration or bola.sequential for a client that pages through data ​

  • Cause: the client reads many objects that are not its own (an admin tool, a support tool, a sync job), or walks numeric IDs it did not get from an answer.
  • Fix: raise enumeration.distinct or enumeration.sequential; add an exception for that client's paths; or, for trusted services, give them their own application or an identity kind in ignore_kinds.

bola.no_identity once a minute for an endpoint ​

  • Cause: by design. Requests that name objects arrive without an identity, or with an address identity only, which is never flagged.
  • Fix: set up client identity for the application, or add an exception for bola.no_identity on that path if anonymous use is expected there.

Answers are not learned ​

  • Cause: only successful (2xx) JSON answers to GET, POST, PUT and PATCH are read, up to max_response and the response body limit, not truncated, inside the response scope (policy.response), and not compressed with an encoding the product does not decode (br, zstd). Answers to requests that used a foreign object teach nothing. An answer never changes the owner of an object that already has one.
  • Check: the trace's response body steps; the answer's Content-Type and length.
  • Fix: widen the response scope or max_response, or use learn_from: requests when the application answers in other formats.

Memory grows with ownership on ​

  • Cause: each remembered object takes about 130 bytes. max_objects is per application, with a node-wide cap of 2,000,000 objects.
  • Fix: lower max_objects or ttl.

Endpoints saved but not kept (the answer says "unchanged") ​

  • Cause: ownership.enabled is off, so the compiled configuration equals the active one and no version is stored.
  • Check: waap api ownership -app A says the checks are off.
  • Fix: run waap api set -app A ownership.enabled=true (or use the setting in the console), then add the endpoints.

The ownership view shows no counts, or reset answers 503 ​

  • Cause: the counts are stored by the nodes every few minutes, so a fresh node or a window without traffic has none. A process without inspection or a database cannot reset (503).
  • Check: the window (-days), waap_bola_objects, and the node's log.
  • Fix: wait one flush interval, or run the command against a node that stores counts.