Repository navigation
Conversation
|
Thanks @tluangtea-lab — verified end to end and this checks out. What I verified on 007e2a0:
One non-blocking nit: the suite docstring cites failure class Since this hardens reflected-XSS surfaces across seven OAuth plugin apps, I'd like a maintainer to sign off before merge — the change looks correct and well-tested to me. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Confidence gate ~4/5: root cause clear (reflected uid XSS, same class as #13658/#14350), scoped repeated pattern across 7 apps + dedicated 269-line hermetic test suite (9 passing per PR body), registered in checks-manifest. Confirmed not already fixed on main (dropbox/main.py etc. still interpolate raw uid). No auth/credential logic touched, only URL/HTML encoding.
007e2a0 to
6829103
Compare
6829103 to
972907d
Compare
972907d to
5cc3cca
Compare
|
Keeping this open on remaining-hole uid percent-encode in remaining apps complementary vs #13659; extra production so not CLOSE. kodjima APPROVE is the size gate, not maintainer merge. I am not approving or merging this SHA. |
5cc3cca to
f1cbbc4
Compare
…n apps Seven plugin apps still reflected the client-controlled uid query parameter into URLs without encoding: HTML form actions and hrefs (dropbox, google-calendar), a hidden input value (google-calendar), and redirect targets (dropbox, hive, linear, ms365, shipbob, shopify). A uid containing a double quote breaks out of the attribute (reflected XSS on an unauthenticated page); a bare & or # corrupts the query handed to the next hop. The same hardening already landed for six apps in PR BasedHardware#13658 and for omi-twitter-app via BasedHardware#14350; this completes the sweep for the remaining apps. Each encoded value is computed once per handler (urllib.parse.quote, safe=''), and google-calendar's callback error page additionally HTML-escapes the client-controlled error parameter it renders. Verification: - python3 plugins/test_uid_reflection_remaining_apps.py -> 9 passed (hermetic: AST-driven per-app import stubbing; drives the real handlers - dropbox home connected/unconnected + disconnect, gcal root unconnected + disconnect + update-calendar + callback error page, hive/ms365/shipbob/shopify/linear disconnect or setup handlers, and linear's home template context) - registered plugin-remaining-apps-uid-reflection-tests in .github/checks-manifest.yaml (local + ci lanes) Failure-Class: new
…dates) contract find_project_by_name returns (project, candidates) since the disambiguation work, but test_create_task_success still stubbed the old single-project return, so the handler raised TypeError on the unpack and the lane has been red on main for every hive change. Repair the fixture, restore the lane to green: - python3 plugins/omi-hive-app/test_main.py -> 7 tests OK
f1cbbc4 to
dee3990
Compare
aryanorastar
left a comment
There was a problem hiding this comment.
Reviewed current head fd30f82d8d62. origin/main still interpolates raw {uid} in remaining plugin redirects (hive/dropbox/linear/shipbob/shopify). Tests pin percent-encoding. Hygiene SUCCESS. Not merging.
Fixes remaining raw
uidreflections of the same class as #14350 / #13658 in seven plugin apps (dropbox, google-calendar, hive, ms365, shipbob, shopify, linear).Percent-encode uid with quote(uid, safe='') at URL sites; html.escape on hidden-input and callback error text.
Verification
python3 plugins/test_uid_reflection_remaining_apps.py— 9 passed.plugin-remaining-apps-uid-reflection-testsin.github/checks-manifest.yaml.Failure-Class: new