Skip to content

[Bounty proposal] security(plugins): parameter injection and unencoded URLs across setup pages and redirects in linear, hive, and shopify (5 proposed) #15018

Closed as not planned

Description

@kaleidoscopeAI

Summary

Multiple plugin apps (omi-linear-app, omi-hive-app, and omi-shopify-app) carry query parameter and URL injection vulnerabilities across setup templates, redirect responses, and client-side inline fetch calls:

  1. plugins/omi-linear-app:

    • main.py lines 445, 519, 540: oauth_url built as f"/auth/linear?uid={uid}" and post-auth / disconnect redirects returned as RedirectResponse(url=f"/?uid={uid}") without URL-encoding.
    • templates/setup.html lines 502, 505: <a href="/auth/linear?uid={{ uid }}"> and <a href="/disconnect?uid={{ uid }}"> rendered raw uid into query parameters.
    • templates/setup.html lines 650-651: setDefaultTeam() inline <script> read uid from URLSearchParams and interpolated it into fetch(/settings/default-team?uid=${uid}&team_id=${teamId}...) without encodeURIComponent on uid or teamId.
  2. plugins/omi-hive-app:

    • main.py lines 569, 582, 603: three RedirectResponse(url=f"/?uid={uid}..." sites (including API-key errors, auth completion, and disconnect) interpolated raw uid into query strings.
    • templates/setup.html lines 486, 541: <a href="/disconnect?uid={{ uid }}"> and <form action="/settings/api-key?uid={{ uid }}"> rendered raw uid into query parameters.
    • templates/setup.html lines 617-618: setDefaultProject() inline <script> read uid from URLSearchParams and interpolated it into fetch(/settings/default-project?uid=${uid}&project_id=${projectId}...) without encodeURIComponent on uid or projectId.
  3. plugins/omi-shopify-app:

    • main.py lines 454, 468: post-auth and disconnect RedirectResponse(url=f"/?uid={uid}") interpolated raw uid.
    • templates/setup.html line 456: <a href="/disconnect?uid={{ uid }}"> rendered raw uid.
    • templates/setup.html line 593: connectStore() inline <script> interpolated window.location.href = /auth/shopify?uid=${uid}&shop=${shopDomain}`` without encodeURIComponent.

A uid, teamId, projectId, or shopDomain containing quotes, &, or # corrupts query parameters, breaks attributes, or enables redirection/parameter tampering.

Fix

  1. In all three plugin main.py files (home endpoints), compute uid_q = urllib.parse.quote(uid, safe="") if uid else "" and provide uid_q to template contexts.
  2. In all redirects (RedirectResponse(url=f"/?uid={safe_uid}...")), quote uid with urllib.parse.quote(uid, safe="").
  3. In templates, use {{ uid_q|default(uid) }} for all query parameter href targets and form actions.
  4. In all inline <script> blocks, wrap dynamic query values with encodeURIComponent().
  5. Add hermetic test suite plugins/test_plugins_setup_url_hardening.py covering all 12 behaviors and register plugins-setup-url-hardening-tests in .github/checks-manifest.yaml.

Proposed Bounty

Proposing US$75 for this 3-app security hardening package and hermetic regression test suite. cc @kodjima33 @Git-on-my-level

Activity

  1. kaleidoscopeAI commented on Sep 19, 2026

    @kaleidoscopeAI
    ContributorAuthor

    /claim #15018

    Fix and hermetic test suite submitted in PR #15019.

    💳 Bounty Disbursement Details

    Upon review and merge, the bounty reward can be disbursed directly via:

  2. moved this from Someday to In progress in omi TODO / bountieson Sep 19, 2026
  3. added
    intelligence
    p2
    retrieval-action
    and removed
    intelligence
    on Oct 6, 2026
  4. undivisible commented on Oct 22, 2026

    @undivisible
    Collaborator

    Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏

  5. moved this from In progress to In review in omi TODO / bountieson Oct 22, 2026
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

    p2retrieval-action

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions