You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bounty proposal] security(plugins): parameter injection and unencoded URLs across setup pages and redirects in linear, hive, and shopify (5 proposed) #15018
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:
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.
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.
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
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.
In all redirects (RedirectResponse(url=f"/?uid={safe_uid}...")), quote uid with urllib.parse.quote(uid, safe="").
In templates, use {{ uid_q|default(uid) }} for all query parameter href targets and form actions.
In all inline <script> blocks, wrap dynamic query values with encodeURIComponent().
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
kaleidoscopeAI commentedon Sep 19, 2026
/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:
[email protected]undivisible commentedon Oct 22, 2026
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! 🙏