Repository navigation
fix(dropbox-app): escape callback error and quote uid across OAuth endpoints - #14893
kaleidoscopeAI wants to merge 1 commit into
Conversation
|
Verified against head 9b49f0b - this cleanly fixes the reflected XSS and uid injection reported in #14892. Per file: plugins/omi-dropbox-app/main.py
plugins/omi-dropbox-app/test_settings_page_encoding.py
.github/checks-manifest.yaml
Reproduced in an isolated environment (no network, no secrets): new encoding suite 6 passed; Thanks for the clean security fix and the solid regression tests. Since this hardens an auth flow, merge will need maintainer sign-off. 🤖 Automated review on behalf of the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
9b49f0b to
bf81b85
Compare
💳 Bounty Disbursement DetailsUpon review and merge, the bounty reward can be disbursed directly via:
Thank you! |
|
Hi @kodjima33 — flagging this one as merge-ready. @Git-on-my-level verified the fix end-to-end against head |
|
@kodjima33 — requesting maintainer review of this completed Dropbox security fix. The security sinks and regression coverage have been verified in the PR thread. Please review and merge if the current head satisfies the bounty requirements. |
|
Closing as overlapping with #15022 for the same Dropbox OAuth HTML/uid encoding class (#14892). Both PRs change |
|
Hey @kaleidoscopeAI 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Resolves #14892
Summary
Hardens
plugins/omi-dropbox-app/main.pyagainst reflected cross-site scripting (XSS) and parameter injection:HTML Escaping:
erroranderror_descriptionin OAuth callback (safe_msg = html.escape(str(error_description or error))).response.textin token exchange failure response (safe_text = html.escape(response.text)).safe_err = html.escape(str(e))).display_name,email, andfolder_nameattribute value inget_home_page_html.URL Encoding & Attribute Escaping:
uidviaquote(uid, safe='')in connect link (safe_auth_url), disconnect link (safe_disconnect_url), and form action (safe_settings_action).uidin all redirect responses (RedirectResponse(url=f"/?uid={quote(uid, safe='')}")).Query Parameter Guards:
Queryobject defaults when handlers are called directly in tests.Hermetic Regression Test Suite:
plugins/omi-dropbox-app/test_settings_page_encoding.pycovering connect URL quoting, user info escaping, attribute breakout prevention, reflected callback error escaping, token exchange error escaping, exception message escaping, and redirect quoting (6 tests).dropbox-app-settings-encoding-testsanddropbox-app-client-testsin.github/checks-manifest.yaml.Verification
/claim #14892
Failure-Class: none