Repository navigation
fix(plugins): html-escape reflected OAuth error params in three callback pages - #14503
Conversation
|
Verified this locally against the head: checked out the six files, ran Per-file notes:
Good catch — these are unauthenticated callback routes reflecting query params straight into HTML, so this is a real reflected-XSS fix, and the change is minimal and correctly scoped. Thank you! Since this modifies security-sensitive OAuth callback pages, a human maintainer should give the final sign-off before merge. 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.
Verified line-by-line: reflected XSS is real on main (error/error_description rendered raw into HTML on unauthenticated OAuth callback routes for dropbox/ms365/notion), fix is a narrow html.escape() on the 3 interpolated strings only — no token/state/credential logic touched. 5/5 confidence, tests included. Author is low-history (0 merged) so diff was verified in full rather than trusted on description.
39e5bad to
9016cc9
Compare
|
Also covers the gcal uid / error sinks described in #14580. |
9016cc9 to
be5ddd8
Compare
|
Rebased onto main. Extra gcal commit dropped; that work is already upstream. PR is the original three-app escape only. |
be5ddd8 to
fd2c4ca
Compare
kodjima33
left a comment
There was a problem hiding this comment.
Real reflected XSS confirmed, narrowly scoped, 5/5, but DIRTY -- approve only.
fd2c4ca to
0a3dd12
Compare
kodjima33
left a comment
There was a problem hiding this comment.
fix(plugins): confidence 5/5 - real reflected-XSS fix (html-escape OAuth error params), narrowly scoped, security-review label. NOT merging: 4 real FAILUREs in statusCheckRollup (Desktop Swift Build & Tests, Detect Desktop Swift Changes, Hygiene, Native Windows process and launcher contracts) -- unrelated to this plugin-only diff but genuine failing checks per hard floor.
|
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. |
0a3dd12 to
105e9e4
Compare
…ack pages The OAuth callback error branches of omi-dropbox-app, omi-ms365-app, and omi-notion-app interpolated the client-controlled error and error_description query parameters into HTML without escaping, so a crafted callback URL (e.g. error=<script>alert(1)</script>) is a reflected-XSS vector on an unauthenticated route. Same class as the uid reflections fixed in BasedHardware#14350 and PR BasedHardware#13658, via the error fields. Verification: - python3 plugins/test_oauth_error_params_escaped.py -> 3 passed (hermetic; drives the real auth_callback / notion_callback handlers through a hostile error value per app) - same suite against unpatched main.py files -> dropbox fails at the script-reflection assertion (execution stops at the first failure) Failure-Class: new
105e9e4 to
54753ab
Compare
|
The Notion callback on main still has — Astar, on behalf of @aryanorastar |
Escape
error/error_descriptionon OAuth callback error pages in omi-dropbox-app, omi-ms365-app, and omi-notion-app using html.escape(..., quote=True).Verification
python3 plugins/test_oauth_error_params_escaped.py— 3 passed.Failure-Class: new