# Cross-tenant object binding without ownership check

Dedupe, attach or re-attach paths binding objects across tenants without verifying content hash or owner

_Area: Web access control and IDOR. Seen in 3 disclosed reports; latest 2026-06-23. Updated 2026-11-14._

## How it works

A system stores objects globally (content-addressed by hash, or by a stable identifier like a tenant UUID, installation_id, or attachment reference_ID) but authorizes access per tenant. The per-tenant binding — the row or record that says "this object belongs to this repo/account/report" — is created by a code path that trusts the identifier the caller supplies. If that path skips verifying the caller actually owns the object (or that the bytes match the claimed hash), anyone who knows or guesses the identifier can create a binding to someone else's data. The assumption that breaks: that a valid identifier implies ownership.

## Where it shows up

- Content-addressed storage (LFS, blob stores) where dedupe/short-circuit branches return success before hashing the request body against the claimed OID [E1](https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md)
- Binding-insert code that runs unconditionally after upload, with no check that the OID belongs to the requesting tenant [E1](https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md)
- Integration onboarding that accepts a tenant UUID, domain, or installation_id without confirming it belongs to the requesting user [E2](https://bugbountylibrary.com/r/h1%3A2086301.md)
- Re-attach/re-add flows for previously deleted integrations, where orphaned identifiers persist [E2](https://bugbountylibrary.com/r/h1%3A2086301.md)
- Draft/autosave endpoints that move or delete objects referenced by ID from another context [E3](https://bugbountylibrary.com/r/h1%3A123615.md)

## How to review

Find every path that creates or moves a per-tenant binding. The invariant: before a binding is written, the system must prove the caller owns the object — by hashing supplied bytes against the claimed OID [E1](https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md), by validating the tenant/installation identifier against the authenticated user [E2](https://bugbountylibrary.com/r/h1%3A2086301.md), or by checking the referenced object's context matches the current report [E3](https://bugbountylibrary.com/r/h1%3A123615.md). Trace dedupe and early-return branches specifically: a success return that skips the integrity check is the bug [E1](https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md). Check whether bindings survive access revocation — a persisted row keeps the object readable after write access is removed [E1](https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md).

## How finders spotted it

- Read the storage layer and noticed content is addressed globally by OID while authorization is per-repo; saw the dedupe branch return before the hash check and the binding insert run unconditionally [E1](https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md)
- Noted the CASB backend lacked validation on integration identifiers, then hypothesized deleted integrations could be re-claimed by enumerating tenant ids [E2](https://bugbountylibrary.com/r/h1%3A2086301.md)
- Noticed inline image reference_IDs are bound to a report context, then tested reusing an ID from a different report via draft_sync [E3](https://bugbountylibrary.com/r/h1%3A123615.md)

## Variants seen

- Hash-skip dedupe binding a foreign OID into the attacker's repo [E1](https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md)
- Re-attaching a deleted integration by its orphaned tenant/installation identifier (confused deputy) [E2](https://bugbountylibrary.com/r/h1%3A2086301.md)
- Cross-context reference via draft_sync moving/deleting another report's attachment [E3](https://bugbountylibrary.com/r/h1%3A123615.md)

## Impact and severity

Persistent cross-tenant read of private data, repeatable for any OID on the instance and surviving access removal [E1](https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md). Re-binding a victim's integration exposed their CASB findings [E2](https://bugbountylibrary.com/r/h1%3A2086301.md). Cross-report reference deleted another user's attachment [E3](https://bugbountylibrary.com/r/h1%3A123615.md). Severity rises with persistence and reach: a binding that outlives the triggering access, or an identifier that is enumerable, scales the impact.

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **gogs.io/gogs (go)** < 0.14.3, fixed in 0.14.3: Gogs: LFS dedupe path leaks private repo content across tenants (CVE-2026-52812). Report: https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md. Fix: https://github.com/gogs/gogs/commit/f35a767af74e05342bafc6fdda02c791816426f8

## Evidence
- E1: https://bugbountylibrary.com/r/ghsa%3AGHSA-6p9m-q3jp-47h4.md
- E2: https://bugbountylibrary.com/r/h1%3A2086301.md
- E3: https://bugbountylibrary.com/r/h1%3A123615.md
