An authorization bypass exists in the DBViewer due to flawed sub-pipeline detection within the aggregation stage sanitizer. The '/o/db' aggregation endpoint parses user-controlled aggregation JSON and utilizes a sanitizer to identify nested arrays as sub-pipelines by verifying if every element contains a key from a hardcoded `KNOWN STAGE OPERATORS` set. If an element contains an unrecognized stage key, such as the MongoDB-internal `$ internalInhibitOptimization`, the sanitizer misclassifies the branch as a generic array and fails to strip sibling stages. This allows non-admin users with DBViewer read permissions to inject forbidden operators, such as `$lookup`, inside `$facet` sub-pipelines to perform cross-collection joins into restricted collections. This can result in unauthorized access to sensitive data, including password-reset tokens (`prid`), potentially leading to account takeover.