You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bounty proposal] security(shipbob-app): script-context breakout in uid and unescaped auth error reflection (5 proposed) #15014
uid: '{{ uid }}' interpolates uid directly inside a JavaScript string literal in an inline <script>.
Single quotes in uid break out into JavaScript execution syntax: ' + alert(1) + '.
</script> in uid terminates the script element in the HTML parser, allowing closing script tags and arbitrary injected HTML/scripts to execute (</script><script>alert(document.domain)</script>).
Attribute Breakout in Disconnect and Auth Links:
Lines 398 and 458 in setup.html:
uid is interpolated raw without URL encoding (quote(uid, safe='')), leading to attribute breakout or query parameter corruption.
Unescaped Upstream Response Text in Callback:
In plugins/omi-shipbob-app/main.py line 545:
"error": f"Failed to exchange authorization code: {response.text}",
Upstream error response text is reflected directly into the template error container.
Proposed Fix
In plugins/omi-shipbob-app/main.py, serialize uid using json.dumps(str(uid)).replace("</", "<\\/") and pass safe_uid_json to setup.html to be rendered safely as uid: {{ safe_uid_json|safe }} without quotes.
In plugins/omi-shipbob-app/main.py, canonicalize clean_uid with validation/sanitization and URL-encode safe_uid_param = quote(uid, safe='') for href links.
Escape response.text in callback failure handling via html.escape(response.text).
Add unit test suite in plugins/omi-shipbob-app/test_shipbob_security.py verifying script-context breakout prevention, quote breakout prevention, and attribute escaping.
Register shipbob-app-security-tests in .github/checks-manifest.yaml.
Proposed Bounty
$75 proposed (consistent with security hardening bounties #14876, #14886, #14888, #14994, #15004, and #15011). PR with full test suite is ready to submit.
Activity
kaleidoscopeAI commentedon Sep 19, 2026
/claim #15014
Fixed and verified in PR #15015.
Payment details:
[email protected]undivisible commentedon Oct 22, 2026
Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏