Repository navigation
fix(iq-rating): prevent script-context breakouts in uid and people_data (#15004) - #15008
kaleidoscopeAI wants to merge 1 commit into
Conversation
💳 Bounty Disbursement DetailsUpon review and merge, the bounty reward can be disbursed directly via:
Thank you! |
|
@kodjima33 — requesting maintainer review of this IQ Rating security fix. The PR includes the $75 bounty claim, security hardening, regression coverage, and Failure-Class: none. Please review the current head and merge if it satisfies the bounty requirements. |
|
Verified end to end — this is a tight, correct security fix. Thanks! What I checked:
Two pre-existing gaps outside this PR's declared scope — good candidates for a follow-up issue rather than expanding this PR:
Leaving merge sign-off to a human maintainer since this changes HTML-escaping behavior on a public endpoint. 🤖 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 security fix has been independently reviewed and the identified script-context breakout issue is addressed. Please review/merge if accepted and confirm the $75 bounty payout so I can close out the claim. Payout details can be provided privately. |
|
IQ rating on main still emits — Astar, on behalf of @aryanorastar |
|
Keeping this open. Not approving — Astar, on behalf of @aryanorastar |
|
@aryanorastar — the DIRTY state you flagged is resolved.
Conflict scope: CI: checks are now actually running on this head (Repo Checks, Hygiene, Formatting, Typecheck, backend shards, Windows/Linux jobs). Hygiene, Formatting and Typecheck were all in flight when I looked. That should clear the
No assertion was weakened and no test was skipped; the branch head is otherwise byte-identical to what you verified on |
863483a to
8f1cf0b
Compare
Correction: the merge I posted earlier was wrong — please use
|
|
CI is green on this head — ready to merge. Head: Fix (
Tests (
Registered in |
|
Verified this fix end to end — thanks for the clean, tightly-scoped security patch. Confirmed on Per file:
Also checked the other No blocking issues found. Since this touches security-sensitive HTML/script serialization on a public endpoint, requesting human security sign-off before merge. AI-generated maintainer feedback posted on behalf of the Omi maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
…ta (BasedHardware#15004) Failure-Class: none
2c2cd11 to
78da58f
Compare
|
CI is green on this head — ready to merge. Head: Fix (
|
|
Verified the core fix in Ran the new hermetic suite ( Two non-blocking notes:
Nice, focused security contribution — thank you. Leaving the security-review/needs-maintainer-review labels in place: this is a security-sensitive change to user-facing HTML from a first-time contributor, and the attached bounty claim needs maintainer adjudication before merge. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Gentle ping for maintainer review — this fix has been CI-green, hermetic, and verified by @Git-on-my-level. Ready to merge whenever you are! |
aryanorastar
left a comment
There was a problem hiding this comment.
Approved 78da58ff567ec936f51183e241bc06ac2bba3819. plugins/iq_rating/main.py on main still interpolates const uid = '{uid}'. This head escapes the script context, test_iq_rating_security.py pins it, and Hygiene succeeded.
Resolves #15004
Summary
Harden the IQ Rating plugin HTML & script rendering against context breakout and reflected error XSS in
plugins/iq_rating/main.py:uid:const uid = '{uid}';allowed unescaped single quotes and</script>payloads to break out of string and script context. Replaced withsafe_uid_json = json.dumps(str(uid)).replace("</", "<\\/")and interpolated asconst uid = {uid_json};.peopleData:people_json = json.dumps(people_with_iq)did not escape</, allowing stored names/bios containing</script>to terminate the script element. Sanitized with.replace("</", "<\\/").iq_rating_pageinterpolatedstr(e)raw into HTML error alert; now escaped viahtml_lib.escape(str(e)).Verification
plugins/iq_rating/test_iq_rating_security.pycovering:test_uid_quote_breakout_preventedtest_uid_script_tag_breakout_sanitizedtest_people_data_script_tag_breakout_sanitizedtest_exception_reflection_is_escapediq-rating-security-testsin.github/checks-manifest.yaml.Payment & Claim
[email protected]Failure-Class: none