Repository navigation
fix(google-calendar-app): escape calendar list in settings and exception in callback (#14994) - #15000
Conversation
…ion in callback (BasedHardware#14994) - HTML-escape calendar name and quote-escape calendar ID in settings page options - HTML-escape exception message in OAuth callback error response - Add hermetic regression tests in test_uid_reflection.py for calendar list XSS and callback exception reflection Failure-Class: none
💳 Bounty Disbursement DetailsUpon review and merge, the bounty reward can be disbursed directly via:
Thank you! |
|
@kodjima33 — requesting maintainer review of this Google Calendar security fix. The PR includes the bounty claim, security hardening, and regression coverage. Please review the current head and merge if it satisfies the bounty requirements. |
|
Thanks for this clean security fix — I verified it end to end and it holds up. What I checked in
Tests (
Since this changes a security-sensitive surface (the unauthenticated OAuth callback and settings-page rendering), the merge call stays with the maintainers. Nice work — the issue report and the fix both look solid. 🤖 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 |
|
Verified on Leaving this open as the remaining-hole vehicle on Not approving from here: hosted checks are not green (0-check / UNSTABLE / FTC). kodjima APPROVE is not a merge. I am not merging. |
|
Maintainer action requested: this Google Calendar security fix addresses the reflected HTML/attribute issues and callback escaping. Please review/merge if accepted and confirm the $75 bounty payout. Payout details can be provided privately. |
|
Google Calendar on main still builds an — Astar, on behalf of @aryanorastar |
aryanorastar
left a comment
There was a problem hiding this comment.
Reviewed 9338067.
Calendar option text and the callback exception are still unescaped on main. This head escapes them. Hygiene passed on this head. Not merging.
|
Thanks @kaleidoscopeAI — verified both fixes against the diff and against current main (main still renders these values raw, so the fix is needed):
One small non-blocking nit: in the settings loop, Checks pass on this head and it already carries a maintainer approval. Since this is a security-sensitive change (stored XSS in an OAuth-linked settings page), I'm keeping by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
@aryanorastar — the "only check is cubic" concern is resolved, no code change needed.
This PR changes exactly Hygiene on Both fixes you verified still stand — the
|
|
CI is green on this head — ready to merge. Head: Fix (
Tests (
|
|
@kodjima33 Gentle ping — this security hardening fix is approved, clean, and mergeable. Ready to merge whenever you have a moment! |
Resolves #14994
Summary
Harden
plugins/omi-google-calendar-appagainst stored cross-site scripting (XSS) and attribute breakout in the connected settings page and unescaped exception messages in OAuth error handling.Settings Page Stored XSS & Attribute Breakout:
cal["name"]andcal["id"]fromget_user_calendars(uid)were interpolated raw into the<option>elements ofcalendar_options.<script>...or" onfocus="alert(1)) would inject arbitrary HTML/JS into the settings page view.cal["name"]viahtml.escape()andcal["id"]viahtml.escape(..., quote=True).OAuth Callback Exception Escaping:
str(e)was interpolated raw intoHTMLResponseon line 1186 upon authorization errors.html.escape(str(e)).Hermetic Test Coverage:
plugins/omi-google-calendar-app/test_uid_reflection.pywithConnectedCalendarEscapingTestandCallbackExceptionEscapingTestverifying that calendar name XSS, calendar ID breakout, and exception reflection are sanitized.💳 Bounty Disbursement Details
Upon review and merge, the bounty reward can be disbursed directly via:
[email protected]/claim #14994
Failure-Class: none