open-object: Objects API: Cross-object-type authorization bypass on the object history-detail endpoint
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Reports 1
1 outlet mention it. Reports are not confirmation; each links to its source.
Description
Open Object provides an API and admin interface to manage objects and object types. From 2.4.3 until 2.5.1, 3.6.2, 4.0.2, and 4.1.1, a token scoped to read one ObjectType can read the full versioned record of an object of any other ObjectType via the history-detail endpoint GET /api/v2/objects/{uuid}/{index}. The history_detail action in src/objects/api/v2/views.py calls self.get_queryset() and get_object_or_404 directly instead of self.get_object(), so check_object_permissions and the per-object check in ObjectTypeBasedPermission.has_object_permission are not invoked. The queryset's filter_for_token applies only to the list and search actions, while ObjectTypeBasedPermission.has_permission allows non-create actions, leaving neither check to constrain history-detail records to the token's permitted ObjectType. The normal retrieve endpoint returns 403 for the same unauthorized object, and the sibling history action enforces the grant. Any valid non-superuser API token with a read grant on at least one ObjectType can therefore disclose another ObjectType's complete versioned object data, which can include citizen or case records and sensitive identifiers in government deployments. This issue is fixed in versions 2.5.1, 3.6.2, 4.0.2, and 4.1.1.
Text from CVE List
Affected versions 4
- open-objectaffected: >= 2.4.3, < 2.5.1CVE List
- open-objectaffected: >= 3.0.0, < 3.6.2CVE List
- open-objectaffected: >= 4.0.0-rc.1, < 4.0.2CVE List
- open-objectaffected: >= 4.1.0, < 4.1.1CVE List
References 9
- github.com/maykinmedia/open-object/commit/11c5b85ea5d1d80f940883f01b8b8ea80ccdd47cFixvia CVE List
- github.com/maykinmedia/open-object/commit/27e806eff04c52ebe1e78126c288b63fc0308b52Fixvia CVE List
- github.com/maykinmedia/open-object/commit/6154d9c2ed8c162b61f2d42db2de4eda5081347fFixvia CVE List
- github.com/maykinmedia/open-object/commit/ce6b1820619c843748bc5231597aa7fc060d95feFixvia CVE List
- github.com/maykinmedia/open-object/security/advisories/GHSA-55w6-rqp5-j5wxAdvisoryvia CVE List
- github.com/maykinmedia/open-object/tree/2.5.1Referencevia CVE List
- github.com/maykinmedia/open-object/tree/3.6.2Referencevia CVE List
- github.com/maykinmedia/open-object/tree/4.0.2Referencevia CVE List
- github.com/maykinmedia/open-object/tree/4.1.1Referencevia CVE List