mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 02:24:09 +01:00
A broker's launch, join and desktop replies name the URL the browser loads in an iframe, and urljoin keeps an absolute (or `javascript:`) URL verbatim, so a container that answered with one could run script in RomM's origin instead of its own. The three sites now share one resolver that drops a room URL leaving the configured host, the stage refuses a source that is not http(s), and the frame is sandboxed without allow-top-navigation so a container page cannot steer the tab it sits in. Also drop the shared secret from the config entry a resolution warning prints, which named the misconfigured container by dumping it whole. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>