Skip to content

[Bounty $200] iq-rating routes scrape + expose any uid's memories/conversations with no auth #14430

Open

Description

@hridaya423

Bug

The iq_rating router (mounted in plugins/main.py) trusts a client-supplied uid on every data-plane route, with no authentication:

  • GET /iq-rating/iq/preload?uid= and GET /iq-rating/iq/refresh?uid= — unauthenticated callers trigger load_and_process_user_data(uid), which pages through all memories and conversations for any uid using the server-side OMI_APP_SECRET, then runs them through the name-extraction pipeline into the plugin DB.
  • GET /iq-rating/iq?uid= and GET /iq-rating/iq/api?uid= — serve the extracted names/IQ data (derived from private conversations) to anyone.
  • POST /iq/hide, /iq/unhide, /iq/adjust — mutate any uid's stored data.

So one GET request converts a bare uid into a full memory+conversation scrape, and the derived data is then publicly readable.

Secondary: const uid = '{uid}' in the rendered page is a reflected-XSS sink.

Proposed fix (ready in linked PR)

plugins/iq_rating/iq_auth.py — IQ_RATING_SECRET env secret, Authorization: Bearer or iq_rating_token query param, hmac.compare_digest, fail-closed 503 when unconfigured — same pattern as the merged mentor fix (#13665). Wired onto all six uid-keyed routes; uid-less /iq landing state and /iq/setup-status stay public. The page JS gets the uid via json.dumps and the token is threaded into the hide/adjust fetches so authenticated page actions keep working.

Residual: the /iq HTML page is a browser surface — legitimate webview opens need iq_rating_token appended (documented deployment step, same shape as the mentor fix).

Bounty: $200 — an unauthenticated full-conversation-scrape primitive with public read-back, matching the merged mentor-session auth precedent.

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 17, 2026
  2. moved this from In progress to Someday in omi TODO / bountieson Sep 17, 2026
  3. hridaya423 commented on Sep 17, 2026

    @hridaya423
    ContributorAuthor

    Fix ready in #14431 — iq_auth.py gate on all six uid-keyed routes (fail-closed IQ_RATING_SECRET, same pattern as the mentor fix), plus the embedded-uid XSS sink and token threading for page actions. 11 new auth-boundary tests pass.

  4. hridaya423 commented on Sep 17, 2026

    @hridaya423
    ContributorAuthor

    @josancamon19 @kodjima33 — fix is up and verified; if this qualifies under the paid-bounty program I would be glad to take it on.

  5. monopolymummat-cmyk commented on Oct 3, 2026

    @monopolymummat-cmyk

    Hi — I've opened #20506 (#20506).

    Disclosed: authored with AI assistance (Z.ai).

  6. added
    intelligence
    p3
    p2
    retrieval-action
    and removed
    p3
    intelligence
    on Oct 6, 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