Summary
Okou API OAuth flows for Microsoft Teams, legacy Slack, and GitHub Apps trust caller-supplied user and organization identifiers without adequately verifying the caller's authority over them. An unauthenticated attacker who knows a member's identifiers may be able to link their own external account or installation to that member's Okou identity and organization.
Affected context
The issue affects Okou API integrations that use the Microsoft Teams, legacy Slack, or GitHub App OAuth flows and accept caller-supplied userId and orgId values without verifying the caller's authority to bind those identities. Risk depends on whether the relevant OAuth flow is reachable and whether an attacker can obtain a member's identifiers.
Exploit preconditions
- Attack surface: The affected Okou API OAuth integration flows
- Required access: No authenticated Okou account is required; the attacker must know a member's identifiers
- Trigger point: Completion of an OAuth flow for Microsoft Teams, legacy Slack, or a GitHub App installation
- Why exploitation is possible: The flow trusts caller-supplied user and organization identifiers without sufficient authentication or authorization checks
Why this happens
The OAuth flows accept identity and organization references supplied by the caller without confirming that the caller is authenticated and authorized to bind them. This is a missing authentication control, mapping to CWE-306: Missing Authentication for Critical Function. The insecure pattern is allowing a sensitive account-linking operation to proceed based on identifiers alone.
Potential impact
- An attacker may bind their external account or app installation to a victim's Okou identity
- An attacker could associate an integration with an organization without authorization
- Victims may lose control over expected integration behavior or receive misleading activity
- The incident may expose connected workflows or data, depending on integration permissions
General mitigation guidance
Mitigation generally centers on authenticating and authorizing the person initiating each identity-linking or installation operation.
Common defensive patterns include:
- Deriving user and organization identities from a trusted authenticated session rather than accepting them as authoritative caller input
- Verifying authorization and ownership at the point of binding
- Using short-lived, integrity-protected OAuth state tied to the initiating user and organization
- Requiring confirmation for sensitive account or installation links
- Applying least-privilege permissions to connected integrations and auditing binding changes
How teams detect issues like this
High-level detection approaches include:
- Reviewing OAuth callbacks and account-linking handlers for reliance on caller-supplied identity or organization identifiers
- Using static analysis or code review checks to flag sensitive operations lacking authentication and authorization guards
- Enforcing policies that require OAuth state validation and trusted-session identity checks
- Monitoring for unexpected integration bindings, especially changes involving accounts or organizations with no corresponding authenticated initiation
Automated code review tools may help identify flows where identity values are accepted without an authorization check.

