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 $200] iq-rating routes scrape + expose any uid's memories/conversations with no auth #14430
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.
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.
Activity
hridaya423 commentedon Sep 17, 2026
Fix ready in #14431 —
iq_auth.pygate on all six uid-keyed routes (fail-closedIQ_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.hridaya423 commentedon Sep 17, 2026
@josancamon19 @kodjima33 — fix is up and verified; if this qualifies under the paid-bounty program I would be glad to take it on.
monopolymummat-cmyk commentedon Oct 3, 2026
Hi — I've opened #20506 (#20506).
Disclosed: authored with AI assistance (Z.ai).
fix(plugins): require auth on iq-rating routes and render valid non-e…
fix(plugins): update test_main call sites, handle non-ascii tokens wi…
fix(plugins): add content and status_code to HTMLResponse and JSONRes…