Description
DocsGPT through 0.20.0 posts OAuth connector session tokens to a wildcard target origin in the callback-status endpoint without validating sender origin. Attackers can obtain session tokens and provider account emails by acting as window.opener during OAuth authorization, then use tokens to disconnect victims' cloud storage connectors.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| arc53 | DocsGPT | ≤ 0.20.0 | — |
References
- GitHub Issue #2766 issue-tracking
- https://github.com/arc53/DocsGPT product
- https://github.com/arc53/DocsGPT/blob/c36b0af17037449f34449efa97da82becfc9492d/docsgpt/api/connector/routes.py#L515-L527 technical-description
- https://github.com/arc53/DocsGPT/blob/c36b0af17037449f34449efa97da82becfc9492d/frontend/src/components/ConnectorAuth.tsx#L57-L80 technical-description
- https://github.com/arc53/DocsGPT/blob/c36b0af17037449f34449efa97da82becfc9492d/docsgpt/api/connector/routes.py#L344-L366 technical-description
- VulnCheck Advisory: DocsGPT through 0.20.0 OAuth Token Disclosure via Wildcard postMessage third-party-advisory