Files
zoneminder/web/includes
Nic BoetandClaude Opus 5.5 82ce0be4bd fix: restrict <base> to the same origin in the web CSP
The policy allows any script that carries the page nonce, wherever it is
loaded from, and the skin's nonced scripts use relative srcs. Markup
injected into a page before them (an unescaped request value) could add
<base href> pointing at another host, and the browser then loaded and
ran that host's script with the nonce.

Add base-uri 'self'. ZoneMinder doesn't use <base>; jQuery's parseHTML
sets one to the page's own URL in a detached document, which 'self'
still allows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:01:19 -04:00
..
2026-10-31 19:06:37 -04:00