horizon/horizon/templates/horizon
CristianFiorentino 1b0106e280 Introduces escaping in Horizon/Orchestration
1) Escape help_text a second time to avoid bootstrap tooltip XSS issue

The "Description" parameter in a Heat template is used to populate
a help_text tooltip in the dynamically generated Heat form. Bootstrap
inserts this tooltip into the DOM using .html() which undoes any
escaping we do in Django (it should be using .text()).

This was fixed by forcing the help_text content to be escaped a second
time. The issue itself is mitigated in bootstrap.js release 2.0.3
(ours is currently 2.0.1).

2) Properly escape untrusted Heat template 'outputs'

The 'outputs' parameter in a Heat template was included in a Django
template with HTML autoescaping turned off. Malicious HTML content
could be included in a Heat template and would be rendered by Horizon
when details about a created stack were displayed.

This was fixed by not disabling autoescaping and explicitly escaping
untrusted values in any strings that are later marked "safe" to render
without further escaping.

Change-Id: Icd9f9d9ca77068b12227d77469773a325c840001
Closes-Bug: #1289033
Co-Authored-By: Kieran Spear <kispear@gmail.com>
2014-04-09 00:04:39 +09:00
..
client_side Translating entity types in client side templates 2014-02-10 13:56:31 -03:00
common Introduces escaping in Horizon/Orchestration 2014-04-09 00:04:39 +09:00
jasmine Add jasmine testing and helpers 2014-02-17 15:05:23 +01:00
_accordion_nav.html Implementing accordion navigation 2014-02-26 14:03:36 -07:00
_conf.html Use unminified javascript files 2014-03-04 15:49:52 +08:00
_custom_head_js.html Adds meta and head-js partials to head in base.html 2014-02-06 10:01:55 -06:00
_custom_meta.html Adds meta and head-js partials to head in base.html 2014-02-06 10:01:55 -06:00
_messages.html Added AJAX updating error handling. 2012-03-18 19:32:46 -07:00
_nav_list.html Volume Progress Bar & Fixes For Quota 2012-06-27 16:06:06 -07:00
_scripts.html Decrypt and display VM generated password 2014-03-05 17:53:29 +01:00
_subnav_list.html Volume Progress Bar & Fixes For Quota 2012-06-27 16:06:06 -07:00
qunit.html Decrypt and display VM generated password 2014-03-05 17:53:29 +01:00