Repository navigation
Conversation
…allback HTML google_callback() interpolated the `error` query param and the `uid` parsed out of `state` directly into HTML with no escaping. `error` is reflected before any consent screen or stored-state check exists, so ?error=<script>...</script> against /auth/google/callback was a zero-interaction reflected XSS. `uid` survives a real OAuth round trip (a victim who approves consent completes it for an attacker-chosen uid) and lands unescaped inside an href attribute on the success page. Both are now passed through html.escape() before interpolation. Failure-Class: none
kodjima33
left a comment
There was a problem hiding this comment.
Verified line-by-line: real reflected XSS on the Google Calendar OAuth callback (error param before state verification, uid after) confirmed on main; fix is a precise html.escape() on exactly those two sinks with clear inline comments on the attack path, no auth/token logic touched. 5/5 confidence, CI fully green, regression test added. Author has 3 prior merged PRs.
kodjima33
left a comment
There was a problem hiding this comment.
5/5 confirmed real reflected-XSS fix, still DIRTY -- approve-only.
aryanorastar
left a comment
There was a problem hiding this comment.
Verified on 5de2c389f6dd.
plugins/omi-google-calendar-app/main.py still renders html.escape(error) without quote=True on the OAuth callback page, and Authentication error: {str(e)} is still raw HTML. Tool paths also interpolate str(e).
quote=True is required on attribute/HTML sinks. Add a test that a " / <script> error value cannot break out. Head is CONFLICTING. I am not merging.
|
Closing because this is already on main (Google Calendar OAuth error escaping). The keep is #14581. This head does not add a unique production file. |
|
Hey @Abhist17 👋 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! |
Escapes two interpolated values (the
errorquery param anduidparsed from OAuthstate) in the Google Calendar OAuth callback's HTML response, closing a reflected-XSS gap. Adds a regression test. Full vulnerability details reported privately per SECURITY.md rather than in this PR description.Fixes #14434
Failure-Class: none