An insecure direct object reference (IDOR) occurs in the `DocumentViewSet` download and copy endpoints. This allows authenticated users with Knowledge Sources permissions in one organization to access documents belonging to other organizations. By enumerating sequential document IDs, an attacker can download or copy foreign documents or insert documents into another organization's collection.