- New
- Official Post
Hi,
Warning: if you are still using passQueryParameters:true in the html file, it is highly recommended to either change it to passQueryParameters:false or to update to the latest krpano versions!
This feature was originally be added in the Flashplayer times (as a replacement for SWFaddress) to allow 'deep linking' (e.g. generating URLs that link to specific scenes and views), but it didn't restrict or filter the values that were passed and therefore could also be abused for Cross-site-scripting (XSS).
The passQueryParameters setting was always disabled by default in the viewer itself, but in the default build templates was it enabled.
To avoid potential cross-site-scripting, in krpano 1.20.10 (build 2021-09-26) the default templates and the vtourskin.xml were updated to support using a custom and safe list of parameters. This way any cross-site-scripting was blocked and deep-linking still be possible.
From there on, with the changed default templates, the new built tours were secure, but support for passQueryParameters:true was still kept for compatibility with older projects (and for Panotour Pro), since to keep deep-linking support also the xml files would had to be updated (how depends how the deep-linking was used in detail).
Unfortunately there are still many old panos and tours out there (sometimes also newer ones) where passQueryParameters:true is still enabled. Therefore please check in your tours the html file for this setting and change it to false. The only possible downside would be loosing the deep-linking support, which normally shouldn't be critical.
And to avoid this problem at all in future, there are new krpano releases:
krpano 1.22.4 (build 2025-02-28) and
krpano 1.20.12 (build 2025-02-28) for compatibility and older-license cases.
In these both versions the support for passQueryParameters:true have been removed and the use of the allowed parameters be secured.
That means please either check and change the setting or update to the latest versions!
Sorry for this inconvenience and best regards,
Klaus