Before reporting an issue
Area
login/ui
Describe the bug
Sometimes, in the freemarker templates files (.ftl), we don't use escaping for the JS code, which might lead to JS injection in some places. In the frontchannel-logout.ftl, we should handle the critical logout redirect uri.
We should use the freemarker's outputformat functionality.
Version
main
Regression
Expected behavior
The JS code escaping should be used in the templates
Actual behavior
The JS code escaping is NOT used in the templates
How to Reproduce?
Put some JS script into your .ftl file:
<script>
function readystatechange(event) {
if (document.readyState=='complete') {
window.location.replace('${myVar}');
}
}
document.addEventListener('readystatechange', readystatechange);
</script>
Anything else?
No response
Before reporting an issue
Area
login/ui
Describe the bug
Sometimes, in the freemarker templates files (
.ftl), we don't use escaping for the JS code, which might lead to JS injection in some places. In thefrontchannel-logout.ftl, we should handle the critical logout redirect uri.We should use the freemarker's
outputformatfunctionality.Version
main
Regression
Expected behavior
The JS code escaping should be used in the templates
Actual behavior
The JS code escaping is NOT used in the templates
How to Reproduce?
Put some JS script into your .ftl file:
Anything else?
No response