caterium-app/public
pavlov346346-source eab678adbe
Some checks failed
Caterium QA / qa (push) Has been cancelled
fix: harden inline handlers against id injection, fix stale version label
Inline handlers built as onclick="fn('${esc(id)}')" were injectable:
esc() turns ' into ', which the browser decodes back to ' before
the JS runs, so an id like x');alert(1);// broke out of the string.
Ids can come from a restored backup file or a synced catalog. Add
SunSafe.jsArg (JSON.stringify + HTML escape) and use it in all 23
handlers in app-runtime.js and index.html. Verified in a browser: a
payload id is passed through as a plain string and nothing executes.

Also replace the Settings version label that still showed
v17.6.0 · 2026.09.07, and bump the cache-busting version of the two
changed scripts (sun-safe.js, app-runtime.js).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 12:28:35 +03:00
..
api Preserve JSON content negotiation through both proxy routes 2026-09-18 19:25:00 +03:00
catalog Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
core fix: harden inline handlers against id injection, fix stale version label 2026-09-20 12:28:35 +03:00
demo Fill empty trial tabs with premium, drinks, tableware, extras and delivery 2026-09-18 08:26:21 +03:00
fonts Restore distinct proposal designs and improve PDF typography and pagination 2026-09-18 04:05:36 +03:00
help Remove device PIN and fit calendar to mobile screens 2026-09-18 20:43:09 +03:00
legacy Optional per-profile training catalog with reversible example visibility (#35) 2026-09-20 12:18:40 +03:00
offer-gallery Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
offer-templates Refine six client proposal layouts and transparent company logos 2026-09-18 19:55:04 +03:00
vendor Route cloud access through Caterium and vendor login SDK 2026-09-18 19:07:47 +03:00
.htaccess Cache optimized trial photos for legacy URLs in the installed app 2026-09-18 04:59:16 +03:00
app-runtime.js fix: harden inline handlers against id injection, fix stale version label 2026-09-20 12:28:35 +03:00
caterium-login-logo.png Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
caterium-mark-light.svg feat: add approved Caterium mark for light login 2026-09-12 05:56:39 +03:00
index.html fix: harden inline handlers against id injection, fix stale version label 2026-09-20 12:28:35 +03:00
manifest.webmanifest brand: update PWA identity to Caterium 2026-09-11 10:03:25 +03:00
pwa-icon-192.png Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
pwa-icon-512.png Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
refresh-login-20260912.html fix: add one-click PWA cache refresh for login 2026-09-12 08:27:31 +03:00
service-worker.js Optional per-profile training catalog with reversible example visibility (#35) 2026-09-20 12:18:40 +03:00
sun-logo.png Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00